Some agencies keep their own client dashboards in Google Sheets or Looker Studio, next to numbers from other tools. The Data API lets them pull RankThat’s numbers into those dashboards: rankings, Search Console clicks, audits, leads and AI crawler visits, as flat rows or CSV. It only reads. Nothing in RankThat or on a client’s site changes through it.
Before you start
- Plan: the Data API uses the same secret keys as the Audit API, which are part of the Professional and Enterprise plans.
- Who can make a key: the agency’s owner or a manager, in Settings › Agency.
- What a key sees: every site its owner can open in RankThat, with any role. A key made by someone with access to five sites reads those five.
Step 1: Create a secret key
- Open the account menu (your initials, bottom left of the sidebar), choose Agency to open Settings › Agency, and open the API keys & widget tab.
- Click Create key and pick Secret (server). (A Website widget key is for the audit widget on your website and can’t read data.)
- Give it a Name that says where it is used, such as “Looker Studio dashboards”, and click Create key.
- Copy the key, which starts with
rt_sk_. For security it is only shown once.
1: Secret (server) makes a key that can read data. 2: Name says where the key is used.
Make one key per place you use it. If a key leaks, revoke it on the same tab (the bin icon on its row): anything using it stops working at once, and the others keep running.
Step 2: Pick the data
The base address is shown in Settings › Agency › Developer docs, under Data API (read-only). Every report hangs off it:
| Report | Address | What you get |
|---|---|---|
| Your sites | /projects |
Each site’s id, name and domain. Start here: the other reports need the site’s id. |
| Rankings | /projects/{id}/rankings |
One row per keyword per rank check: position, change, ranking URL, search volume, visibility and estimated visits. Add device=desktop, mobile or all. |
| Search Console | /projects/{id}/search-console |
Clicks, impressions, CTR and average position per day. |
| Top searches or pages | /projects/{id}/search-console/top |
The top searches (kind=query) or pages (kind=page) of a month (month=2026-10). |
| Audits | /projects/{id}/audits |
Every completed audit: score, grade and the number of critical issues, warnings and notices. |
| Leads | /projects/{id}/leads |
Leads per day, by channel, type and source. Counts only: no names, emails or messages. |
| AI crawlers | /projects/{id}/ai-crawlers |
AI crawler visits per day and bot. |
The Data API (read-only) section of Developer docs: the base address, every report and an example call with a placeholder key.
Pick the days with from and to as dates (from=2026-10-01&to=2026-10-31). Without them you get the last 90 days. Each answer has a list of field names and the rows; add format=csv to get a CSV file instead. One answer holds up to 50,000 rows.
The Data API doesn’t cover keyword research, backlinks or the monthly reports. For those, connect an AI agent or a script through the AI agent connector (MCP).
Step 3: Pull it into Google Sheets
Google Sheets can read a CSV address straight into a tab with IMPORTDATA. Put the key on the end of the address:
=IMPORTDATA("BASE/projects/SITE_ID/search-console?format=csv&from=2026-10-01&to=2026-10-31&key=rt_sk_YOUR_KEY")
Replace BASE with the base address from Developer docs, SITE_ID with the id from /projects, and the key with yours.
The key is in the formula, so anyone who can open the sheet can read it. Keep the sheet private to your team, use a key made only for Sheets, and revoke it if the sheet is shared by mistake.
Step 4: Build a Looker Studio dashboard
The simplest route is through the sheet from Step 3:
- In Looker Studio, click Create, then Data source, and pick the Google Sheets connector.
- Choose the sheet and the tab that holds the RankThat rows, and click Connect.
- Use it in a report like any other data source.
Use one tab per site and report (for example Search Console for one site, leads for the same site). For a dashboard with clicks and leads side by side, add both tabs as data sources and blend them by date. The sheet refreshes the rows by itself, so the dashboard stays current.
For your own scripts
Send the key in a header, Authorization: Bearer rt_sk_... or X-API-Key: rt_sk_..., rather than in the address. Up to 120 requests a minute are answered; past that, wait a minute and try again. Errors come back with a code and a message, such as project_not_found when the key can’t open that site.
FAQ
Can I change anything in RankThat through the Data API?
No. It only reads. Changes such as applying fixes go through the app, or through the AI agent connector with your approval.
Why is a site missing from /projects?
The key’s owner can’t open that site in RankThat. Ask an admin of the site to add them (see Team and client access), or use a key made by someone who has it.
Do the numbers match the app?
Yes. They come from the same records the app and the monthly report use, read at the moment you ask. Search Console numbers run about two days behind, as they do in Google.