Bing Images API documentation for developers who need Bing image search as JSON. Scrappa's GET /api/bing/images endpoint returns full-size image URLs, thumbnails, the source page, dimensions and format.
How to call the endpoint
Send a GET request with a required query and your API key in the x-api-key header. Page with page (1-20, 35 images per page; pages can repeat an image, so de-duplicate by image_url when you merge pages). Filter with size (small, medium, large, wallpaper), layout (square, wide, tall), type (photo, clipart, linedrawing, animatedgif, transparent), color, freshness (day, week, month, year) and license (any, public_domain). Filters can be combined. Unknown values return a validation error.
Response fields
Each image has position, id, title, description, image_url, thumbnail, source_page, source_domain, width, height and format. With size or layout, images whose own width and height do not fit the filter are removed, so a page can hold fewer than 35 images.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
11 optional filters available.
string
Required
Image search query.
Example: red car
coffee shops
string
Optional
Alias for query. Prefer query for new integrations.
coffee shops
string
Optional
Page number, 35 images per page.
Range: 1-20
Default: 1
1
string
Optional
small (under 300 px), medium (300-499 px), large (500 px or more) or wallpaper (1200 px wide or more).
example
string
Optional
square, wide or tall.
example
string
Optional
photo, clipart, linedrawing, animatedgif or transparent.
example
string
Optional
color, bw, red, orange, yellow, green, teal, blue, purple, pink, brown, black, gray or white.
example
string
Optional
Image age: day, week, month or year.
example
string
Optional
any or public_domain.
example
string
Optional
Bing market, language and region together, for example de-DE or en-GB. Results, wording and dates follow the market.
Default: en-US
example
string
Optional
Two-letter country code, for example DE. Scrappa sends it together with mkt.
Default: the country of mkt
example
string
Optional
Interface language, for example de. Scrappa sends it together with mkt.
Default: the language of mkt
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
page
query
market
source
filters
results_on_page
Common data fields
id
title
width
format
{
"data": [
{
"id": "80C32659D50C3DB9A1F99014E0061671F40BD60F",
"title": "Red Car Clipart Photos, Download The BEST Free Red Car Clipart Stock ...",
"width": 5456,
"format": "jpg",
"height": 3632,
"position": 1,
"image_url": "https://images.pexels.com/photos/3729464/pexels-photo-3729464.jpeg",
"thumbnail": "https://ts4.mm.bing.net/th?id=OIP.B89JFviebUWHqx55l28wEQHaE7&pid=15.1",
"description": "Red Car Clipart Photos, Download The BEST Free Red Car Clipart Stock ...",
"source_page": "https://www.pexels.com/search/red%20car%20clipart/",
"source_domain": "pexels.com"
}
],
"page": 1,
"query": "red car",
"market": {
"cc": "US",
"mkt": "en-US",
"setlang": "en"
},
"source": "bing",
"filters": {
"size": "large"
},
"results_on_page": 1
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
The query is missing, or page, size, layout, type, color, freshness, license, mkt, cc or setlang failed validation.
{
"errors": {
"query": [
"The query field is required."
]
},
"message": "The request validation failed"
}Bing Temporarily Unavailable
Bing did not return usable data after the bounded retry on a second route. The request is not billed. Retry shortly.
{
"error": "Bing upstream is temporarily unavailable. Please retry shortly.",
"service": "BingVerticalsService",
"retryable": true,
"error_code": "bing_upstream_unavailable",
"failed_stage": "upstream_request"
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.