Bing Search
Scrape real-time Bing search results with full control over location, language, and pagination.
Credit cost: 1 credit per call
ApiKeyAuthx-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringThe search query to execute on Bing. Supports all Bing advanced search operators.
Examples:
openai: standard keyword searchsite:github.com python scraper: restrict results to a specific domainintitle:"openai": match the page titleinurl:blog python: match part of the URL
Example:
openaipage?numberPage number of results to retrieve. Used for pagination.
1: First page (default)2: Second page3: Third page, etc.
num?numberNumber 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.
location?stringCity 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:
Austinlat?numberGPS latitude coordinate for the search origin.
Example:
48.8566lon?numberGPS longitude coordinate for the search origin.
Example:
2.3522mkt?stringMarket 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.
cc?stringTwo-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.
Successful response
application/json- response
pagination?organic_results?array<>search_parameters?search_information?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://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 }}