Overview
The ScrapeBadger Copilot API sends a prompt to Microsoft Copilot (Copilot Search in Bing), Microsoft’s public Copilot answer engine atbing.com/copilotsearch, and returns the grounded answer as structured JSON,
including the web sources Copilot retrieved and cited.
Requests are anonymous: no Microsoft account and no billing relationship
with Microsoft. You see what a logged-out user in your chosen country and Bing
market sees.
All endpoints live under
https://scrapebadger.com/v1/copilot/* and
authenticate with the X-API-Key header. /ask and /brand-visibility
accept both GET (query params) and POST (JSON body). Credits are charged
per request and reported on the X-Credits-Used response header.Features
- Grounded Copilot answers — the full answer text, plus a Markdown variant.
- Claim-level citations — each citation anchors a span of
answer(start_index/end_index,matched_text) to a source byref_index, Copilot’s own citation number. - The full search trail —
search_resultsis everything Copilot retrieved, each flaggedcited: true/false, andsearch_queriesshows the searches it ran. - Brand visibility (AEO/GEO) built in — one call returns mention counts, position score, share of voice against named competitors, and whether and how highly your domain was cited.
- Country and market control —
countrypicks the egress country and, by default, its Bing market (JP:ja-JP);marketoverrides it. Setstrict_countryto fail with an unbilled503instead of falling back.
Honesty caveat
Credits
Only
2xx responses are billed. A 400, a 422 content_refused, a 502
upstream failure or a 503 country_unavailable costs nothing.Quickstart
ja-JP market, ranks products such
as freee会計, マネーフォワード クラウド会計 and 弥生会計 Next, and cites sources
such as it-trend.jp.
What you can build
AEO / GEO monitoring
Track whether Copilot names your brand for the prompts your buyers ask, how
early it names you, and how you rank against competitors, with
/brand-visibility.Citation-source auditing
Find which domains Copilot trusts for a topic.
search_results shows
everything it retrieved; cited shows what made it into the answer.Per-market research
Compare the answer in
ja-JP against en-US or de-DE. Use
strict_country when the egress country must be exact.Cross-engine comparison
Ask the same prompt on the ChatGPT,
Gemini and
Perplexity APIs to compare who
each engine names and cites.
FAQ
Is this copilot.microsoft.com?
Is this copilot.microsoft.com?
No. It asks Copilot Search in Bing (
bing.com/copilotsearch),
Microsoft’s public Copilot answer engine, as an anonymous visitor. You do
not need a Microsoft account.Why did a call return in under a second?
Why did a call return in under a second?
Copilot served its own recent cached answer for the same prompt. The
response has
cached: true, and search_results lists only the cited
sources.How do country and market interact?
How do country and market interact?
country sets where the ask egresses from and, unless you pass market,
which Bing market answers (JP: ja-JP). With neither, the market is
en-US. See List Markets.Why does the response country differ from the one I sent?
Why does the response country differ from the one I sent?
country is best-effort: when no exit there answers, the last retry may
egress from the US, and the response country says so. Set
strict_country=true to get an unbilled 503 country_unavailable instead.Can I continue a conversation?
Can I continue a conversation?
No. Every request is a fresh, standalone question. Put all necessary
context in the single
prompt (up to 2,000 characters).What happens if a request fails?
What happens if a request fails?
You get
{"detail": {"code": ..., "message": ...}}: 400 for bad input,
422 content_refused when Copilot declines the prompt, 502
(empty_answer, blocked, throttled) for upstream failures, and
503 country_unavailable under strict_country. Non-2xx responses are
never billed.
