Call it
curl https://api.peume.com/v1/call/bing-serp-organic-results-ai-overview \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "how to remove rust from cast iron",
"country": "US",
"pages": 1,
"first": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/bing-serp-organic-results-ai-overview", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "how to remove rust from cast iron",
"country": "US",
"pages": 1,
"first": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/bing-serp-organic-results-ai-overview",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "how to remove rust from cast iron",
"country": "US",
"pages": 1,
"first": 1
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: bing-serp-organic-results-ai-overview.
Parameters
queryRequiredstringat most 3,500 characters after URL encoding, so fewer for non-Latin scripts
Example: how to remove rust from cast iron
countryRequiredstringISO 3166-1 alpha-2; it sets the Bing market. CN, KR and RU are refused; use.account.coverage.countries for the current list.
Example: US
pagesintegerEach page past the first adds 2 credits.
Example: 1
firstintegerthe result to start at, from 1, default 1. Bing shows its AI summary only on its first page, so there is no AI Overview above 1.
Example: 1
includeobjecthtml is free. aioverview as true or an object adds 2 credits even when Bing shows no AI summary. Set markdown to true inside the object to include Markdown.
Other ways to do it
Same job, other sources, cheapest first.
