Docs
Log in

API usage

Add &scraper=bing-serp to a Crawling API request. URL-encode the target URL in the url parameter.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.bing.com/search?q=iphone' \
  --data-urlencode 'scraper=bing-serp' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.bing.com/search?q=iphone',
    {'scraper': 'bing-serp'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.bing.com/search?q=iphone',
  { scraper: 'bing-serp' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.bing.com/search?q=iphone', scraper: 'bing-serp')
data = JSON.parse(res.body)

Example input URL

The URL passed in the url parameter (URL-decoded for readability):

https://www.bing.com/search?q=iphone

Response shape

JSON response body. Field types may be null when the source page omits the value.

query
string
Search query.
total_results
integer | null
Total result count.
organic
array
Organic result objects.
organic[].title
string
Result title.
organic[].url
string
Destination URL.
organic[].snippet
string
Snippet.
organic[].position
integer
Position (1-indexed).
videos
array
Video results.
related_searches
array
Related queries.

Sample response

{
  "query": "iphone",
  "organic": [
    {
      "title": "iPhone - Apple",
      "url": "https://www.apple.com/iphone/",
      "snippet": "Discover the new iPhone...",
      "position": 1
    }
  ],
  "related_searches": ["iphone 15", "iphone pro"]
}