WebScrapingAPI Docs
Search Engine APIsBing Search API
Bing search results page

Basic API Requests

Send Bing Search API requests through the SERP API and receive search results as JSON.

The Bing Search API uses the SERP API endpoint and returns real-time Bing results in JSON. Every request must include your API key, the Bing engine, and a search query.

Request

GET https://serpapi.webscrapingapi.com/v2

curl --get "https://serpapi.webscrapingapi.com/v2" \
  --data-urlencode "api_key=YOUR_API_KEY" \
  --data-urlencode "engine=bing" \
  --data-urlencode "q=running shoes"

Required Parameters

NameDescription
api_keyYour SERP API key.
engineMust be bing.
qSearch query to send to Bing.

Optional Parameters

NameDescription
locationGeotarget location. Use together with lat and lon when you need a precise origin.
latLatitude for the search origin.
lonLongitude for the search origin.
ccCountry code for result localization.
langInterface language. Use a two-letter code or a locale such as en-US.
mktBing market code.
safesearchAdult-content filter: off, moderate, or strict. Defaults to moderate.
firstOffset that skips the first N results.
countNumber of results to request per page.

Response

Bing results can include ads, organic results, related searches, images, and metadata. Sections vary by query, location, and market.

{
  "general": {
    "search_engine": "bing",
    "query": "running shoes",
    "results_cnt": 5780000,
    "search_type": "text"
  },
  "organic": [
    {
      "title": "Running Shoes",
      "link": "https://example.com/running-shoes",
      "display_link": "https://example.com",
      "description": "Shop running shoes for daily training and racing.",
      "rank": 1
    }
  ],
  "related": [
    {
      "text": "best running shoes",
      "link": "https://www.bing.com/search?q=best+running+shoes"
    }
  ]
}

Pagination

Use first to skip results and count to control the requested page size.

curl --get "https://serpapi.webscrapingapi.com/v2" \
  --data-urlencode "api_key=YOUR_API_KEY" \
  --data-urlencode "engine=bing" \
  --data-urlencode "q=running shoes" \
  --data-urlencode "first=20" \
  --data-urlencode "count=10"

Notes

URL-encode q when building requests manually. Request libraries and curl --data-urlencode handle encoding for you.

Keep api_key server-side. Do not expose it in browser code or public repositories.

On this page