Scrapingdog

Bing Search Scraper API

The Bing Search Scraper API retrieves search results from Bing with customizable parameters for geographic location, localization, pagination, and content filtering.

Costs 5 API credits per request.

Endpoint: https://api.scrapingdog.com/bing/search

API Parameters

πŸ”‘

Scrapingdog Parameters

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
πŸ”

Search Query

  • query Required
    The parameter specifies the search query, allowing you to use any terms or operators you would typically use in a standard Bing search (e.g., 'query', NOT, OR, site:, filetype:, near:, ip:, loc:, feed:, etc.).

    Type: String
🌍

Geographic Location

  • lat Optional
    Specifies the GPS latitude as the starting point for the search.

    Type: String
  • lon Optional
    Specifies the GPS longitude as the starting point for the search.

    Type: String
🌐

Localization

  • mkt Optional
    Specifies the market from which the results originate (e.g., en-US). Market should be formatted as <language code>-<country code> (e.g., en-US) and is case-insensitive. Mutually exclusive with cc parameter.

    Type: String
  • cc Optional
    Specifies the country from which the search is conducted. Follows the two-character ISO 3166-1 format (e.g., "us", "de", "gb").

    Type: String
πŸ“„

Pagination

  • first Optional
    Adjusts the starting position of organic search results. Default: 1. Setting first=10 shifts the 10th result to first position.

    Type: String
  • count Optional
    Determines the number of results displayed per page, ranging from 1 to 50 maximum. Actual results may vary.

    Type: String
βš™

️ Advanced Filters

  • safeSearch Optional
    Controls filtering level for adult content: Off, Moderate, or Strict.

    Type: String
  • filters Optional
    Enables advanced filtering options such as date range filtering or specific display filters. Construct values by copying filters from a Bing search.

    Type: String

API Examples

Code to Integrate
curl "https://api.scrapingdog.com/bing/search?api_key=APIKEY&query=what+is+api&cc=us"
API Response
{
  "bing_data": [
    {
      "title": "What is an API? A Beginner's Guide to APIs - Postman",
      "displayed_link": "https://www.postman.com β€Ί what-is-an-api",
      "link": "https://www.postman.com/what-is-an-api/",
      "snippet": "Learn what an API is, how it works, and why it is important.",
      "rank": 1,
      "images": []
    },
    {
      "title": "API - Wikipedia",
      "displayed_link": "https://en.wikipedia.org β€Ί wiki β€Ί API",
      "link": "https://en.wikipedia.org/wiki/API",
      "snippet": "An API is a connection or interface between computers.",
      "rank": 2
    }
  ]
}