Last updated
ChangelogGoogle API
HealthyRead-onlyGoogle Search as JSON: ranked web results and news search for any query. Generated from www.google.com.
/search25 credits per callSearch
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.
Authorization: Bearer <key> on every request.Parameters
search query, e.g. "best hiking boots"
how many results to return, 1 to 30; Google shows about 10 per page, so 20 or 30 reads two or three pages
Google result offset: 0 is the first page, 10 the second, and so on (use next_start from the previous call)
interface language of the results, e.g. en, de, fr, pt-BR
country to search from, two-letter code, e.g. us, gb, de
Response fields
querye.g."best hiking boots"hle.g."en"gle.g."us"starte.g.0counte.g.9next_starte.g.10results
positione.g.1ide.g."a9156317db4e4142"titlee.g."Best Hiking Boots of 2026"urle.g."https://bettertrail.com/outdoor-gear/best-hiking-boots"url_resolvede.g.truedisplayed_urle.g."https://bettertrail.com › outdoor-gear › best-hiking-boots"domaine.g."bettertrail.com"sourcee.g."Better Trail"snippete.g."See the best hiking boots of 2026, field-tested by our team of experts, from top brands like Hoka, Merrell, Salomon, La Sportiva, Keen, ..."datee.g."4 days ago"pagination
counte.g.9has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T10:20:15.930Z"agee.g.0curl "https://api.maviapi.com/v1/sites/google/search?q=best%20hiking%20boots&num=10&start=0&hl=en&gl=us" \-H "Authorization: Bearer $MAVI_KEY"
{
"query": "best hiking boots",
"hl": "en",
"gl": "us",
"start": 0,
"count": 9,
"next_start": 10,
"results": [
{
"position": 1,
"id": "a9156317db4e4142",
"title": "Best Hiking Boots of 2026",
"url": "https://bettertrail.com/outdoor-gear/best-hiking-boots",
"url_resolved": true,
"displayed_url": "https://bettertrail.com › outdoor-gear › best-hiking-boots",
"domain": "bettertrail.com",
"source": "Better Trail",
"snippet": "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": "4 days ago"
}
],
"pagination": {
"count": 9,
"has_more": false,
"next_cursor": null
},
"fetched_at": "2026-11-27T10:20:15.930Z",
"age": 0
}Get all the data, no code
Collect every page of GET /search into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use Google API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of Google API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=google -- npx -y '@maviapi/mcp'Import Google API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/google/openapi.json - Postman
https://api.maviapi.com/v1/apis/google/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the Google API
This is Google Search as data: /search returns the ranked organic results of a query with position, title, URL, the address Google displays, site name, snippet and date, and /news returns recent articles with headline, source and publish time. Language (hl) and country (gl) are parameters, so one key reads the results a searcher in Germany or Brazil would get.
What you can build
- Rank tracking
- Run your keywords once a day with a fixed hl and gl and store the position of your domain.
- Grounding for an AI answer
- Fetch the top results of a question and give the titles, snippets and URLs to a model as its sources.
- News monitoring
- Call /news for a company name with when=1h or when=1d and keep the articles you have not seen before.
Good to know before you call it
- One /search call returns up to 30 results. For the next ones, pass data.next_start as start.
- Google returns at most 100 articles per news query: narrow it with the when window.
- Results are organic. For pictures and places, use the Google Images and Google Maps APIs.
Choose a starting endpoint
- Search
GET /searchGoogle 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.
Parameters and response fields for GET /search
Request parameters Name Type / location Required Description q string / query No search query, e.g. "best hiking boots" num integer / query No how many results to return, 1 to 30; Google shows about 10 per page, so 20 or 30 reads two or three pages start integer / query No Google result offset: 0 is the first page, 10 the second, and so on (use next_start from the previous call) hl string / query No interface language of the results, e.g. en, de, fr, pt-BR gl string / query No country to search from, two-letter code, e.g. us, gb, de Response fields Field Type Description query string hl string gl string start integer count integer next_start integer results object[] results[].position integer results[].id string results[].title string results[].url string results[].url_resolved boolean results[].displayed_url string results[].domain string results[].source string results[].snippet string results[].date string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - News
GET /newsRecent 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).
Parameters and response fields for GET /news
Request parameters Name Type / location Required Description q string / query No search query, e.g. "renewable energy" when string / query No only articles from the last hour, day, week, month or year: 1h, 1d, 7d, 30d or 1y; leave out for any time hl string / query No interface language of the results, e.g. en, de, fr, pt-BR gl string / query No country to search from, two-letter code, e.g. us, gb, de Response fields Field Type Description query string when null hl string gl string count integer articles object[] articles[].position integer articles[].id string articles[].headline string articles[].source string articles[].source_url string articles[].domain string articles[].url string articles[].published_at string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer
Export Google data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
SearchGET /search | position, id, title, url, url_resolved, displayed_url, domain, source, snippet, date |
NewsGET /news | position, id, headline, source, source_url, domain, url, published_at |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
Google API questions
What you get, what it costs and how to call it.
Is there an official Google API?
Yes. Google has the Custom Search JSON API for Programmable Search Engine results, but it is closed to new customers; existing ones have until January 1, 2027 to move. Source: Custom Search JSON API (checked 2026-11-25). This Google API is a separate, unofficial one: an independent, hosted API from maviapi for the public data on google.com. It is not made, endorsed or supported by Google.
What data can I get from the Google API?
The Google API has 2 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/search: Google web search: the ranked organic results for a query, in Google's order (up to 30 per call). - GET
/news: Recent Google News articles for a search query, in Google News' own order (up to 100).
How much does the Google API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Its endpoints cost 5 to 25 credits per call, and each one shows its price above. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98 to $4.90, depending on the endpoint. Failed calls are free. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the Google API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /search:
curl 'https://api.maviapi.com/v1/sites/google/search' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get Google data as JSON?
Each way to get Google data as JSON fits a different need:
- Custom Search JSON API: Google has the Custom Search JSON API for Programmable Search Engine results, but it is closed to new customers; existing ones have until January 1, 2027 to move. Better when you need write access, account data or an agreement with Google.
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on google.com are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The Google API on this page: 2 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when google.com changes its layout?
Your code does not change. maviapi keeps the Google API working when google.com changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my Google API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Google Maps API
Structured data from maps.google.com.
- Google Images API
Structured data from images.google.com.
- Hürriyet API
Latest Turkish news from Hürriyet: a combined newest-first feed across sections (gündem, ekonomi, dünya, spor, ...)…