API · Bing
GET /bing/images
Bing image search with size, type, color, aspect and license filters.
| Request | GET /v1/bing/images |
| Operation id | bing.images.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Bing image search with size, type, color, aspect and license filters.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | |
market | string | no | Bing market, e.g. en-US, de-DE (default en-US). |
country | string | no | |
language | string | no | |
safe_search | "strict" | "moderate" | "off" | no | One of strict, moderate, off. |
time_range | "any" | "day" | "week" | "month" | "year" | no | One of any, day, week, month, year. |
size | "small" | "medium" | "large" | "wallpaper" | no | One of small, medium, large, wallpaper. |
type | "photo" | "clipart" | "linedrawing" | "animatedgif" | "transparent" | no | One of photo, clipart, linedrawing, animatedgif, transparent. |
aspect | "square" | "wide" | "tall" | no | One of square, wide, tall. |
color | "color" | "bw" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink" | "brown" | "black" | "gray" | "white" | no | One of color, bw, red, orange, yellow, green, teal, blue, purple, pink, brown, black, gray, white. |
face | "face" | "portrait" | no | One of face, portrait. |
license | "creative_commons" | no | One of creative_commons. |
limit | integer | no | |
cursor | string | no |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Images. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | Bing has nothing for that search. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Bing is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.