Bing News API
SERP API Bing Query Parameters
including output options for parameters such as localization, geographical location, and pagination.
q ,Search Query(Required)
Parameter defines the search query. You can use anything that you would use in a regular Bing search.
Example Request:
Example with q:pizza parameter
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1"Localization
cc ,Country(Optional)
This parameter defines that during crawling, you can specify that search results be displayed according to the habits of users in a specific country/region. It is a two-letter country/region code (for example: us, ru, uk).
Examples:
cc=us→ United States (English)cc=fr→ France (French)
Example Request:
Example results for q : pizza,cc:jp
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1" \
-d "cc=jp"setlang ,Language(Optional)
This parameter defines the language to search in. It follows the format gb characters followed by ISO_3166-1. (For example, United States, Germany, United Kingdom, etc.)
Example Request:
Example results for q : pizza,setlang:eu
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1" \
-d "setlang=eu"Geographical Location
mkt ,Language(Optional)
This parameter defines the interface display language of search results during crawling. It adopts the format of <"language code">-<"country/region code">.
For example, en-US. This string is case-insensitive.
Examples:
mkt=en-US→ English (United States)mkt=zh-CN→ Simplified Chinese
Example Request:
Example results for q : pizza,mkt:fr-fr
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1" \
-d "mkt=fr-fr"Pagination
first ,Result offset(Optional)
Sets the result offset (default: 1). For example, first=10 skips the first 9 results.
This parameter is used to control the offset of Organic Search results, with a default value of 1. For example, when first=10, the system will promote the 10th organic search result to the top position.
Example Request:
Example results for q : pizza,first:10
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1" \
-d "first=10" \
-d "count=10"count ,Results per page(Optional)
Number of results per page (range: 1–50). Use with first for pagination.
The per-page parameter is used to control the number of search results displayed per page (minimum value: 1, maximum value: 50). The actual effective value will be affected by the first offset parameter.
Example Request:
Example results for q : pizza,count:10
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1" \
-d "first=10" \
-d "count=10"Advanced Filters
qft,Sort by Date(Optional)
This parameter defines whether adult content is blocked from search results. You can set it to either "strict" or "off".
Adult content filter:
strict→ Default (blocks adult content)off→ Allows adult content
Example Request:
Example results for q : pizza,qft:interval="8"
curl -X POST https://scraperapi.thordata.com/request \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: Bearer token" \
-d "engine=bing_news" \
-d "q=pizza" \
-d "json=1" \
-d "setlang=eu" \
-d "qft=interval="8""For assistance, contact [email protected].
Last updated
Was this helpful?