SERP
Bing SERP
Bing search results — organic rankings on Microsoft's search engine, powering Copilot and DuckDuckGo.
POST
$0.01/call/v1/serp/bingUsage
const res = await fetch('https://api.yepapi.com/v1/serp/bing', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ query: 'typescript vs javascript performance', depth: 10 }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/serp/bing \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "typescript vs javascript performance", "depth": 10}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
query | string | Yes | Search query to look up on Bing | — |
depth | number | No | Number of results to return | 10 |
location_code | number | No | Target country code (e.g., 2840 for US). See Location Codes. | 2840 |
language | string | No | ISO language code (e.g., en, es) | "en" |
Response
{
"ok": true,
"data": {
"query": "typescript vs javascript",
"totalResults": 50,
"results": [
{
"position": 1,
"type": "organic",
"title": "Why use triple-equal (===) in TypeScript? - Stack Overflow",
"url": "https://stackoverflow.com/questions/57125700/why-use-triple-equal-in-typescript",
"description": "Jul 20, 2019 · Typescript actually does fix == vs === (as far as possible at least). In Javascript there are two comparison operators: == : When comparing primitive values, like numbers and strings, this ...",
"domain": "stackoverflow.com"
},
{
"position": 2,
"type": "organic",
"title": "What is TypeScript and why should I use it instead of JavaScript ...",
"url": "https://stackoverflow.com/questions/12694530/what-is-typescript-and-why-should-i-use-it-instead-of-javascript",
"description": "What is the TypeScript language? What can it do that JavaScript or available libraries cannot do, that would give me reason to consider it?",
"domain": "stackoverflow.com"
},
{
"position": 3,
"type": "organic",
"title": "When should I use ?? (nullish coalescing) vs || (logical ...",
"url": "https://stackoverflow.com/questions/61480993/when-should-i-use-nullish-coalescing-vs-logical-or",
"description": "The nullish coalescing operator (??) in JavaScript only considers null or undefined as \"nullish\" values. If the left-hand side is any other value, even falsy values like \"\" (empty string), 0, or false, it will not use ...",
"domain": "stackoverflow.com"
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.query | string | The search query that was executed on Bing |
data.totalResults | number | Total number of Bing results for the query |
data.results | object[] | Array of search result items |
data.results[].position | number | Position in search results (1-indexed) |
data.results[].type | string | Result type (typically organic) |
data.results[].title | string | Title of the search result |
data.results[].url | string | URL of the search result page |
data.results[].description | string | Snippet or description shown in Bing results |
data.results[].domain | string | Domain of the result URL |
Under the Hood
Under the hood, this queries our SERP engine. We normalize the response format and flatten nested structures for consistency.