Data API
Your Mador data, where you already work
The same measurements you see in the customer area, read from a Google Sheet, from Looker Studio or from your agency's own software. One key, eight tables, answers in JSON or CSV.
Open «API and data»Keys and exports live in the customer area.
Who can use it
The API comes with three kinds of access, and each one sees its own data:
- Growth: the projects in your account.
- Agency: the projects of the clients your agency looks after.
- Partner Program: the scans you ran on behalf of businesses.
The key
You create it in the customer area, on the «API and data» page.
- Sign in to the customer area and open «API and data».
- Name the key, say «Client sheet» or «Looker Studio», and press «Create key».
- Copy it straight away: Mador shows it once and only keeps a fingerprint, so it cannot show it to you again.
Use one key per place: if a sheet ends up in the wrong hands, you revoke that key and the others keep working.
Your first call
The key goes in the Authorization header. Every JSON answer carries the rows in data and, when there are more, the cursor for the next page.
curl https://mador.ai/api/v1/projects \
-H "Authorization: Bearer mdr_YOUR_KEY"{
"object": "list",
"table": "projects",
"data": [
{
"project_id": "6f1c…",
"kind": "project",
"name": "Clinica Dental Adeje",
"zone": "Costa Adeje",
"category": "dentista",
"language": "es",
"plan": "growth",
"paused": false,
"last_measurement_date": "2026-10-28",
"named_in_answers": 9,
"answers": 140
}
],
"has_more": false,
"next_cursor": null
}The tables
Measurements reads the last six comparable measurements, the same ones you see in the customer area; the others start from the latest measurement and read those six when you add from or to. The same list downloads from the customer area as the data dictionary.
curl "https://mador.ai/api/v1/dictionary?language=en"/api/v1/projectsThe businesses the key can read, with the latest measurement.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| kind | string | project = Growth or Agency project; partner_scan = scan run by a partner. |
| name | string | The business name. |
| zone | string? | The measured area. |
| category | string? | The measured category. |
| language | string? | The language of the questions. |
| plan | string | growth, monitor or free_scan: it sets how many assistants are measured. |
| paused | boolean | true when the project's measurements are paused. |
| last_measurement_date | date? | The day of the latest measurement. |
| named_in_answers | integer? | In how many answers the business is named in the latest measurement. |
| answers | integer? | Out of how many answers: area questions times assistants. |
/api/v1/measurementsResults by assistant, date and language: one row per measurement and assistant. Reads the last six comparable measurements.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| measurement_id | string | The measurement id. |
| date | date | The measurement day (YYYY-MM-DD, UTC). |
| zone | string | The measured area, as shown in the customer area. |
| category | string | The measured category. |
| language | string | The language of the questions: it, es, en or de. |
| assistant_id | string | The assistant id, for filters (openai, perplexity, anthropic, aiMode…). |
| assistant | string | The assistant name (ChatGPT, Claude, Gemini…). |
| named_in_answers | integer | In how many of this assistant's answers the business is named. |
| answers | integer | How many answers from this assistant arrived. |
/api/v1/questionsThe measured questions, each with how many answers name the business. Latest measurement by default.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| measurement_id | string | The measurement id. |
| date | date | The measurement day (YYYY-MM-DD, UTC). |
| zone | string | The measured area, as shown in the customer area. |
| category | string | The measured category. |
| language | string | The language of the questions: it, es, en or de. |
| question | string | The question asked to the assistants. |
| type | string | zone = area question, the same for the whole category; free = question chosen by the customer. |
| named_in_answers | integer | In how many answers to this question the business is named. |
| answers | integer | How many answers to this question arrived. |
/api/v1/presencePresence question by question and assistant by assistant. Latest measurement by default.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| measurement_id | string | The measurement id. |
| date | date | The measurement day (YYYY-MM-DD, UTC). |
| zone | string | The measured area, as shown in the customer area. |
| category | string | The measured category. |
| language | string | The language of the questions: it, es, en or de. |
| question | string | The question asked to the assistants. |
| type | string | zone = area question, the same for the whole category; free = question chosen by the customer. |
| assistant_id | string | The assistant id, for filters (openai, perplexity, anthropic, aiMode…). |
| assistant | string | The assistant name (ChatGPT, Claude, Gemini…). |
| status | string | named = it names you; not_named = it answered without naming you; not_measured = the answer did not arrive. |
/api/v1/competitorsThe other businesses the assistants name for the same area and category, with your own row next to them. Latest measurement by default.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| measurement_id | string | The measurement id. |
| date | date | The measurement day (YYYY-MM-DD, UTC). |
| zone | string | The measured area, as shown in the customer area. |
| category | string | The measured category. |
| language | string | The language of the questions: it, es, en or de. |
| list_order | integer? | Order by answers, most named first. Empty on your own row. |
| name | string | The name of the named business. |
| answers | integer | In how many answers it is named. |
| questions | integer | On how many different questions. |
| is_you | boolean | true on your own business's row. |
/api/v1/sourcesThe websites the assistants read to answer: the top twelve of the measurement, as in the customer area. Latest measurement by default.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| measurement_id | string | The measurement id. |
| date | date | The measurement day (YYYY-MM-DD, UTC). |
| zone | string | The measured area, as shown in the customer area. |
| category | string | The measured category. |
| language | string | The language of the questions: it, es, en or de. |
| domain | string | The website's domain. |
| answers | integer | In how many answers it appears. |
| questions | integer | On how many different questions. |
| assistants | integer | How many assistants read it. |
| is_your_site | boolean | true when it is the website in your profile. |
/api/v1/todosThis week's to-dos, most useful first. Growth only.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| todo_id | string | The to-do id. |
| order | integer | Position in the list, most useful first. |
| type | string | The to-do type. |
| text | string | The to-do, in words. |
| where | string | on_mador = done from the customer area; outside_mador = done elsewhere; to_read = to read. |
| language | string | The language of the text. |
/api/v1/pagesThe pages Mador wrote for the project, with their status and public address.
| Column | Type | What it means |
|---|---|---|
| project_id | string | The project id, the same in every table. |
| project_name | string | The business name. |
| question | string | The question the page answers. |
| status | string | published, published_with_unpublished_edits or draft. |
| url | string? | The public address, when published. |
| updated | date | Last update. |
| waiting_for_approval_until | date? | When it waits for your approval, until when. |
Filters
They combine. A filter written wrong is never ignored: the answer is a 400 error that names the parameter.
- project_id
- a single project, with its id from projects
- from, to
- measurements between two days, written like 2026-11-02 (not on projects, todos or pages)
- assistant
- one or more assistants separated by commas, by id (openai) or by name (chatgpt); only on measurements, questions and presence
- language
- it, es, en or de: the language of the questions
- zone
- the measured area, for example Costa Adeje
- format
- json (the default) or csv
curl "https://mador.ai/api/v1/measurements?from=2026-10-01&assistant=chatgpt,perplexity&language=en" \
-H "Authorization: Bearer mdr_YOUR_KEY"curl "https://mador.ai/api/v1/competitors?project_id=6f1c…&format=csv" \
-H "Authorization: Bearer mdr_YOUR_KEY" -o competitors.csvPages
A page holds 100 rows by default, and limit takes it up to 1000 (5000 in CSV). When has_more is true, call again with cursor set to next_cursor. In CSV the cursor comes in the X-Next-Cursor header.
curl "https://mador.ai/api/v1/presence?limit=500&cursor=eyJvIjo1MDB9" \
-H "Authorization: Bearer mdr_YOUR_KEY"Limits
Each account gets 60 calls a minute and 5,000 a day, export downloads included, shared across all its keys. Past that the answer is 429 with Retry-After, which says how many seconds to wait.
Errors
- 401 missing_key
- no key was sent
- 401 invalid_key
- the key is wrong or revoked
- 403 forbidden
- the account's plan does not include the API
- 404 project_not_found
- the project is not one this key can read
- 400 invalid_parameter
- a parameter is not valid, and the parameter field names it
- 429 rate_limited
- limit reached, try again after Retry-After
{ "error": { "code": "invalid_parameter", "message": "from must be a date like 2026-11-02", "parameter": "from" } }Google Sheets
Paste this formula into an empty cell: the sheet downloads the table as CSV and refreshes it on its own, roughly every hour.
=IMPORTDATA("https://mador.ai/api/v1/measurements?format=csv&key=mdr_YOUR_KEY")IMPORTDATA cannot send headers, so here the key sits in the address. Create a key just for the sheet and share the sheet only with people you trust: anyone who opens it can read the formula.
Looker Studio
Two ways in. The quick one goes through the Google Sheet above: in Looker Studio add a Google Sheets data source and pick that sheet. The other is Mador's community connector, which asks for the key and reads the tables directly:
- Open script.google.com and create a new project.
- Paste the two connector files from the «API and data» page of the customer area (Code.gs and appsscript.json).
- Press «Deploy», then «Manage deployments», and copy the deployment ID.
- In Looker Studio add a data source, choose «Build your own» and paste the ID.
- Enter the key and pick the table: the columns come from the dictionary, with the right types.
The connector lives in your Google account: Mador cannot see it or update it. Every report refresh is a call, and counts towards the limits.
What is not there
The text of the assistants' answers never leaves through the API, not even in pieces. What comes out is the questions, the business names, the websites the assistants read and the counts: what a report needs, without republishing what someone else wrote.
Versions
The address carries the version, /api/v1. Within a version Mador adds columns and tables, but never removes one or changes what it means. A breaking change becomes /api/v2, and v1 keeps running beside it.