Skip to content

Last updated

Changelog

Google API

HealthyRead-only

Google Search as JSON: ranked web results and news search for any query. Generated from www.google.com.

Base URL
https://api.maviapi.com/v1/sites/google
2
Endpoints
1 h ago
Last verified
6957ms
p50 latency
1
Self-repairs / all time
GET/search25 credits per call

Search

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.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

search query, e.g. "best hiking boots"

integerOptionalin query

how many results to return, 1 to 30; Google shows about 10 per page, so 20 or 30 reads two or three pages

integerOptionalin query

Google result offset: 0 is the first page, 10 the second, and so on (use next_start from the previous call)

stringOptionalin query

interface language of the results, e.g. en, de, fr, pt-BR

stringOptionalin query

country to search from, two-letter code, e.g. us, gb, de

querystringe.g."best hiking boots"
hlstringe.g."en"
glstringe.g."us"
startintegere.g.0
countintegere.g.9
next_startintegere.g.10
resultsobject[]10 fields
positionintegere.g.1
idstringe.g."a9156317db4e4142"
titlestringe.g."Best Hiking Boots of 2026"
urlstringe.g."https://bettertrail.com/outdoor-gear/best-hiking-boots"
url_resolvedbooleane.g.true
displayed_urlstringe.g."https://bettertrail.com › outdoor-gear › best-hiking-boots"
domainstringe.g."bettertrail.com"
sourcestringe.g."Better Trail"
snippetstringe.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, ..."
datestringe.g."4 days ago"
paginationobject3 fields
countintegere.g.9
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:20:15.930Z"
ageintegere.g.0
Try itLive
GET
https://api.maviapi.com/v1/sites/google/search?q=best%20hiking%20boots&num=10&start=0&hl=en&gl=us
Request
curl "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"
Example823 B
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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 /search

    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.

    Parameters and response fields for GET /search
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNosearch query, e.g. "best hiking boots"
    numinteger / queryNohow many results to return, 1 to 30; Google shows about 10 per page, so 20 or 30 reads two or three pages
    startinteger / queryNoGoogle result offset: 0 is the first page, 10 the second, and so on (use next_start from the previous call)
    hlstring / queryNointerface language of the results, e.g. en, de, fr, pt-BR
    glstring / queryNocountry to search from, two-letter code, e.g. us, gb, de
    Response fields
    FieldTypeDescription
    querystring
    hlstring
    glstring
    startinteger
    countinteger
    next_startinteger
    resultsobject[]
    results[].positioninteger
    results[].idstring
    results[].titlestring
    results[].urlstring
    results[].url_resolvedboolean
    results[].displayed_urlstring
    results[].domainstring
    results[].sourcestring
    results[].snippetstring
    results[].datestring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • News GET /news

    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).

    Parameters and response fields for GET /news
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNosearch query, e.g. "renewable energy"
    whenstring / queryNoonly articles from the last hour, day, week, month or year: 1h, 1d, 7d, 30d or 1y; leave out for any time
    hlstring / queryNointerface language of the results, e.g. en, de, fr, pt-BR
    glstring / queryNocountry to search from, two-letter code, e.g. us, gb, de
    Response fields
    FieldTypeDescription
    querystring
    whennull
    hlstring
    glstring
    countinteger
    articlesobject[]
    articles[].positioninteger
    articles[].idstring
    articles[].headlinestring
    articles[].sourcestring
    articles[].source_urlstring
    articles[].domainstring
    articles[].urlstring
    articles[].published_atstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger

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.

ListCSV columns
SearchGET /searchposition, id, title, url, url_resolved, displayed_url, domain, source, snippet, date
NewsGET /newsposition, 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
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.

  • 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, ...)…