Bing

Search Bing web results

Returns Bing web search results for a query string, including organic results, optional context panel data, related queries, people-also-ask questions, news modules, video modules, and page-based pagination. Empty optional blocks are omitted from the JSON response. Locale defaults to country=us and lang=en-us. Returns 503 on a genuine transport failure or challenge page. Bing occasionally serves a well-formed page whose results share no significant term with the query; when every attempt hits this, the response is still returned as 200 with data.low_confidence set to true (and the X-Low-Confidence header) instead of being withheld, so callers get Bing's real answer plus an honest signal to double-check it rather than nothing. Queries that use the site: operator (for example site:gov.hu) are not supported: Bing serves a bot-verification challenge for them, so they are rejected with 400 before any request is made. Use the DuckDuckGo (/api/v1/duckduckgo/search), Brave (/api/v1/brave/search), or Yahoo (/api/v1/yahoo-search/search) search endpoints for domain-restricted searches instead.

get/bing/search

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/bing/search
  • Auth: API key in header x-api-key

Query parameters

qstring required

Search query

pageinteger

1-based page number; defaults to 1

countinteger

Results per page; defaults to 10, clamped to 1..50

countrystring

Two-letter country code; defaults to us

langstring

Bing UI language; defaults to en-us

Headers

x-api-keystring required

API key required

Response

data.low_confidence is true when Bing's results shared no significant term with the query (see the field's description); the data is still exactly what Bing returned

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "context": {
      "attributes": [
        {
          "label": "Founded",
          "value": "2015"
        }
      ],
      "description": "OpenAI is an AI research and deployment company.",
      "image": "https://example.com/openai.jpg",
      "subtitle": "Artificial intelligence research organization",
      "title": "OpenAI",
      "url": "https://openai.com/"
    },
    "news": [
      {
        "age": "2 hours ago",
        "age_timestamp": 1713513600,
        "description": "OpenAI announced a new model release.",
        "position": 1,
        "related_count": 30,
        "source": "Reuters",
        "thumbnail": "https://example.com/openai-news.jpg",
        "title": "OpenAI announces new model",
        "url": "https://example.com/openai-news"
      }
    ],
    "pagination": {
      "count": 10,
      "next_page": 2,
      "page": 1,
      "previous_page": 1
    },
    "results": [
      {
        "age": "Apr 19, 2023",
        "age_timestamp": 1713484800,
        "description": "OpenAI is an AI research and deployment company.",
        "display_url": "https://www.reddit.com > OpenAI",
        "favicon": "https://th.bing.com/th/id/ODLS.example?w=32&h=32",
        "hostname": "www.reddit.com",
        "position": 1,
        "title": "OpenAI - Reddit",
        "url": "https://www.reddit.com/r/OpenAI/"
      }
    ],
    "videos": [
      {
        "age": "Nov 6, 2023",
        "age_timestamp": 1699228800,
        "creator": "OpenAI",
        "duration": "45:12",
        "platform": "YouTube",
        "position": 1,
        "thumbnail": "https://example.com/openai-video.jpg",
        "title": "OpenAI DevDay keynote - YouTube",
        "url": "https://www.youtube.com/watch?v=openai-devday",
        "views": "1.2M views"
      }
    ]
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.