---
title: "Bing Scraper or API: Ten Result Types as JSON | Perceptlayer"
description: "A Bing scraper next to 10 Bing endpoints at 1 credit a call: a recorded web search with position, url and domain, and 0.1 credits per ranking tracked."
url: https://perceptlayer.com/blog/bing-scraper-vs-api
---

[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)

# Bing Scraper or API: Ten Result Types as JSON

5 Nov 2026 Perceptlayer 8 min read

A Bing scraper is a program that sends queries to Bing, loads the result pages and pulls titles, links and snippets out of the HTML. That sounds like one parser, but web, news, images, videos, shopping and maps results are each laid out differently, so a scraper that covers them is several scrapers. The Bing endpoints return each result type as JSON at 1 credit per successful call; a recorded web search returns 10 ranked results with `position`, `url` and `domain`. This post compares the two and gives a verdict per job.

## Key takeaways

-   The Bing API has 10 endpoints, each 1 credit per successful call: search, news, images, videos, shopping, product, maps, suggestions, autocomplete and reverse image.
-   `GET /v1/bing/search` needs only `query`; the recorded response returns `data[]` with `position`, `title`, `description`, `url` and `domain`, plus `results_on_page: 10`.
-   Filters a scraper would drive through the page are parameters: `site` and `filetype` on search, `freshness` on news and videos, and `size`, `layout`, `type`, `color` and `license` on images.
-   Tracking 500 keywords daily at one page each is 500 × 30 = 15,000 credits a month, or 0.1 credits per ranking tracked at 10 results a page.
-   Failed calls cost nothing and return `X-Credits-Used: 0`, so a query that errors doesn't count against your balance.

## How many scrapers is a Bing scraper?

Count the result types you need, because each one is a separate parser with its own layout, its own filters and its own way of breaking. A web-results scraper doesn't parse an image grid or a map listing. The table maps each result type to its endpoint and the parameters that replace the filters a scraper would otherwise click through.

| Result type | Endpoint | Required | Filters and options |
| --- | --- | --- | --- |
| Web results | `GET /v1/bing/search` | `query` | `page`, `num`, `site`, `filetype`, `safe` ( `off`, `moderate`, `strict`), `hl`, `include_html` |
| News | `GET /v1/bing/news` | `query` | `page`, `freshness` ( `hour`, `day`, `week`, `month`) |
| Images | `GET /v1/bing/images` | `query` | `page`, `size`, `layout`, `type`, `color`, `freshness` ( `day` to `year`), `license` ( `any`, `public_domain`) |
| Videos | `GET /v1/bing/videos` | `query` | `page`, `freshness` ( `day`, `week`, `month`) |
| Shopping | `GET /v1/bing/shopping` | `query` | `page` |
| One product | `GET /v1/bing/product` | `query`, `product_token` |  |
| Maps | `GET /v1/bing/maps` | `query` | `limit` |
| Suggestions | `GET /v1/bing/suggestions` | `query` |  |
| Autocomplete | `GET /v1/bing/autocomplete` | `query` |  |
| Reverse image | `GET /v1/bing/reverse-image` | `image_url` |  |

Every endpoint except search also takes optional `mkt`, `cc` and `setlang` strings; their accepted values aren't documented here, so try them in the playground on the [Bing API page](https://perceptlayer.com/apis/bing). Images accept `size` of `small`, `medium`, `large` or `wallpaper`, `layout` of `square`, `wide` or `tall`, `type` of `photo`, `clipart`, `linedrawing`, `animatedgif` or `transparent`, and 14 `color` values from `color` and `bw` to single colours.

The product endpoint needs a `product_token`. None of the recordings in this post shows where one comes from, so run a shopping search in the playground and look for it before you build on that pair.

## What does a web result look like as JSON?

A web search call returns a ranked list under `data`, one object per result with five named fields, and a count of results on the page. This is the recorded request:

```bash
curl "https://api.perceptlayer.com/v1/bing/search?query=best+web+scraping+api" \
  -H "X-API-Key: $API_KEY"
```

And an excerpt of the recorded response:

```json
{
  "data": [
    {
      "position": 1,
      "title": "Best",
      "description": "Sep 14, 2026 · Надійний інтернет-провайдер Best …",
      "url": "https://best.net.ua/",
      "domain": "best.net.ua"
    },
    {
      "position": 2,
      "title": "BEST | English meaning - Cambridge Dictionary",
      "description": "BEST definition: 1. of the highest quality, or being the most suitable, pleasing, or effective type of thing or…. Learn more.",
      "url": "https://dictionary.cambridge.org/dictionary/english/best",
      "domain": "dictionary.cambridge.org"
    },
    …
  ],
  "results_on_page": 10,
  "source": "bing"
}
```

Three things in this recording matter for anything you build on it:

1.  **`position` and `domain` come ready to use.** A scraper would count result blocks and parse each link's host itself; here a rank check is a lookup on `domain`.
2.  **A date can sit inside `description`.** The first snippet starts with `Sep 14, 2026 ·`, so if you want dates, split them off the text yourself and treat them as optional.
3.  **Results follow the query, not your intent.** For `best web scraping api` the top two were an internet provider's homepage and a dictionary entry for "best". That's one query on one day, not a benchmark, but it shows why rank tracking needs exact, specific keywords, and why `site` exists for checking one domain.

Snippets can also contain text in any language and symbols, so store them as UTF-8 and don't assume ASCII.

## What breaks first in a homemade Bing scraper?

A search scraper rarely fails with an error; it starts returning fewer or emptier rows and keeps running. These are the failure points to plan for in any scraper of a large search engine, described as general engineering rather than anything specific to Bing:

1.  **Layout changes.** Result pages change as features ship. A selector that found every title last week can find half of them this week, and your rank data shifts with it.
2.  **Mixed result blocks.** Search pages mix web links with news, images, videos and other modules. A scraper has to decide what counts as a ranked result, and that decision changes your positions.
3.  **Location and language.** What you get depends on where the request seems to come from and what language it asks for. A scraper has to control both on every request to get comparable runs.
4.  **Automated-traffic defences.** A search engine has to tell people from scripts, so a scraper at volume should expect slow responses, challenge pages and blocks. Getting around those protections isn't a fix we'd recommend.
5.  **Silent gaps.** Without a monitor that compares row counts and empty fields against earlier runs, a broken parser looks like a quiet day.

Before you write a collector, read Bing's terms of use. [Scrape Google Search Results with Python](https://perceptlayer.com/blog/scrape-google-search-results-python) shows what the parsing side involves for a comparable engine, if you want to see the work in code.

## How do a Bing scraper and the endpoints compare?

A scraper costs a parser per result type and ongoing upkeep; the endpoints cost a credit per call and hand you named fields. For a recurring job, such as daily positions for a keyword list plus weekly news checks, the comparison looks like this.

|  | DIY Bing scraper | Bing endpoints |
| --- | --- | --- |
| Result types | One parser each for web, news, images, videos, shopping, maps | 10 endpoints, one per type |
| Ranking | Count result blocks yourself | `position` on each result |
| Domain | Parse each link's host | `domain` on each result |
| Filters | Drive the page's filter controls | `site`, `filetype`, `safe`, `freshness`, image filters as parameters |
| When the layout changes | Your selectors break, often silently | You read JSON fields; no parser of yours to fix |
| Blocks and challenges | Yours to handle at volume | A failed call returns an error code and costs 0 |
| Speed | As fast as you can fetch without being blocked | 1 request a second free, at least 5 a second paid |
| Cost | Hosting, any proxies, your time | 1 credit per successful call |
| Raw page | Always, since you parse it | An `include_html` boolean on search; check in the playground what it adds |

### What does a tracked keyword cost?

Price it per ranking tracked. The recorded call returned `results_on_page: 10`, so one call checks 10 positions: 1 credit ÷ 10 = 0.1 credits per ranking. Each deeper page is a separate call at 1 credit.

| Job | Calls a month | Credits a month |
| --- | --- | --- |
| 30 keywords, 1 page, daily | 30 × 30 = 900 | 900, inside the Starter pack's 10,000 |
| 500 keywords, 1 page, daily | 500 × 30 = 15,000 | 15,000, inside the Build pack's 50,000 |
| 500 keywords, 3 pages, daily | 500 × 3 × 30 = 45,000 | 45,000, inside the Build pack's 50,000 |
| 200 topics, news, weekly | 200 × 4 = 800 | 800 |

Credits come in prepaid packs and last 12 months, with no subscription. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how each call is debited.

## How would you track one domain's positions?

A daily rank check needs only the fields in the recording: `position`, `url` and `domain`. This Python script runs each keyword once, finds where your domain appears in `data`, and writes one row per keyword per day to SQLite, with `None` when the domain isn't on the page.

```python
import datetime
import os
import sqlite3
import time

import requests

BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
DOMAIN = "dictionary.cambridge.org"
KEYWORDS = ["best web scraping api", "define best"]

db = sqlite3.connect("bing_ranks.db")
db.execute(
    "CREATE TABLE IF NOT EXISTS ranks "
    "(day TEXT, keyword TEXT, position INTEGER, url TEXT, PRIMARY KEY (day, keyword))"
)
day = datetime.date.today().isoformat()

for keyword in KEYWORDS:
    r = requests.get(
        f"{BASE}/v1/bing/search", params={"query": keyword}, headers=HEADERS, timeout=30
    )
    if r.status_code == 429:
        time.sleep(int(r.headers.get("Retry-After", "1")))
        r = requests.get(
            f"{BASE}/v1/bing/search", params={"query": keyword}, headers=HEADERS, timeout=30
        )
    if not r.ok:
        print(keyword, "failed:", r.status_code, r.json()["error"]["code"])
        continue

    hit = next((x for x in r.json()["data"] if x["domain"] == DOMAIN), None)
    db.execute(
        "INSERT OR REPLACE INTO ranks VALUES (?, ?, ?, ?)",
        (day, keyword, hit["position"] if hit else None, hit["url"] if hit else None),
    )
    db.commit()
    print(keyword, hit["position"] if hit else "not on page", "| credits:", r.headers.get("X-Credits-Used"))
    time.sleep(1)  # free accounts get 1 request a second
```

The primary key makes a rerun on the same day overwrite rather than duplicate. For more than one page per keyword, add `page` and loop; check in the playground how its values line up with `position` before you rely on it. The [errors docs](https://docs.perceptlayer.com/errors) list every code, and [Rank Tracking API: Track Google Positions as JSON](https://perceptlayer.com/blog/rank-tracking-api) covers storing and comparing positions over time in more depth.

## Which route should you choose?

Choose by result type and frequency, because that decides whether parser upkeep or credits dominate. The verdicts assume a recurring job; for a handful of searches once, use a browser.

-   **Daily Bing rankings for a keyword list**: `search`, stored by `position` and `domain`. At 10 results a page, it's 0.1 credits per ranking tracked.
-   **Checking whether one site ranks, or which of its pages do**: `search` with `site`, and `filetype` if you only want documents.
-   **Monitoring news coverage of a topic or brand**: [`news`](https://perceptlayer.com/apis/bing/news) with `freshness` set to `hour` or `day`, on a schedule that matches it. [News API Options](https://perceptlayer.com/blog/news-api-comparison) compares news sources.
-   **Finding images you're allowed to reuse**: [`images`](https://perceptlayer.com/apis/bing/images) with `license=public_domain`, then check each source page yourself.
-   **Finding where an image appears**: [`reverse-image`](https://perceptlayer.com/apis/bing/reverse-image) with an `image_url` of up to 2,000 characters.
-   **Keyword research**: `suggestions` and `autocomplete`, one call per seed term.
-   **Product and local data**: [`shopping`](https://perceptlayer.com/apis/bing/shopping) and [`maps`](https://perceptlayer.com/apis/bing/maps), checked in the playground first, since this post has no recording for them.
-   **An agent that searches the web**: the Bing endpoints through the MCP server, as the [AI agents docs](https://docs.perceptlayer.com/ai-agents) describe. [Web Search API for AI Agents](https://perceptlayer.com/blog/web-search-api-for-ai-agents) compares engines for that job.
-   **Learning how scraping works**: write a scraper against a practice site, not a search engine.

The [search engines hub](https://perceptlayer.com/verticals/search) lists the other engines in the catalogue. To check the fields for your own keywords, run the recorded query or yours on the [Bing search endpoint](https://perceptlayer.com/apis/bing/search) in the playground, then [get a free API key](https://perceptlayer.com/signup) for the scheduled job.

## APIs in this post

-   [Bing **1 credit per call** · 10 endpoints](https://perceptlayer.com/apis/bing)

## Frequently asked questions

### Is scraping Bing allowed?

That depends on Bing's terms of use, how you use the results and the law where you operate, so read the terms and get legal advice for commercial use. Don't get around blocks, challenge pages or other protections. Using an API instead removes the parsing and blocking work, but how you use the data is still your responsibility.

### What fields does a Bing search call return?

In the recorded response, each item in `data` has `position`, `title`, `description`, `url` and `domain`. The body also has `results_on_page`, which was `10`, and `source`, which was `bing`. A date can appear at the start of `description` as text, so parse it yourself if you need it.

### How much does a Bing rank check cost?

One credit per successful call, and the recorded call returned 10 results, so 0.1 credits per ranking tracked. Tracking 500 keywords at one page daily is 15,000 credits a month. Every account gets 100 free credits after verifying an email address. See pricing for what credits cost.

### Can I get Bing news, images and videos without a scraper?

Yes. `news`, `images` and `videos` each take a `query`, a `page` and a `freshness` filter, and images add `size`, `layout`, `type`, `color` and `license`. Each costs 1 credit per successful call. This post has no recorded response for them, so run them in the playground on the Bing API page to see the fields.

### What happens when a Bing call fails?

You get an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`, plus `X-Credits-Used: 0`, so you aren't charged. A 429 `rate_limited` response carries a `Retry-After` header with the seconds to wait; `invalid_parameters` (422) usually means a missing `query` or a value outside a listed set.

bing scraping serp search api rank tracking

## More from the blog

1.  [API guides](https://perceptlayer.com/blog/category/api-guides) 2 Aug 2026 Perceptlayer 8 min read
    
    ## [Bing Search API Alternative: Web Results as JSON](https://perceptlayer.com/blog/bing-search-api-alternative-json)
    
    Replace Microsoft's retired Bing Search API with three search endpoints at 1 credit per call. Parameters compared, real responses, and where results differ.
    
2.  [API guides](https://perceptlayer.com/blog/category/api-guides) 5 Nov 2026 Perceptlayer 8 min read
    
    ## [Google Images Scraper or API: What You Get](https://perceptlayer.com/blog/google-images-scraper-vs-api)
    
    Compare a Google Images scraper with one 1-credit call that returns position, source, link, original URL, pixel size and is\_product for each result.
    
3.  [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Oct 2026 Perceptlayer 8 min read
    
    ## [Scrape Google Search Results with Python](https://perceptlayer.com/blog/scrape-google-search-results-python)
    
    Get Google results in Python as JSON: organic\_results, related\_questions and related\_searches from one call to /v1/google-search/search, at 1 credit a page.
