{"openapi":"3.1.0","info":{"title":"Google Images API","version":"2026-12-02","description":"Structured data from images.google.com.\n\nEvery request needs an API key in the `Authorization: Bearer <key>` header. Create one at https://maviapi.com/dashboard/keys. A successful request uses one credit, unless its operation says more (`x-credits`). That price covers 200 rows (or the operation's `x-credits-rows`); a request that returns more pays it again for each further page of that many rows. The `x-maviapi-credits` response header says what a request cost. A query param an operation does not take is ignored and named in the `x-maviapi-unknown-params` response header; send the `x-maviapi-strict: 1` request header to have such a request refused with a free `400 unknown_param` instead.\n\nEndpoint reference with live examples: https://maviapi.com/apis/images-google","termsOfService":"https://maviapi.com/terms"},"externalDocs":{"description":"API page","url":"https://maviapi.com/apis/images-google"},"servers":[{"url":"https://api.maviapi.com/v1/sites/images-google"}],"security":[{"maviapiKey":[]}],"paths":{"/image":{"get":{"operationId":"image","summary":"Image","description":"Returns the full record of one image from a query's results: title, full-size URL and dimensions, thumbnail, the page it appears on, its site and file size. With no id, returns the query's top image.\n\nEach successful request uses 25 credits.","x-credits":25,"parameters":[{"name":"id","in":"query","required":false,"description":"the image \"id\" from search_images results","schema":{"type":"string","default":""},"example":""},{"name":"q","in":"query","required":false,"description":"the search text the id was found under","schema":{"type":"string","default":"red fox"},"example":"red fox"},{"name":"max_pages","in":"query","required":false,"description":"how many result pages to look through for the id (1-5)","schema":{"type":"integer","default":3},"example":3},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":["string","null"],"example":"ELtbArEhSxawjM"},"title":{"type":["string","null"],"example":"Species Spotlight - Red Fox (U.S. National Park Service)"},"image_url":{"type":["string","null"],"example":"https://www.nps.gov/articles/images/red-fox_Ed-Sharron-copy.jpg"},"width":{"type":["integer","null"],"example":582},"height":{"type":["integer","null"],"example":605},"thumbnail_url":{"type":["string","null"],"example":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQBZuN_zTO6CR1z57yMEY69BA14kIfrWCH3qnrqAv_XSw&s=10"},"thumbnail_width":{"type":["integer","null"],"example":438},"thumbnail_height":{"type":["integer","null"],"example":456},"page_url":{"type":["string","null"],"example":"https://www.nps.gov/articles/species-spotlight-red-fox.htm"},"domain":{"type":["string","null"],"example":"www.nps.gov"},"site_name":{"type":["string","null"],"example":"National Park Service"},"file_size":{"type":["string","null"],"example":"212KB"},"dominant_color":{"type":["string","null"],"example":"rgb(144,80,29)"},"query":{"type":["string","null"],"example":"red fox"},"page":{"type":["integer","null"],"example":1},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/search_images":{"get":{"operationId":"searchImages","summary":"Search Images","description":"One page (about 100) of Google Images results for a query, with full-size URL, thumbnail and source page.\n\nPages run out after about 4-5.\n\nEach successful request uses 25 credits.","x-credits":25,"parameters":[{"name":"q","in":"query","required":false,"description":"the search text","schema":{"type":"string","default":"red fox"},"example":"red fox"},{"name":"page","in":"query","required":false,"description":"1-based results page; an empty \"results\" list means there are no more","schema":{"type":"integer","default":1},"example":1},{"name":"size","in":"query","required":false,"description":"any, large, medium or icon","schema":{"type":"string","default":"any"},"example":"any"},{"name":"type","in":"query","required":false,"description":"any, photo, clipart, lineart, animated or face","schema":{"type":"string","default":"any"},"example":"any"},{"name":"color","in":"query","required":false,"description":"any, color, gray, transparent, or a single colour: red, orange, yellow, green, teal, blue, purple, pink, white, black, brown","schema":{"type":"string","default":"any"},"example":"any"},{"name":"time","in":"query","required":false,"description":"how recently the image was published: any, day, week, month or year","schema":{"type":"string","default":"any"},"example":"any"},{"name":"license","in":"query","required":false,"description":"any, or creative_commons for images under Creative Commons licences","schema":{"type":"string","default":"any"},"example":"any"},{"name":"safe","in":"query","required":false,"description":"active to filter explicit results, off to show everything","schema":{"type":"string","default":"active"},"example":"active"},{"name":"hl","in":"query","required":false,"description":"interface language code, e.g. en, fr, de","schema":{"type":"string","default":"en"},"example":"en"},{"name":"gl","in":"query","required":false,"description":"two-letter country code of the region to search from, e.g. us, gb, fr","schema":{"type":"string","default":"us"},"example":"us"},{"$ref":"#/components/parameters/Fields"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":["string","null"],"example":"red fox"},"page":{"type":["integer","null"],"example":1},"count":{"type":["integer","null"],"example":100},"results":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["string","null"],"example":"w8_Z7HjHAIVjYM"},"title":{"type":["string","null"],"example":"Red Fox Stories | Insights & Photography by Roeselien Raimond"},"image_url":{"type":["string","null"],"example":"https://www.roeselienraimond.com/wp-content/uploads/2025/07/happy-smiling-zen-fox-roeselien-raimond.webp"},"width":{"type":["integer","null"],"example":1000},"height":{"type":["integer","null"],"example":1238},"thumbnail_url":{"type":["string","null"],"example":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLQ2kP_i1EA_lkUIRQo7t2FbX5pFwOqbq_kZcQ4MqB1g&s=10"},"thumbnail_width":{"type":["integer","null"],"example":498},"thumbnail_height":{"type":["integer","null"],"example":615},"page_url":{"type":["string","null"],"example":"https://www.roeselienraimond.com/species-red-fox/"},"domain":{"type":["string","null"],"example":"www.roeselienraimond.com"},"site_name":{"type":["string","null"],"example":"Roeselien Raimond"},"file_size":{"type":["string","null"],"example":"169KB"},"dominant_color":{"type":["string","null"],"example":"rgb(104,88,85)"}}}},"pagination":{"type":"object","properties":{"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"410":{"$ref":"#/components/responses/CursorExpired"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}},"/suggestions":{"get":{"operationId":"suggestions","summary":"Suggestions","description":"Returns the autocomplete suggestions Google Images offers for a partial image-search query, most popular first.\n\nEach successful request uses 25 credits.","x-credits":25,"parameters":[{"name":"q","in":"query","required":false,"description":"the partial search text to complete","schema":{"type":"string","default":"red fox"},"example":"red fox"},{"name":"hl","in":"query","required":false,"description":"interface language code, e.g. en, fr, de","schema":{"type":"string","default":"en"},"example":"en"},{"name":"gl","in":"query","required":false,"description":"two-letter country code that biases the suggestions, e.g. us, gb, fr","schema":{"type":"string","default":"us"},"example":"us"},{"$ref":"#/components/parameters/MaxAge"}],"responses":{"200":{"description":"The data, as JSON.","headers":{"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"x-maviapi-unknown-params":{"description":"Query params this endpoint does not take, comma separated; they were ignored. Send `x-maviapi-strict: 1` to get a free `400 unknown_param` instead.","schema":{"type":"string"}},"Age":{"description":"Seconds since the data was read from the site, as the body's `age`.","schema":{"type":"integer"}},"x-maviapi-fetched-at":{"description":"When the data was read from the site (ISO 8601, UTC), as the body's `fetched_at`.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":["string","null"],"example":"red fox"},"suggestions":{"type":["array","null"],"items":{"type":"string","example":"red fox"}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/CreditLimitReached"},"403":{"$ref":"#/components/responses/AccountSuspended"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/UpstreamFailed"}}}}},"components":{"securitySchemes":{"maviapiKey":{"type":"http","scheme":"bearer","description":"Your maviapi API key, sent as `Authorization: Bearer <key>`. Create one at https://maviapi.com/dashboard/keys."}},"parameters":{"Fields":{"name":"fields","in":"query","required":false,"description":"Row fields to keep in a list answer, comma separated (at most 50). A dot reaches into an object, or into each object of an array (venue.city). A name no row has is a 400 that lists the fields a row has.","schema":{"type":"string"}},"Cursor":{"name":"cursor","in":"query","required":false,"description":"pagination.next_cursor of the previous page, sent with the same other params: the next page of the same stored copy of the list, so a walk never skips or repeats a row when the cache refreshes or the site reorders. A cursor for other params is 400 invalid_cursor; a copy that is gone is 410 cursor_expired (start again without cursor).","schema":{"type":"string"}},"MaxAge":{"name":"max_age","in":"query","required":false,"description":"Serve a stored answer only when it was read at most this many seconds ago (0 to 86400); older, the site is read again. 0 is refresh=true. Any other value is 400 invalid_max_age.","schema":{"type":"integer","minimum":0,"maximum":86400}}},"schemas":{"Error":{"type":"object","required":["error","message","retryable"],"properties":{"error":{"type":"string","description":"Machine-readable code, e.g. `rate_limited`."},"message":{"type":"string","description":"What went wrong, in a sentence."},"retryable":{"type":"boolean","description":"Whether the same request may succeed later without any change. When true, wait the seconds in `Retry-After` (if sent) first."}}},"FetchedAt":{"type":["string","null"],"format":"date-time","description":"When this data was read from the site (ISO 8601, UTC). Also in the x-maviapi-fetched-at header.","example":"2026-11-25T09:30:00.000Z"},"Age":{"type":["integer","null"],"description":"Seconds since fetched_at: 0 for a fresh read, more for a stored answer. Also in the Age header.","example":0},"NextCursor":{"type":["string","null"],"description":"Send as `cursor`, with the same other params, for the next page of the same copy of the list; null on the last page."}},"responses":{"BadRequest":{"description":"A parameter is missing or cannot be used (`bad_request`), or, with the `x-maviapi-strict: 1` request header, a query param the operation does not take was sent (`unknown_param`, with the names in `params`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"bad_request","message":"Missing required query parameter: q","retryable":false}}}},"Unauthorized":{"description":"No API key was sent, or the key is invalid or revoked (`missing_api_key`, `invalid_api_key`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"missing_api_key","message":"Provide an API key via the Authorization: Bearer <key> header.","retryable":false}}}},"CreditLimitReached":{"description":"The plan's credits for this period are used up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"credit_limit_reached","message":"You've used all 1,000 credits in your Free plan for this period. Upgrade your plan for a higher allotment.","retryable":false}}}},"AccountSuspended":{"description":"The account that owns the key is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"account_banned","message":"Your account is suspended.","retryable":false}}}},"RateLimited":{"description":"Too many requests for this key (`rate_limited`), or too many at once for its plan (`concurrency_limited`). Wait the number of seconds in `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"rate_limited","message":"Rate limit exceeded for this API key (600 requests a minute).","retryable":true}}}},"UpstreamFailed":{"description":"The source site could not be read this time. Retrying later usually works.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"scrape_failed","message":"The upstream source could not be fetched","retryable":true}}}},"CursorExpired":{"description":"The stored copy of the list this cursor walks is gone. Start the list again without cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"cursor_expired","message":"The copy of the list this cursor walks is gone. Start the list again without cursor.","retryable":false}}}}}}}