The Piloterr Bing Scraper API lets you extract public data from Bing as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:
- Bing Search API — Scrape real-time Bing search results with full control over location, language, and pagination.
Use it for SEO rank tracking, SERP monitoring, ad intelligence, market research or grounding LLM answers with fresh search results.
| Endpoint | Path | Credits | What you get |
|---|---|---|---|
| Bing Search API | /v2/bing/search |
1 | Scrape real-time Bing search results with full control over location, language, and pagination. |
- How it works
- Bing Search API
- Code examples in other languages
- Practical use cases
- Why Piloterr?
- FAQ
- Related scrapers
- Support
- Create a free Piloterr account and copy your API key from the dashboard.
- Send a
GET(orPOST) request tohttps://api.piloterr.com/v2/...with the headerx-api-key: YOUR_API_KEY. - Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Every endpoint accepts both
GET(query string) andPOST(JSON body with the same fields).
Scrape real-time Bing search results with full control over location, language, and pagination.
GET | POST https://api.piloterr.com/v2/bing/search · 1 credit per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | The search query to execute on Bing. Supports all Bing advanced search operators. |
page |
number | — | Page number of results to retrieve. Used for pagination. |
num |
number | — | Number of results per page. Minimum: 10, Maximum: 50. |
location |
string | — | City or region from which the search should originate. If multiple locations match, the most popular one is selected. |
lat |
number | — | GPS latitude coordinate for the search origin. |
lon |
number | — | GPS longitude coordinate for the search origin. |
mkt |
string | — | Market code combining language and country, in the form <language>-<country>. Defines where the results come from. |
cc |
string | — | Two-letter ISO 3166-1 country code defining the country to search from. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/bing/search",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "openai",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type BingSearch = {
pagination?: {
next?: unknown;
current?: number;
other_pages?: unknown[];
has_next_page?: boolean;
};
organic_results?: {
link?: string;
title?: string;
domain?: string;
snippet?: string;
position?: number;
displayed_link?: string;
snippet_matched?: string[];
}[];
search_parameters?: {
q?: string;
cc?: string;
lat?: unknown;
lon?: unknown;
mkt?: string;
num?: unknown;
page?: number;
engine?: string;
location?: unknown;
bing_domain?: string;
};
search_information?: {
total_results?: unknown;
};
};
const params = new URLSearchParams({
"query": "openai",
});
const response = await fetch(`https://api.piloterr.com/v2/bing/search?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as BingSearch;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/bing/search
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "openai"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"pagination": {
"next": null,
"current": 1,
"other_pages": [],
"has_next_page": false
},
"organic_results": [
{
"link": "https://openai.com/",
"title": "OpenAI",
"domain": "openai.com",
"snippet": "OpenAI is an AI research and deployment company.",
"position": 1,
"displayed_link": "https://openai.com",
"snippet_matched": [
"openai"
]
},
{
"link": "https://platform.openai.com/docs",
"title": "OpenAI API documentation",
"domain": "platform.openai.com",
"snippet": "Guides and the API reference for the OpenAI platform.",
"position": 2,
"displayed_link": "https://platform.openai.com › docs",
"snippet_matched": []
}
],
"search_parameters": {
"q": "openai",
"cc": "us",
"lat": null,
"lon": null,
"mkt": "en-US",
"num": null,
"page": 1,
"engine": "bing",
"location": null,
"bing_domain": "bing.com"
},
"search_information": {
"total_results": null
}
}| Field | Type | Description |
|---|---|---|
pagination |
object | |
pagination.next |
object | |
pagination.current |
integer | |
pagination.other_pages |
any[] | |
pagination.has_next_page |
boolean | |
organic_results[] |
object[] | |
organic_results[].link |
string | |
organic_results[].title |
string | |
organic_results[].domain |
string | |
organic_results[].snippet |
string | |
organic_results[].position |
integer | |
organic_results[].displayed_link |
string | |
organic_results[].snippet_matched |
string[] | |
search_parameters |
object | |
search_parameters.q |
string | |
search_parameters.cc |
string | |
search_parameters.lat |
object | |
search_parameters.lon |
object | |
search_parameters.mkt |
string | |
search_parameters.num |
object | |
search_parameters.page |
integer | |
search_parameters.engine |
string | |
search_parameters.location |
object | |
search_parameters.bing_domain |
string | |
search_information |
object |
Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.
| Language | Search |
|---|---|
| cURL (Bash) | search |
| PHP | search |
| C# | search |
| Go | search |
| Java | search |
| Ruby | search |
| Node.js | search |
- SEO rank tracking — Track positions of your pages and competitors on target keywords.
- SERP monitoring — Watch features, snippets and new entrants on strategic queries.
- LLM grounding — Feed AI agents and RAG pipelines with fresh search results.
- Ad intelligence — See who advertises on your keywords and with which messages.
- Market research — Map competitors, news and trends at scale.
- No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
- Structured JSON — stable, documented fields instead of brittle HTML selectors.
- Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
- One API key, hundreds of sources — Bing plus many other e-commerce, search and company data endpoints in the Piloterr library.
- Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.
Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.
No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.
Credits per call: /v2/bing/search 1. See the Piloterr website for plans.
Each endpoint returns structured JSON: Bing Search — pagination, pagination.next, pagination.current, pagination.other_pages, pagination.has_next_page, organic_results[].
Use the page parameter and keep requesting while the response indicates more results.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
- Brave Scraper API
- Google Scraper API
- Google Ads Transparency Scraper API
- All Piloterr scrapers on GitHub
- 💬 Join the Piloterr Discord to ask questions and share what you build.
- 📚 Browse the API reference (OpenAPI) and the Piloterr library.
- 🔑 Get your API key.
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.
Bing is a trademark of its respective owner. This repository is not affiliated with or endorsed by Bing. Examples are released under the MIT license.
