{"slug": "how-to-export-google-search-console-data-to-json", "title": "How to Export Google Search Console Data to JSON", "summary": "Google Search Console offers no native JSON export, so the only routes to JSON are the Search Analytics API, the BigQuery bulk export and an MCP server, according to a guide on exporting Search Console data. The Search Analytics API returns JSON natively with a default rowLimit of 1,000 and a maximum of 25,000 rows per request, requiring OAuth setup, startRow pagination and quota handling, while all three routes share Google's 16-month data window and omit anonymized queries. The guide notes that interface CSV exports and API JSON responses can show different row counts for the same date range because each applies its own view and row cap.", "body_md": "# How to Export Google Search Console Data to JSON\n\nThree ways to get Google Search Console data as JSON: the Search Analytics API, the BigQuery bulk export and an MCP server, with the limits that shape the file.\n\nGoogle Search Console has no JSON export button. The Search Analytics API returns JSON natively, with 1,000 rows by default and a 25,000 row maximum per request. The BigQuery bulk export gives you a daily feed you can query, and an MCP server returns the same rows to an AI assistant. All three share Google’s 16-month window and anonymized queries.\n\nYou want your Search Console data in JSON because something downstream reads JSON: a script, a dashboard, a language model, or a data warehouse. The interface gives you CSV. The API gives you JSON, but only after you set up OAuth, handle pagination and respect quotas that are easy to miss.\n\nThis guide covers the three routes that work, the fields you get back, and the mistakes that make an export look complete when it is not.\n\n## There is no JSON export button in Search Console\n\nThe Performance report offers a CSV export, and some reports download a zip of CSVs. That is the end of the built-in options. Anything that produces JSON is calling the API on your behalf, or reading the BigQuery export.\n\nThat distinction matters when you compare files. A CSV export from the interface and a JSON response from the API can show different row counts for the same date range. The interface applies its own view, the API applies its own row cap, and both leave out anonymized queries. Neither file is “the complete data”. They are two views of a dataset Google limits on purpose.\n\n## Route 1: the Search Analytics API\n\nThe Search Analytics endpoint is the direct route. You send a POST request to the property’s endpoint, with a JSON body that describes the date range, the dimensions and the row limit.\n\n```\ncurl -s -X POST \\\n  \"https://searchconsole.googleapis.com/webmasters/v3/sites/sc-domain%3Aexample.com/searchAnalytics/query\" \\\n  -H \"Authorization: Bearer $ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"startDate\": \"2026-10-01\",\n    \"endDate\": \"2026-10-31\",\n    \"dimensions\": [\"query\", \"page\"],\n    \"rowLimit\": 25000,\n    \"startRow\": 0,\n    \"type\": \"web\",\n    \"dataState\": \"all\"\n  }'\n```\n\nThe property identifier must be URL encoded. `sc-domain:example.com` becomes `sc-domain%3Aexample.com`, and a URL-prefix property keeps its trailing slash. If you get a 403, check the property string before you check the token.\n\nThe response is JSON with a `rows` array. Each row has a `keys` array that follows the order of your dimensions, plus four metrics:\n\n```\n{\n  \"rows\": [\n    {\n      \"keys\": [\"search console api\", \"https://example.com/blog/api-guide\"],\n      \"clicks\": 12,\n      \"impressions\": 840,\n      \"ctr\": 0.0143,\n      \"position\": 18.4\n    }\n  ],\n  \"responseAggregationType\": \"byPage\"\n}\n```\n\nNote what is not there. There is no date field unless you ask for the `date` dimension. There is no query field unless you ask for `query`. The `ctr` is a fraction, not a percentage. The `position` is an average, so a row can sit at 8.5 even though no single impression happened at that position.\n\n## Pagination and the row limit\n\nThe default `rowLimit` is 1,000. The maximum is 25,000 per request. If your property has more rows than that for the date range and dimensions you chose, you need `startRow`:\n\n1. Send the first request with `startRow: 0` and`rowLimit: 25000` .\n2. If the response has 25,000 rows, send the next request with `startRow: 25000` .\n3. Stop when a response returns fewer rows than you requested, or zero rows.\n4. Save each page before you request the next one.\n\nTwo details break naive loops. The API can return fewer rows than the property contains even when more data exists, because of internal limits and anonymization. And a paginated export is not a snapshot: if you run it across midnight, the last page may come from a slightly different dataset than the first. For monthly reporting, run the export after the data settles, or use `dataState: \"final\"`.\n\nThe 16-month window applies here. A request for a date range older than that returns nothing, not an error you can fix. If you need a longer history, you have to store the data yourself from today, or start the BigQuery export and let it accumulate.\n\n## Quotas that shape the design\n\nGoogle publishes quotas per site, per user and per project. The numbers that matter for a JSON export:\n\n| Resource | Limit | \n|---|---|\n| Search Analytics | 1,200 queries per minute per site | \n| Search Analytics | 1,200 queries per minute per user | \n| Search Analytics | 40,000 queries per minute per project | \n| URL Inspection | 2,000 inspections per day per site | \n| URL Inspection | 600 inspections per minute per site | \n\nThere is also a load quota measured over 10 minutes and one day. Queries that group or filter by both page and query are the most expensive, and long date ranges cost more than short ones. If you hit `quotaExceeded`, wait 15 minutes before retrying. If a single query still fails after that wait, you are over the daily load quota, and the fix is to split the date range or remove a dimension.\n\nFor a normal site, the limits are generous. For a large site with millions of query and page combinations, the load quota is the real constraint, and a daily incremental export beats a monthly full one.\n\n## Route 2: the BigQuery bulk export\n\nThe bulk export writes your Search Console data to BigQuery every day. You enable it in Search Console settings and point it at a Google Cloud project and dataset. From there you query with SQL and export the result as JSON, CSV or whatever the next tool needs.\n\nThree things to know before you enable it:\n\n- It starts on the day you turn it on. There is no backfill for the previous 16 months.\n- It is a daily feed, not a live feed. Yesterday’s data arrives later.\n- BigQuery storage and query costs apply, though the export itself is free.\n\nThe bulk export is the right route if you want a growing history beyond 16 months, if you need to join Search Console data with GA4 or CRM data, or if your site is large enough that API pagination is painful. It is the wrong route if you need one file today.\n\n## Route 3: an MCP server\n\nAn MCP server exposes the same API to an AI assistant as a set of tools. You ask a question in Claude, ChatGPT or Cursor, the server runs the query, and the model receives JSON rows it can reason over.\n\nThe advantage is that you skip the OAuth setup and the pagination code. The disadvantage is that the model can summarise the rows before you save them. Ask for the raw rows and a file path when you need an archive, not a paragraph.\n\nA useful prompt is specific about all four parameters: property, date range, dimensions and row limit. “Export the last 28 days of queries and pages for gscmagic.com as JSON, 25,000 rows per page, and tell me if the result was truncated” gives the model a check it can perform. “Give me my Search Console data” does not.\n\nGSC Magic’s analytics tool returns JSON rows and reports whether the result was truncated, so the assistant can tell you when a page cap shaped the answer. The [Google Search Console API guide](https://gscmagic.com/blog/google-search-console-api-guide) covers the underlying endpoints if you want to build the call yourself.\n\n## Which route fits which job\n\n| Job | Best route | Why | \n|---|---|---|\n| One monthly file for a report | API | Direct JSON, no warehouse setup | \n| History beyond 16 months | BigQuery export | It accumulates daily from the day you enable it | \n| Ad hoc questions in an AI assistant | MCP server | No code, same rows, same limits | \n| Joining search data with revenue | BigQuery export | SQL joins in one place | \n| A quick look at one query | Interface | Faster than any export | \n\n## Five mistakes that make a JSON export useless\n\n1. Summing query rows and calling it the property total. Anonymized queries and row caps make the sum smaller than the total. Use the total from a query without the query dimension.\n2. Forgetting the date dimension. Without `date` in the dimensions, the rows are aggregates for the whole range, and you cannot compare periods.\n3. Comparing a filtered export with an unfiltered one. A country filter changes both the rows and the totals. Keep the filter in the filename.\n4. Treating `position` as a rank. It is an average across impressions, weighted by where the page appeared. A page with one impression at position 3 and one at 90 has an average near 46.\n5. Storing only the flattened table. Keep the raw JSON. When a number looks wrong three months later, the raw response is the only way to check what Google actually returned.\n\n## When JSON is the wrong format\n\nIf the next stop is a spreadsheet, CSV is easier. If the next stop is a chart in a BI tool, the tool probably has a native connector. If the next stop is a single number for a client update, you do not need an export at all.\n\nJSON earns its place when the data feeds code, a model or an archive. It preserves types and nesting, and it survives schema changes better than a hand-built CSV. For everything else, the simpler format wins.\n\n## Frequently asked questions\n\n### Is there a JSON export button in Google Search Console?\n\nNo. The interface exports CSV or a zip of CSV files, depending on the report. JSON comes from the Search Analytics API, from a tool that wraps it, or from a query you run on the BigQuery bulk export.\n\n### How many rows can one JSON request return?\n\nThe Search Analytics API returns 1,000 rows by default and accepts a `rowLimit` up to 25,000 per request. You page with `startRow`, and a response with fewer rows than you asked for usually means you reached the end.\n\n### Why is the JSON missing some queries?\n\nSearch Console withholds anonymized queries from query-level results, and row caps or filters can truncate the rest. The sum of your query rows will rarely equal the property total. Compare like for like, with the same dimensions and date range.\n\n### Can I get more than 16 months of data as JSON?\n\nNo. Search Console keeps about 16 months of performance data, and no export route can return days outside that window. The BigQuery bulk export starts collecting on the day you enable it, so it does not backfill older history either.\n\n### Do I need an API key for the Search Console API?\n\nNo. The API uses OAuth 2.0 access tokens, or a service account that has been added as a user on the property. There is no simple API key you can paste into a URL.\n\n### Can an MCP server return Search Console data as JSON?\n\nYes. An MCP server calls the same API and returns structured rows to the client. You still face the same row caps, quotas and 16-month window, because the limits belong to Google, not to the connector.\n\n## Do this with GSC Magic\n\nGSC Magic returns Search Console rows as JSON to Claude, ChatGPT and Cursor, with the truncation flag included so you know when a row cap shaped the answer. Ask for a date range, dimensions and a limit, and save the result without writing OAuth code.\n\n[Start free](https://app.gscmagic.com/login?mode=signup) or read [how the Search Console API works](https://gscmagic.com/blog/google-search-console-api-guide) before you build your own client.\n\n### Give your agent your search data.\n\nGSC Magic connects Claude, ChatGPT and Cursor to Google Search Console, Bing and GA4. Free plan, 7-day Pro trial, no card.\n\n[Start free](https://app.gscmagic.com/login?mode=signup)", "url": "https://wpnews.pro/news/how-to-export-google-search-console-data-to-json", "canonical_source": "https://gscmagic.com/blog/export-search-console-data-json", "published_at": "2026-11-01 00:00:00+00:00", "updated_at": "2026-11-13 21:19:34.338816+00:00", "lang": "en", "topics": ["structured-data", "ai-search", "agent-protocols"], "entities": ["Google", "Google Search Console", "Search Analytics API", "BigQuery"], "also_reported_by": [], "takeaway": "The Search Analytics API caps each request at 25,000 rows (1,000 by default), so exports beyond that require startRow pagination, and paginated runs are not snapshots since a run across midnight can mix datasets.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-to-export-google-search-console-data-to-json", "markdown": "https://wpnews.pro/news/how-to-export-google-search-console-data-to-json.md", "text": "https://wpnews.pro/news/how-to-export-google-search-console-data-to-json.txt", "jsonld": "https://wpnews.pro/news/how-to-export-google-search-console-data-to-json.jsonld"}}