{"openapi":"3.1.0","info":{"title":"Google API","version":"2026-11-27","description":"Google Search as JSON: ranked web results and news search for any query.\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/google","termsOfService":"https://maviapi.com/terms"},"externalDocs":{"description":"API page","url":"https://maviapi.com/apis/google"},"servers":[{"url":"https://api.maviapi.com/v1/sites/google"}],"security":[{"maviapiKey":[]}],"paths":{"/news":{"get":{"operationId":"news","summary":"News","description":"Recent Google News articles for a search query, in Google News' own order (up to 100). Each article has its position, Google News id, headline, source name, source site and domain, the Google News article link, and published_at (UTC, ISO 8601).\n\nEach successful request uses 5 credits.","x-credits":5,"parameters":[{"name":"q","in":"query","required":false,"description":"search query, e.g. \"renewable energy\"","schema":{"type":"string","default":"renewable energy"},"example":"renewable energy"},{"name":"when","in":"query","required":false,"description":"only articles from the last hour, day, week, month or year: 1h, 1d, 7d, 30d or 1y; leave out for any time","schema":{"anyOf":[{"enum":["1h","1d","7d","30d","1y"],"type":"string"},{"type":"null"}]}},{"name":"hl","in":"query","required":false,"description":"interface language of the results, e.g. en, de, fr, pt-BR","schema":{"type":"string","default":"en"},"example":"en"},{"name":"gl","in":"query","required":false,"description":"country to search from, two-letter code, e.g. us, gb, de","schema":{"type":"string","default":"us"},"example":"us"},{"name":"limit","in":"query","required":false,"description":"Rows in one page, 1 to 200 (default 50).","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"offset","in":"query","required":false,"description":"Rows to skip before the page starts (default 0).","schema":{"type":"integer","minimum":0,"default":0}},{"$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":{"data":{"type":"object","properties":{"query":{"type":["string","null"],"example":"renewable energy"},"when":{"type":"null","example":null},"hl":{"type":["string","null"],"example":"en"},"gl":{"type":["string","null"],"example":"us"},"count":{"type":["integer","null"],"example":100},"articles":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":["integer","null"],"example":1},"id":{"type":["string","null"],"example":"CBMi1wFBVV95cUxPNkV5eTl5UjhYVzZMNDZQZDFNTjF4eFdUSGtRRDRPeG1VaUZfWVMzOHd0aXN4QkdneFhjTWVYRGpRZmlEQjBtTUEzb012Nm44SkxDR3dxM0VJTU1SYW1XQlVZTlJGbUk0M01qR0lWY002Sll1U2tlRHVQVmplSjlFSFVSS1hVR2I5ZGJDSlVfT3drTmJZbi0tRFZNb1hiTlVKTmUxdUZYY2t1RU92OUxMV1VjRkpjbGFHREZwLWthcVZJdjlEYWFHa0ZLc3pCa0xSSHpJR2Z2bw"},"headline":{"type":["string","null"],"example":"AFSIA Awards 2026 Winners Announced: Celebrating Achievements Across Africa's Solar and Storage Sector"},"source":{"type":["string","null"],"example":"Renewables Now"},"source_url":{"type":["string","null"],"example":"https://renewablesnow.com"},"domain":{"type":["string","null"],"example":"renewablesnow.com"},"url":{"type":["string","null"],"example":"https://news.google.com/rss/articles/CBMi1wFBVV95cUxPNkV5eTl5UjhYVzZMNDZQZDFNTjF4eFdUSGtRRDRPeG1VaUZfWVMzOHd0aXN4QkdneFhjTWVYRGpRZmlEQjBtTUEzb012Nm44SkxDR3dxM0VJTU1SYW1XQlVZTlJGbUk0M01qR0lWY002Sll1U2tlRHVQVmplSjlFSFVSS1hVR2I5ZGJDSlVfT3drTmJZbi0tRFZNb1hiTlVKTmUxdUZYY2t1RU92OUxMV1VjRkpjbGFHREZwLWthcVZJdjlEYWFHa0ZLc3pCa0xSSHpJR2Z2bw?oc=5"},"published_at":{"type":["string","null"],"example":"2026-11-27T08:52:12.000Z"}}}},"pagination":{"type":["object","null"],"properties":{"count":{"type":["integer","null"],"example":100},"has_more":{"type":["boolean","null"],"example":false},"next_cursor":{"type":"null","example":null}}},"fetched_at":{"type":["string","null"],"example":"2026-11-27T10:20:04.256Z"},"age":{"type":["integer","null"],"example":0}}},"cached":{"type":"boolean","description":"Whether this answer was served from the stored copy."},"source":{"description":"Where the data was read from."},"pagination":{"type":"object","properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}},"required":["data","cached","source"]}}}},"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"}}}},"/search":{"get":{"operationId":"search","summary":"Search","description":"Google web search: the ranked organic results for a query, in Google's order (up to 30 per call). Each result has its rank (position, counting from 1 across pages), a stable id, title, destination url (url_resolved tells whether url is the page itself or Google's result link), displayed_url, domain, source (site name), snippet, and the date Google shows before the snippet (as displayed, else null). next_start is the start value of the following call.\n\nEach successful request uses 25 credits.","x-credits":25,"parameters":[{"name":"q","in":"query","required":false,"description":"search query, e.g. \"best hiking boots\"","schema":{"type":"string","default":"best hiking boots"},"example":"best hiking boots"},{"name":"num","in":"query","required":false,"description":"how many results to return, 1 to 30; Google shows about 10 per page, so 20 or 30 reads two or three pages","schema":{"type":"integer","default":10},"example":10},{"name":"start","in":"query","required":false,"description":"Google result offset: 0 is the first page, 10 the second, and so on (use next_start from the previous call)","schema":{"type":"integer","default":0},"example":0},{"name":"hl","in":"query","required":false,"description":"interface language of the results, e.g. en, de, fr, pt-BR","schema":{"type":"string","default":"en"},"example":"en"},{"name":"gl","in":"query","required":false,"description":"country to search from, two-letter code, e.g. us, gb, de","schema":{"type":"string","default":"us"},"example":"us"},{"name":"limit","in":"query","required":false,"description":"Rows in one page, 1 to 200 (default 50).","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"offset","in":"query","required":false,"description":"Rows to skip before the page starts (default 0).","schema":{"type":"integer","minimum":0,"default":0}},{"$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":{"data":{"type":"object","properties":{"query":{"type":["string","null"],"example":"best hiking boots"},"hl":{"type":["string","null"],"example":"en"},"gl":{"type":["string","null"],"example":"us"},"start":{"type":["integer","null"],"example":0},"count":{"type":["integer","null"],"example":9},"next_start":{"type":["integer","null"],"example":10},"results":{"type":["array","null"],"items":{"type":"object","properties":{"position":{"type":["integer","null"],"example":1},"id":{"type":["string","null"],"example":"a9156317db4e4142"},"title":{"type":["string","null"],"example":"Best Hiking Boots of 2026"},"url":{"type":["string","null"],"example":"https://bettertrail.com/outdoor-gear/best-hiking-boots"},"url_resolved":{"type":["boolean","null"],"example":true},"displayed_url":{"type":["string","null"],"example":"https://bettertrail.com › outdoor-gear › best-hiking-boots"},"domain":{"type":["string","null"],"example":"bettertrail.com"},"source":{"type":["string","null"],"example":"Better Trail"},"snippet":{"type":["string","null"],"example":"See the best hiking boots of 2026, field-tested by our team of experts, from top brands like Hoka, Merrell, Salomon, La Sportiva, Keen, ..."},"date":{"type":["string","null"],"example":"4 days ago"}}}},"pagination":{"type":["object","null"],"properties":{"count":{"type":["integer","null"],"example":9},"has_more":{"type":["boolean","null"],"example":false},"next_cursor":{"type":"null","example":null}}},"fetched_at":{"type":["string","null"],"example":"2026-11-27T10:20:15.930Z"},"age":{"type":["integer","null"],"example":0}}},"cached":{"type":"boolean","description":"Whether this answer was served from the stored copy."},"source":{"description":"Where the data was read from."},"pagination":{"type":"object","properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"count":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"$ref":"#/components/schemas/NextCursor"}}},"fetched_at":{"$ref":"#/components/schemas/FetchedAt"},"age":{"$ref":"#/components/schemas/Age"}},"required":["data","cached","source"]}}}},"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"}}}}},"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}}}}}}}