Overview
The /bing/search endpoint executes a Bing search query and returns structured, parsed results. This API handles anti-bot measures and provides clean data extraction from Bing’s search results.
Parameters
Query Parameters
Market code in language-country format (e.g., en-US, en-GB, de-DE, fr-FR)
Country code to limit results (e.g., US, GB, DE)
UI language code (e.g., en, es, fr, de)
Number of results to return (1-50)
Offset for pagination (e.g., 0 for first page, 10 for second)
Device type to emulate. Options: desktop, mobile, tablet
Location for geo-targeted results (e.g., New York, USA)
Safe search mode. Options: Off, Moderate, Strict
Time filter for results. Options: Day, Week, Month
Filter response type. Options: Webpages, Images, Videos, News
Add bold markers around search terms in snippets
Text format for snippets. Options: Raw, HTML
Return raw HTML instead of parsed results
Async mode - returns job ID immediately for later retrieval
Example Requests
Basic Search
curl -X GET "https://api.scrapengine.io/api/v1/bing/search?q=artificial%20intelligence&count=10" \
-H "Authorization: Bearer YOUR_API_KEY"
News Search with Freshness Filter
curl -X GET "https://api.scrapengine.io/api/v1/bing/search?q=technology&responseFilter=News&freshness=Day" \
-H "Authorization: Bearer YOUR_API_KEY"
Localized Search
curl -X GET "https://api.scrapengine.io/api/v1/bing/search?q=restaurants&mkt=de-DE&cc=DE&location=Berlin" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
Success Response (200)
Returns parsed search results:
{
"searchInformation": {
"totalEstimatedMatches": 25400000,
"searchTime": 0.32
},
"webPages": [
{
"position": 1,
"title": "What is Artificial Intelligence (AI)? | IBM",
"url": "https://www.ibm.com/topics/artificial-intelligence",
"displayUrl": "www.ibm.com › topics › artificial-intelligence",
"snippet": "Artificial intelligence (AI) is technology that enables computers and machines to simulate human intelligence...",
"datePublished": "2024-01-15"
},
{
"position": 2,
"title": "Artificial Intelligence - MIT Technology Review",
"url": "https://www.technologyreview.com/artificial-intelligence/",
"displayUrl": "www.technologyreview.com › artificial-intelligence",
"snippet": "Coverage of artificial intelligence and machine learning from MIT Technology Review..."
}
],
"relatedSearches": [
{
"text": "artificial intelligence examples",
"displayText": "AI examples"
},
{
"text": "artificial intelligence jobs",
"displayText": "AI jobs"
}
],
"pagination": {
"currentOffset": 0,
"nextOffset": 10,
"totalEstimatedMatches": 25400000
}
}
| Header | Description |
|---|
x-remaining-credits | Number of API credits remaining |
x-trace-id | Unique identifier for the request |
Error Responses
| Status | Description |
|---|
400 | Bad Request - Invalid query parameters |
401 | Unauthorized - Invalid or missing API key |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Use Cases
- Alternative search data: Get search results from Bing as an alternative to Google
- SEO research: Compare rankings across different search engines
- Market research: Analyze search trends on Bing’s platform
- News aggregation: Collect news articles from Bing News
- Image search: Find images using Bing’s image search
- Video discovery: Search for videos across the web