Bing Images Scraper API
The Bing Images Scraper API returns image search results from Bing as structured JSON — the original image URL, Bing’s thumbnail, the page hosting the image and its full-size pixel dimensions — without handling proxies, retries or HTML parsing.
Endpoint:
https://api.scrapingdog.com/bing/imagesAPI Parameters
🔑
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
🔍
Search & Pagination
queryRequiredThe search term to look up on Bing Images (e.g.,danny devito). Required unlessurlis supplied.
Type: StringurlOptionalScrape an exactbing.com/images/searchURL instead of building one. When supplied, every other search and filter parameter is ignored.
Type: StringpageOptionalPage number, 1-indexed. Each page returns 35 results.
Default:1
Type: IntegerfirstOptionalBing’s native result offset, 1-indexed. Use this orpage— if both are sent,firstwins.
Type: IntegercountOptionalRequested number of results, passed through to Bing. Bing treats this as a hint, not a guarantee.
Type: IntegersafeSearchOptionalAdult-content filtering.
Accepted values:off,moderate,strict.
Type: String
🌍
Localization
mktOptionalMarket code (e.g.,en-US,en-GB,de-DE).mktandcountryare mutually exclusive — Bing rejects a contradictory pair, so if both are suppliedmktis used andcountryis dropped.
Type: StringcountryOptionalTwo-letter country code (e.g.,us,in). Alias:cc.
Mutually exclusive withmkt, which takes precedence when both are supplied.
Type: String
🎚
️ Image Filters
imagesizeOptionalFilter by image dimensions.
Accepted values:small,medium,large,wallpaper.
Legacy alias:image_size.
Type: StringphotoOptionalFilter by image type.
Accepted values:photo,clipart,linedrawing,animatedgif,transparent.
Legacy alias:image_type.
Type: StringaspectOptionalFilter by aspect ratio.
Accepted values:square,wide,tall.
Legacy alias:image_layout.
Type: Stringcolor2OptionalFilter by dominant colour.
Accepted values:color(any colour),bw(black and white), or a named colour such asFGcls_RED,FGcls_BLUE,FGcls_GREENand the otherFGcls_colours.
Legacy alias:image_color.
Type: StringfaceOptionalFilter by people in the image.
Accepted values:face,portrait.
Type: StringageOptionalFilter by date published.
Accepted values:lt1440(past 24 hours),lt10080(past week),lt43200(past month),lt525600(past year).
Type: StringlicenseOptionalFilter by usage rights.
Accepted values:L1,L2,L3,L4,L5,L6,L7.
Type: String
API Examples

Code to Integrate
curl "https://api.scrapingdog.com/bing/images?api_key=APIKEY&query=danny+devito"
import requests url = "https://api.scrapingdog.com/bing/images" params = { "api_key": "APIKEY", "query": "danny devito", "imagesize": "large", "page": 1 } response = requests.get(url, params=params, timeout=60) if response.status_code == 200: data = response.json() for item in data["images_results"]: print(item["rank"], item["original"]) else: print(f"Request failed with status code: {response.status_code}")
const params = new URLSearchParams({ api_key: "APIKEY", query: "danny devito", imagesize: "large", page: 1 }); const response = await fetch(`https://api.scrapingdog.com/bing/images?${params}`); const data = await response.json(); console.log(data.images_results);
<?php $url = 'https://api.scrapingdog.com/bing/images?' . http_build_query([ 'api_key' => 'APIKEY', 'query' => 'danny devito', 'imagesize' => 'large', 'page' => 1, ]); echo file_get_contents($url);
API Response
{
"query": "danny devito",
"total_time_taken": 3.42,
"images_results": [
{
"rank": 1,
"title": "Danny DeVito: quién es, sus películas y series",
"original": "https://image.tmdb.org/t/p/original/6kO4IN7ndoIGw2JhyhAQN3SFmdx.jpg",
"thumbnail": "https://ts4.mm.bing.net/th/id/OIP._LtZxyDTbJ6rmjwTsch8qQHaLG&pid=15.1",
"source": "quever.com",
"link": "https://quever.com/persona/518/danny-devito",
"original_width": 1067,
"original_height": 1600
}
]
}