Bing Search
Scrape real-time Bing search results with full control over location, language, and pagination.
Credit cost: 1 credit per call
Authorization
ApiKeyAuth Your API key. Include it in the x-api-key header for every request.
In: header
Query Parameters
The search query to execute on Bing. Supports all Bing advanced search operators.
Examples:
artificial intelligence— standard keyword searchsite:github.com python scraper— restrict results to a specific domainintitle:"machine learning"— match the page titleinurl:blog python— match part of the URL
Example:
artificial intelligence news 2024Page number of results to retrieve. Used for pagination.
1: First page (default)2: Second page3: Third page, etc.
Number of results per page. Minimum: 10, Maximum: 50.
Note: This parameter is only a suggestion and might not reflect the actual number of results returned.
City or region from which the search should originate. If multiple locations match, the most popular one is selected.
Note: Cannot be used together with lat/lon. It is recommended to specify location at the city level.
Example:
AustinGPS latitude coordinate for the search origin.
Example:
48.8566GPS longitude coordinate for the search origin.
Example:
2.3522Market code combining language and country, in the form <language>-<country>. Defines where the results come from.
en-US: English, United States (default)fr-FR: French, Francede-DE: German, Germanyes-ES: Spanish, Spain
Note: Cannot be used together with cc.
Two-letter ISO 3166-1 country code defining the country to search from.
us: United Statesde: Germanygb: United Kingdomfr: France
Note: Cannot be used together with mkt.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.piloterr.com/v2/bing/search?query=string"{
"pagination": {
"next": null,
"current": 1,
"other_pages": [],
"has_next_page": false
},
"organic_results": [
{
"link": "https://en.m.wikipedia.org/wiki/Artificial_intelligence",
"title": "Artificial intelligence - Wikipedia",
"domain": "en.m.wikipedia.org",
"snippet": null,
"position": 1,
"displayed_link": "https://en.m.wikipedia.org › wiki ›Artificial_intelligence",
"snippet_matched": []
},
{
"link": "https://www.britannica.com/technology/artificial-intelligence",
"title": "Artificial intelligence (AI) | Definition, Examples, Types ...",
"domain": "britannica.com",
"snippet": null,
"position": 2,
"displayed_link": "https://www.britannica.com › technology ›artificial-intelligence",
"snippet_matched": []
},
{
"link": "https://www.ibm.com/think/topics/artificial-intelligence",
"title": "What is artificial intelligence (AI)? - IBM",
"domain": "ibm.com",
"snippet": "Artificial intelligence (AI) is technology that enables computers and machines to simulate human learning, comprehension, problem solving, decision-making, creativity and autonomy.",
"position": 3,
"displayed_link": "https://www.ibm.com › think › topics ›artificial-intelligence",
"snippet_matched": [
"artificial intelligence"
]
}
],
"search_parameters": {
"q": "artificial intelligence",
"cc": null,
"lat": null,
"lon": null,
"mkt": null,
"num": null,
"page": 1,
"engine": "bing",
"location": null,
"bing_domain": "bing.com"
},
"search_information": {
"total_results": null
}
}{
"error": "Bad Request"
}{
"error": "Invalid API Key"
}{
"error": "Payment required"
}{
"error": "Rate limit exceeded for the API key: quota monthly"
}{
"error": "Internal Error"
}