Skip to content
ChangelogImproved

Bing Search returns up to 10 results pages per request

API
A Bing Search request on POST /v1/serp/bing/search for heat pump installers with pages 2, device mobile and state IL and its results from pages 1 and 2, beside the device values desktop, mobile, ios, tablet and ipad and a location point in Chicago

Read up to 10 Bing results pages in one request, and search as a phone or tablet, from a US state or from exact coordinates.

What changed

  • pages reads 1 to 10 results pages in one task, starting at page. organicResults holds every page’s results in rank order, and each result carries the page it came from.
  • device runs the search as mobile, android, ios, tablet or ipad, so you get the layout and ranking a phone or tablet sees. desktop stays the default.
  • state searches from a US state, and location from exact coordinates. Bing places its organic results and map pack for that point, and the response repeats the state or location you sent.
  • include.rawHtml returns a link to the unmodified HTML Bing sent, one per page with pages, at no extra credits.

How it works

One browsing session opens page 1 and follows Bing’s own next-page links, so every page comes from the same search. A result that Bing repeats on a later page is returned once. When Bing’s list ends before the pages you asked for, the task stops there, response.pages shows how many pages were read, and the credits for the unread pages are refunded.

/v1/serp/bing/search waits for the result for up to 290 seconds and answers 200 with it. A task that is still running then answers 202. You can also send taskType BING_SEARCH to POST /v1/async/task with the same fields in payload.

Where it helps

  • Track where your page ranks past Bing’s page 1: send pages up to 10 and find your domain’s position in organicResults.
  • Compare local results across a metro area: send the same query with location for a downtown point and a suburb, and compare organicResults and map.
  • Check mobile rankings beside desktop: run the query with device mobile and desktop and compare the positions of the same links.

Send a request

Send the request with your API key in the Authorization header.

curl -X POST https://api.querying.ai/v1/serp/bing/search \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "heat pump installers",
    "country": "US",
    "pages": 2,
    "device": "mobile",
    "state": "IL"
  }'

Request fields

querystringRequired
The search query, up to 4,000 characters.
countrystring
The market to search, as a two-letter country code. Default US.
pageinteger
The first results page to read, 1 to 10. Default 1.
pagesinteger
How many results pages to read from page on, 1 to 10. Default 1. Not with include.rawResponse.
devicestring
desktop (default), mobile or android (Chrome on Android), ios (iPhone Safari), tablet (Android tablet Chrome) or ipad (iPad Safari).
statestring
A two-letter US state code such as IL, with country US. Bing searches from that state’s largest city. Adds 1 credit. Not with location.
locationobject
An exact point, {"latitude": 41.8781, "longitude": -87.6298}, in decimal degrees. Bing places its organic results and map pack for that point. Adds 1 credit. Not with state.
include.rawHtmlboolean
true adds rawHtml, a link to the unmodified HTML Bing sent. With pages above 1, each page’s HTML is in pageResults[].rawHtml. No extra credits.

Response

The response, trimmed for length.

JSON
{
  "success": true,
  "task": {
    "id": "…",
    "taskType": "BING_SEARCH",
    "status": "COMPLETED",
    "createdAt": "…"
  },
  "credits": { "creditsToCharge": 3, "creditsCharged": 3 },
  "response": {
    "surface": "bing_search",
    "page": 1,
    "pages": 2,
    "state": "IL",
    "organicResults": [
      {
        "position": 1,
        "title": "TOP 10 BEST Heat Pump Installation in Chicago, IL - (2026 Guide ... - Yelp",
        "link": "https://www.yelp.com/search?find_desc=heat+pump+installation&find_loc=Chicago%2C+IL",
        "page": 1
      },
      {
        "position": 2,
        "title": "TOP 10 BEST Heat Pump Installations in Chicago, IL - (2026 Guide ... - Yelp",
        "link": "https://www.yelp.com/search?find_desc=heat+pump+installations&find_loc=Chicago%2C+IL",
        "page": 1
      },
      {
        "position": 3,
        "title": "Heat Pump Installation Chicago, IL - alltemp.com",
        "link": "https://alltemp.com/chicago-il/chicago-hvac-services/heat-pump-installation-chicago-il/",
        "page": 1
      },
      {
        "position": 4,
        "title": "Find the Right Installer for Your Project - ENERGY STAR",
        "link": "https://www.energystar.gov/products/installer-finder",
        "page": 2
      },
      "…"
    ],
    "ads": ["…"],
    "map": ["…"],
    "relatedSearches": ["…"]
  }
}
response.organicResultsarray
Organic results in rank order across every page read, without duplicates: position, title, link, displayedLink, snippet and page, the results page the entry came from.
response.pagesinteger
How many pages were read. It is lower than you asked when Bing’s list ends sooner. response.page is the first page read.
response.statestring
The state you sent. A request with location returns response.location the same way.
response.pageResultsarray
With include.rawHtml and pages above 1: one entry per page read, with page, that page’s rawHtml and the ads, related searches and modules that page showed.

Pricing

Each results page read costs 1 credit, and state or location adds 1 credit a task. The request above reads 2 pages from Illinois for 3 credits. Unread pages are refunded when Bing’s list ends early. include.rawHtml is free. Plans and credits: https://querying.ai/pricing

More updates

Stay in the loop

Get new product updates in your inbox.

RSS feed