---
title: "Bing"
description: "Connect Bing Webmaster Tools and export Bing data with gscdump."
canonical_url: "https://gscdump.com/gscdump-cli/api/bing"
last_updated: "2026-10-03T07:15:31.852Z"
---

# Bing

## Choose where Bing connects

Hosted mode uses the Bing connection saved for your Site on [gscdump.com](http://gscdump.com). Run `gscdump auth status --json` to check the active mode, then list hosted Bing Sites:

::pre{tabindex="0"}
```bash
gscdump bing sites --mode hosted --json
gscdump bing status --site s_SITE_ID --mode hosted --json
gscdump bing inspect https://example.com/page --site s_SITE_ID --mode hosted --json
```
::

Use the hosted Site ID printed by `bing sites`. See [Choose access](/gscdump-cli/guides/start/choose-access) to connect Google and Bing on [gscdump.com](http://gscdump.com). Hosted `bing dump` reads saved data. The Site and plan control its available history.

## Use local Bing credentials

For local Bing access, generate an API key in Bing Webmaster Tools under Settings, API Access.
See [Microsoft's authentication guide](https://learn.microsoft.com/en-us/bingwebmaster/getting-access).

::pre{tabindex="0"}
```bash
export BING_API_KEY=...
gscdump bing login --mode local
gscdump bing sites --mode local --json
gscdump bing dump --site https://example.com/ --mode local --format json --out ./bing-export
gscdump bing dump --all-sites --mode local --format ndjson
gscdump bing inspect https://example.com/page --site https://example.com/ --mode local --json
```
::

`BING_ACCESS_TOKEN` also accepts an existing Bing OAuth access token.
Local API keys and OAuth credentials are saved separately from Google credentials.
`bing logout --mode local` removes only saved Bing credentials.

For local browser OAuth, register a Bing OAuth client with this exact redirect URI:
`http://127.0.0.1:53683/oauth/bing`.

::pre{tabindex="0"}
```bash
export BING_CLIENT_ID=...
export BING_CLIENT_SECRET=...
gscdump bing login --mode local --oauth
```
::

Use `--redirect-uri` or `BING_REDIRECT_URI` for another registered loopback URI.
`--no-browser` prints the authorization URL. Saved OAuth credentials refresh automatically.

`bing dump` exports `traffic`, `pages`, `keywords`, and `crawl` by default.
Use `--datasets traffic,pages` to select datasets.
Local mode also supports `--datasets crawl-issues`.
Files use JSON, NDJSON, or CSV, with one directory per Bing site and a `metadata.json` file.

In hosted mode, exports default to the last 366 days.
Use `--start YYYY-MM-DD --end YYYY-MM-DD` for a range up to 366 days.
The CLI follows every returned page and rejects unavailable datasets or a snapshot that changes during export.
In local mode, date options filter the rows Bing returns. They cannot recover older history.
Bing Indexing Evidence preserves uncertainty and does not imply an indexed verdict.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
