Bing Images Scraper API
Our Bing images scraper turns any query into a ranked list of image results as JSON: the full-size image URL, thumbnail, the source page it lives on, and the source domain, deduped and ready to use, with SafeSearch strict by default.
Quickstart
curl "https://api.bingscraperapi.com/api/v1/bing/images?q=coffee+maker&api_key=$API_KEY" import requests
BASE = "https://api.bingscraperapi.com"
API_KEY = "YOUR_API_KEY"
data = requests.get(
f"{BASE}/api/v1/bing/images",
params={"q": "coffee maker", "count": 50, "api_key": API_KEY},
timeout=30,
).json()
print(data["results_count"], "images for", data["query"])
for img in data["results"]:
print(img["position"], img["title"])
print(" image:", img["image"])
print(" from :", img["source_page"], "(", img["source"], ")") Response
{
"query": "coffee maker",
"page": 1,
"results_count": 10,
"total_results": 10,
"results": [
{
"position": 1,
"id": "i5.walmartimages.com/seo/espresso-machine-15-bar-lcd-display-espresso-maker-grinder-milk-frother-pid-temperature-control-professional-coffee-maker-latte-cappuccino-8-8-oz-bea_6a612ec9-8286-4829-9a98-7f9bdf113e7d.0434cb09f6717bab071bed60dfcb584a.jpeg",
"title": "Espresso Machine 15 Bar, LCD Display Espresso Maker with Grinder, Milk ...",
"image": "https://i5.walmartimages.com/seo/Espresso-Machine-15-Bar-LCD-Display-Espresso-Maker-Grinder-Milk-Frother-PID-Temperature-Control-Professional-Coffee-Maker-Latte-Cappuccino-8-8-Oz-Bea_6a612ec9-8286-4829-9a98-7f9bdf113e7d.0434cb09f6717bab071bed60dfcb584a.jpeg",
"thumbnail": "https://ts2.mm.bing.net/th?id=OIP.aN4c9qFX6iwjFKhIgGr1zAHaHT&pid=15.1",
"source_page": "https://www.walmart.com/ip/Espresso-Machine-15-Bar-LCD-Display-Espresso-Maker-Grinder-Milk-Frother-PID-Temperature-Control-Professional-Coffee-Maker-Latte-Cappuccino-8-8-Oz-Bea/15316058437",
"source": "walmart.com"
},
{
"position": 3,
"id": "pisces.bbystatic.com/image2/bestbuy_us/images/products/6534/6534183_rd.jpg",
"title": "Cuisinart CoffeeCenter 12-Cup Coffee Maker Barista Bar 4-In-1 ...",
"image": "https://pisces.bbystatic.com/image2/BestBuy_US/images/products/6534/6534183_rd.jpg",
"thumbnail": "https://ts2.mm.bing.net/th?id=OIP.Tl7in4fSbDtS2ixBzFc4aQHaHa&pid=15.1",
"source_page": "https://www.bestbuy.com/site/cuisinart-coffeecenter-12-cup-coffee-maker-barista-bar-4-in-1-coffeemaker-black/6534183.p",
"source": "bestbuy.com"
}
]
} | Field | Type | Description |
|---|---|---|
query | string | The query that was searched, echoed back from your request. |
page | integer | The page number for this response, from the first offset. |
results_count | integer | Number of image results returned on this page. |
results | array | The image results, each with position, id, title, image, thumbnail, source_page, and source. |
results[].image | string | The full-size image URL (murl), the direct link to the image file. |
results[].thumbnail | string | The Bing-hosted thumbnail URL (turl). |
results[].source_page | string | The page the image appears on (purl), the source of the image. |
results[].source | string | The source page's domain, e.g. walmart.com, cleaned of any www prefix. |
Params
| Parameter | Required | Default | Notes |
|---|---|---|---|
q | required | - | The image search term, e.g. coffee maker. This is the required input for the images scraper. |
url | optional | - | A full bing.com/images/search URL to parse instead of building one from q. Pass q or url. |
count | optional | 50 | Max results to return, 1 to 200. Best-effort; the mapped list is capped at this. Defaults to 50. |
first | optional | - | Result offset for pagination. Pass a higher value to page deeper into the image grid. |
country | optional | US | Two-letter market region, e.g. GB or DE. Sets mkt=en-XX so results are the stable national set rather than the proxy exit-IP geo. Defaults to US. |
safe_search | optional | strict | SafeSearch level: strict, moderate, or off. Defaults to strict so adult content is filtered. |
api_key | required | - | Your API key, passed as a query parameter. Get one free at signup. |
Use it for
Image dataset building
Product image sourcing
Visual and brand monitoring
Reverse-lookup of sources
How it works
- Send a GET request with your target and API key.
- We route through residential proxies, handle anti-bot, and parse the response.
- You get validated JSON back, ready to use.
Pricing
| Plan | Price | Best for |
|---|---|---|
| Free | 1,000 requests | Testing and small jobs |
| Pro | $0.60 / 1k | Production workloads |
| Pay-as-you-go | $0.90 / 1k | Spiky or one-off volume |
Median response 2.6s. You only pay for successful requests.
FAQ
What is a Bing images scraper?
A Bing images scraper reads the results from a Bing image search and returns them in a structured format. Our Bing images scraper API takes a query and returns each result's full-size image URL, thumbnail, source page, source domain, and a stable id as JSON, deduplicated, from a single request, with SafeSearch strict by default.
How does the scraper get the full-size image URL?
Bing embeds each image result's real URLs in a JSON object on the anchor's m attribute, with the inner quotes HTML-escaped. Our scraper decodes and parses that object per result and maps murl to image, turl to thumbnail, and purl to source_page, so you get the direct file URL and its source page without parsing the page yourself.
Can I control SafeSearch?
Yes. The safe_search parameter accepts strict, moderate, or off and defaults to strict. Bing localizes SafeSearch by IP and can leak adult results on ambiguous queries, so we force the level you set on every request. Leave it at strict for clean results, or set it to off deliberately when you need unfiltered output.
How many image results can I get per call?
The count parameter accepts 1 to 200 and defaults to 50. It is best-effort: we cap the mapped list at your count, and the actual number depends on how many usable results the page renders. Use the first parameter as an offset to page deeper into the image grid across multiple calls.
Why are results pinned to the US market?
Without an explicit market, Bing localizes the image results to the IP it sees, so a query from a rotating proxy pool comes back with foreign-localized, non-reproducible results and unstable counts. We pin mkt=en-US by default, or the market you set with the country parameter, so the image set is the stable national one on every call.
Is scraping Bing images legal?
Scraping publicly visible image search results is generally treated as lower risk than scraping data behind a login, but the images themselves are often under copyright. This is not legal advice: you are responsible for respecting Bing's terms, the source sites' terms, and the copyright of each image. Collecting image URLs and metadata for research or indexing differs from republishing the images, so use the data accordingly.