Core APIs
...
Bing
Core Requests
Search
4min
bing search parameters get get /search?engine=bing the bing search parameters are applicable when making a request with engine=bing to retrieve bing search results for a given search term the search term is specified in the q parameter setting location for bing requests the recommended way of setting the location of your bing request is to use the location parameter the location parameter can be populated with a full name value returned by the locations api https //docs trajectdata com/serpwow/locations api/overview you may also use either the market code or country code parameters to set the location of your request, but the recommended approach is to use the location parameter as this sets all the required prerequisites to achieve a correctly geo located result including location information in search term bing's web search api documentation advises location information to be included directly withihn the search query to improve result relevance while the api offers parameters like mkt (market) and cc (country code) to influence regional results, these may not always yield precise local outcomes embedding specific location details in the query itself—such as city names or postal codes—can help bing better understand the user's intent and deliver more accurate results for example, to request bing search results for the keyword pizza , in the location united states , the request would be http https //api serpwow\ com/live/search?api key=demo\&engine=bing\&q=pizza+united+statescurl l get https //api serpwow\ com/live/search \\ d api key="demo" \\ d engine="bing" \\ d location="united states" \\ d q="pizza"const axios = require('axios'); // set up the request parameters const params = { api key "demo", engine "bing", location "united states", q "pizza" } // make the http get request axios get('https //api serpwow\ com/live/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'engine' 'bing', 'location' 'united states', 'q' 'pizza' } \# make the http get request api result = requests get('https //api serpwow\ com/live/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'engine' => 'bing', 'location' => 'united states', 'q' => 'pizza' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> bing search parameters the following parameters are available for all search requests made when engine=bing parameter required description engine required should be set to engine=bing q required the keyword you want to use to perform the search location optional determines the geographic location in which the query is executed you must enter a full name value from the serpwow locations api https //docs trajectdata com/serpwow/locations api/overview , for example location=richmond+county,new+york,united+states (where richmond+county,new+york,united+states is the full name as returned by the locations api https //docs trajectdata com/serpwow/locations api/overview ) note the location parameter is the recommended way of setting the location of your bing request market code optional the market code parameter determines the bing defined market to show results from this is typically the country in which the user is making requests view the full list of supported bing market code values here https //docs trajectdata com/serpwow/search api/reference/bing market codes note the market code parameter cannot be used in combination with the country code parameter country code optional the country code parameter determines the country to show results from (if market code is not specified) view the full list of supported bing country code values here https //docs trajectdata com/serpwow/search api/reference/bing country codes note it is recommended that the market code parameter be used instead of country code the country code parameter cannot be used in combination with the market code parameter bing language optional the bing language parameter determines the bing ui language to return results view the full list of supported bing language values here https //docs trajectdata com/serpwow/search api/reference/bing languages defaults to en page optional determines the page of results to return, defaults to 1 max page optional use the max page parameter to get multiple pages of results in one request the api will automatically paginate through pages and concatenate the results into one response see the pagination https //docs trajectdata com/serpwow/search api/pagination docs for more information include answer box optional determines whether to include the answer box (sometimes called the "featured snippet") in the organic results array and treat it as the first result this may be desirable if you treat the result bing displayed in the answer box as the first organic result safe optional determines whether safe search is enabled for the results can be set to strict to enable safe search, moderate for just images and videos or off to disable safe search next steps bing search results https //docs trajectdata com/serpwow/search api/results/bing/search