# Bing Copilot Search Answer & Citation Tracker (`xyrelith-data/bing-copilot-scraper`) Actor

Run questions through Bing Copilot Search and get the streamed AI answer, tables, inline citations, cited sources, follow-up questions, organic results and brand visibility for AI search monitoring.

- **URL**: https://apify.com/xyrelith-data/bing-copilot-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** AI, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bing Copilot Search Answer & Citation Tracker

See what Microsoft's Copilot Search says about your questions, which pages it cites, and what ordinary Bing results sit beside the AI answer. Give it a query and a Bing market, and you get one readable row with the streamed answer, its tables and citations, the source cards behind it, the follow-up question Copilot suggests, and the organic SERP.

No Microsoft account, cookie, API key or proxy is needed. The actor opens the public Copilot Search conversation the same way a logged-out browser does, then reconstructs the answer from the page's own event stream.

### What each row contains

| Field | Meaning |
|---|---|
| `query`, `market`, `language`, `country` | What was asked and the exact market settings used |
| `status` | `ANSWERED`, `CACHED`, `ORGANIC_ONLY`, `EMPTY_ANSWER`, `BLOCKED`, `TIMEOUT` or `ERROR` |
| `answerSource` | `copilot_stream` for a live answer, `cached_answer` for Bing's stored answer, `organic` for the SERP-only fallback |
| `answerText`, `answerMarkdown` | The full answer as plain text and as Markdown with headings, lists and tables preserved |
| `answerWordCount`, `answerCharCount` | Size of the answer |
| `tables` | Every table in the answer as structured headers and rows, in addition to the Markdown table |
| `citations` | Inline citation links in reading order: citation numbers, site name, URL, domain and the character position where the claim appears |
| `sources` | The citation cards Copilot shows: position, citation number, title, URL, domain, site, snippet and display URL |
| `citedDomains` | Unique cited domains, in citation order |
| `followUpQuestions` | The follow-up question (or questions) Copilot offers after the answer |
| `organicResults` | Ordinary Bing results: position, title, decoded target URL, domain, display URL, snippet and date |
| `organicCount` | Number of organic results returned |
| `trackedBrands` | For each brand or domain you list: mentioned, mention count, first character position, first sentence, simple sentiment, and whether its domain is cited |
| `conversationId`, `conversationUrl` | The conversation ID and the public Copilot Search page |
| `muidTries`, `attempts`, `fallbackReason` | Anonymous MUID attempts and generation attempts for this row, plus why a fallback was used |
| `responseTimeSeconds`, `scrapedAt`, `sourceUrl` | Timing and traceability |

Empty values are omitted, not written as `null`, `""`, `[]` or `{}`.

### Modes

- **One market per query** — every query runs once in the selected `market`. Best for daily monitoring of a single country.
- **Market matrix** — every query runs in every market in `markets`, with one row per query-market pair. Best for comparing how an answer changes across countries and languages.

`language` can override the market's default language without changing the country.

### Inputs

| Input | Default | Purpose |
|---|---|---|
| `mode` | `queries` | `queries` or `markets` |
| `queries` | – | Questions or keywords, one per line |
| `market` | `en-US` | Bing market for queries mode |
| `markets` | – | Market list for markets mode; falls back to `market` |
| `language` | `auto` | `setlang` override; `auto` uses the market language |
| `trackBrands` | – | Brand names or domains to track |
| `includeOrganic` | `true` | Add ordinary Bing results and enable the organic-only fallback |
| `includeCachedFallback` | `true` | Try Bing's cached answer when the live stream is unavailable |
| `includeAnswerHtml` | `false` | Add the reconstructed answer HTML for auditing |
| `stripTracking` | `true` | Remove UTM and click-id parameters from URLs |
| `maxItems` | `50` | Cap on emitted rows (1–500) |
| `retries` | `2` | Extra attempts per query (0–5) |
| `maxMuidTries` | `30` | Anonymous MUID attempts before falling back (1–40) |
| `responseTimeoutSecs` | `120` | Answer-stream timeout (30–300) |
| `proxyConfiguration` | – | Optional; the actor works without a proxy |

The daily test prefill asks one question in `en-US` with a cap of one row, so it is the cheapest run that still returns data.

### How it works

1. Mints a random anonymous `MUID` and creates a Copilot Search conversation. Bing routes only part of the anonymous traffic to the AI Mode bucket; a MUID outside it gets an HTML 404, so the actor rotates MUIDs within a bounded budget until it receives the `201` and ETag.
2. Loads the public `/copilotsearch` page with the accepted MUID and reads the server-issued impression GUID (`IG`).
3. Posts the query to the conversation's `generate` endpoint with `If-Match`, `X-CSRF-Protection` and the page `IG`.
4. Reconstructs the `::csbreak::` event stream into HTML, then into Markdown, text, tables, inline citations, source cards and follow-ups.
5. Reads the matching organic Bing SERP and decodes the `/ck/a` redirects to real target URLs.
6. If the live answer fails, tries Bing's cached answer, then the organic SERP, and labels the row with the source it actually used.

Only anonymous target-issued values are used: the actor creates its own `MUID` and reads the page's `IG`. No user cookie or Microsoft login is involved.

### Example row

```json
{
  "query": "what is the capital of australia",
  "market": "en-US",
  "language": "en",
  "status": "ANSWERED",
  "answerSource": "copilot_stream",
  "answerText": "The capital of Australia is Canberra...",
  "answerMarkdown": "**The capital of Australia is Canberra**, a planned city...",
  "citations": [
    {
      "position": 1,
      "citationNumbers": [1, 2],
      "site": "Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Canberra",
      "domain": "en.wikipedia.org",
      "firstCitedAtChar": 98
    }
  ],
  "sources": [
    {
      "position": 1,
      "citationNumber": 1,
      "title": "Canberra - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Canberra",
      "domain": "en.wikipedia.org",
      "site": "Wikipedia"
    }
  ],
  "followUpQuestions": [
    "Would you like a quick comparison between Canberra and other major Australian cities?"
  ],
  "organicResults": [
    {
      "position": 1,
      "title": "Canberra - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Canberra",
      "domain": "en.wikipedia.org",
      "snippet": "Canberra is the capital of Australia."
    }
  ],
  "organicCount": 10,
  "scrapedAt": "2026-11-15T08:00:00+00:00"
}
```

### Use cases

- **AI visibility and GEO tracking** — see whether Copilot names your brand, how early, in what tone, and whether it cites your site.
- **Citation research** — find the pages Copilot relies on for a topic, plus the exact claims they support.
- **Competitive comparison** — run the same questions across markets to see local sources and local wording.
- **SERP-plus-answer datasets** — keep the AI answer and the ordinary ranking side by side.
- **Answer monitoring** — schedule the same questions and compare dated rows.
- **Evaluation data** — `answerMarkdown` with structured `sources` and `tables` is ready for analysis.

### Reliability and limits

- **The anonymous AI Mode bucket is a Bing rollout.** It is normally available, and a MUID is usually accepted within 1–15 tries. If Bing closes the bucket, the actor does not pretend: it falls back to a cached answer or the organic SERP and writes `status` and `answerSource` on every row.
- **Cached answers are not available for every query.** Bing caches only a subset. A cache miss is reported as `ORGANIC_ONLY`, never as a live answer.
- **Answers vary** with the model, sources and moment. The row records what Bing returned at that time; the actor never rewrites or invents content.
- **Markets verified end-to-end: `en-US`, `en-GB`, `de-DE`, `ja-JP`, `en-AU`.** Other Bing market codes are accepted; if Bing does not serve Copilot Search for a code (for example `zh-CN`/`cn.bing.com`), the row falls back to the organic SERP and carries the reason in `fallbackReason`.
- **Organic results can soft-block.** When the SERP returns fewer than the usual ten results, the count reflects what was actually returned.
- **Follow-up questions are conditional.** They appear when Copilot offers them.
- Queries run sequentially to stay polite to the public endpoint.

### FAQ

**Do I need a Microsoft account or API key?** No. The actor uses the public logged-out Copilot Search surface and mints its own anonymous client ID.

**Does it use a proxy?** No by default. The actor uses a browser TLS fingerprint and works directly. A proxy input exists only if you want to route requests yourself.

**Why is a row `CACHED`?** The live conversation did not return an answer, but Bing had a stored answer for that query. The row is labelled so you can filter it out if you only want fresh generations.

**Why is a row `ORGANIC_ONLY`?** Neither a live nor a cached Copilot answer was available, but the ordinary Bing SERP was. The row still carries the organic results and tracked-brand flags.

**Can I compare markets?** Yes. Use markets mode with `en-US`, `en-GB`, `de-DE` and any other supported code.

**Are organic links Bing redirects?** No. The actor decodes the `/ck/a` wrapper and emits the real target URL.

### Data source

Public Bing Copilot Search and Bing web results at `bing.com`. The actor is not affiliated with Microsoft. It reads only what the public pages return for the requested query and market.

### Automate

Every run writes to an Apify dataset, so you can export JSON, CSV or Excel, send rows to Google Sheets, Slack, Make, Zapier or a webhook, or read them from the Apify API. Schedule the same question set to build a visibility time series.

# Actor input Schema

## `mode` (type: `string`):

`queries` asks every query once in one market. `markets` asks every query in every selected market and returns one row per query-market pair.

## `queries` (type: `array`):

Questions or keywords to send to Copilot Search. One row is produced per query (or per query-market pair in markets mode).

## `market` (type: `string`):

Bing market used for the Copilot answer and organic results. The market controls the country, language and local sources. Ignored in markets mode when `markets` is set.

## `markets` (type: `array`):

Bing market codes to run for every query, e.g. `en-US`, `en-GB`, `de-DE`, `ja-JP`. Falls back to `market` when empty. One row is emitted per query-market pair.

## `language` (type: `string`):

Language sent to Bing (`setlang`). `Market default` uses the language part of each market (en-US -> English, de-DE -> German).

## `trackBrands` (type: `array`):

Brand names such as `Canberra` or domains such as `wikipedia.org`. Each row reports whether the brand appears in the answer, how early, the surrounding sentence, a simple sentiment, and whether its domain is cited. `Name | domain.com` is also accepted.

## `includeOrganic` (type: `boolean`):

Add the ordinary Bing web results for the same query: position, title, URL, domain, snippet and date. They also provide the organic-only fallback when the Copilot answer is unavailable.

## `includeCachedFallback` (type: `boolean`):

When the live Copilot stream is unavailable, try Bing's cached answer for the query. The row reports `status=CACHED` and `answerSource=cached_answer`; it never pretends a cached answer is live.

## `includeAnswerHtml` (type: `boolean`):

Add the reconstructed answer HTML in `answerHtml` for auditing. Markdown and text are always included.

## `stripTracking` (type: `boolean`):

Remove UTM and click-id parameters from citation and organic URLs.

## `maxItems` (type: `integer`):

Hard cap on emitted rows. In markets mode this caps query-market pairs.

## `retries` (type: `integer`):

Extra attempts when the conversation or answer stream fails. Each attempt mints a fresh anonymous MUID and conversation.

## `maxMuidTries` (type: `integer`):

How many anonymous MUID values to try before concluding the AI Mode bucket is unavailable. Bing normally accepts one within 1-15 tries.

## `responseTimeoutSecs` (type: `integer`):

How long to wait for the answer stream before trying the next attempt or fallback.

## `proxyConfiguration` (type: `object`):

Optional. The actor works without a proxy and uses its own browser TLS fingerprint. Provide a proxy only if you want to route requests yourself.

## Actor input object example

```json
{
  "mode": "queries",
  "queries": [
    "what is the capital of australia"
  ],
  "market": "en-US",
  "markets": [],
  "language": "auto",
  "trackBrands": [],
  "includeOrganic": true,
  "includeCachedFallback": true,
  "includeAnswerHtml": false,
  "stripTracking": true,
  "maxItems": 1,
  "retries": 1,
  "maxMuidTries": 20,
  "responseTimeoutSecs": 90
}
```

# Actor output Schema

## `answers` (type: `string`):

Dataset containing one row per query or query-market pair.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "queries",
    "queries": [
        "what is the capital of australia"
    ],
    "market": "en-US",
    "markets": [],
    "language": "auto",
    "trackBrands": [],
    "includeOrganic": true,
    "includeCachedFallback": true,
    "includeAnswerHtml": false,
    "stripTracking": true,
    "maxItems": 1,
    "retries": 1,
    "maxMuidTries": 20,
    "responseTimeoutSecs": 90
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/bing-copilot-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "queries",
    "queries": ["what is the capital of australia"],
    "market": "en-US",
    "markets": [],
    "language": "auto",
    "trackBrands": [],
    "includeOrganic": True,
    "includeCachedFallback": True,
    "includeAnswerHtml": False,
    "stripTracking": True,
    "maxItems": 1,
    "retries": 1,
    "maxMuidTries": 20,
    "responseTimeoutSecs": 90,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/bing-copilot-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "queries",
  "queries": [
    "what is the capital of australia"
  ],
  "market": "en-US",
  "markets": [],
  "language": "auto",
  "trackBrands": [],
  "includeOrganic": true,
  "includeCachedFallback": true,
  "includeAnswerHtml": false,
  "stripTracking": true,
  "maxItems": 1,
  "retries": 1,
  "maxMuidTries": 20,
  "responseTimeoutSecs": 90
}' |
apify call xyrelith-data/bing-copilot-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/bing-copilot-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/fgDhztIO6ZiMvVZJX/builds/PHeUnXDaOrp1RLewy/openapi.json
