# API Parameters

{% hint style="warning" %}
**IMPORTANT!** **The `engine` parameter should always be set to `bing` for this API!**
{% endhint %}

Being part of the SERP API suite, the Bing engine uses `query parameters` for customizing results. Below is a full list of supported parameters that you may pass to the [base URL](/bing-search-api/getting-started/access-the-api.md) in order to get the most suited results from Bing:

<table><thead><tr><th width="155">Parameter</th><th width="101" align="center">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>api_key</code> <mark style="color:red;background-color:red;">Required</mark> </td><td align="center"><code>string</code></td><td><a href="/pages/4uonEFiyfjEMhNhlN18N#the-api-key">The API key</a> required to authorize requests.</td></tr><tr><td><code>engine</code><br> <mark style="color:red;background-color:red;">Required</mark> </td><td align="center"><code>string</code></td><td>The engine of the SERP API. Needs to be set to <strong><code>bing</code></strong> for requests to Bing.</td></tr><tr><td><code>q</code><br> <mark style="color:red;background-color:red;">Required</mark> </td><td align="center"><code>string</code></td><td>The terms that you are searching for (the query).</td></tr><tr><td><code>cc</code></td><td align="center"><code>string</code></td><td>The country code from where you want to perform the search.</td></tr><tr><td><code>mkt</code></td><td align="center"><code>string</code></td><td>The market where the results come from. You can find a list with all the available markets <a href="https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/reference/market-codes">here</a>.</td></tr><tr><td><code>location</code></td><td align="center"><code>string</code></td><td>Defines where you want the search to originate from. A list of all the geotargeting locations can be found <a href="https://developers.google.com/adwords/api/docs/appendix/geotargeting">here</a>.</td></tr><tr><td><code>lat</code></td><td align="center"><code>float</code></td><td>GPS latitude for the search origin</td></tr><tr><td><code>lon</code></td><td align="center"><code>float</code></td><td>GPS longitude for the search origin</td></tr><tr><td><code>count</code></td><td align="center"><code>int</code></td><td>Defines the number of results to return.</td></tr><tr><td><code>first</code></td><td align="center"><code>int</code></td><td>Define the result offset - results to start from the selected value. Used for managing pagination.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webscrapingapi.com/bing-search-api/getting-started/api-parameters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
