“API: Site Audit (OnPage Technical Audit)”
The Site Audit module lets you query data from OnPage crawls run in Ranki.
- Credit cost: 0 credits (free reads for accounts with existing projects and crawls).
- Base REST endpoint:
https://app.ranki.co/wp-json/ranki/v1/site-audit
Endpoint summary
| API operation | Endpoint | Description |
|---|---|---|
site_audit_list_projects | GET /site-audit/projects | Lists the authenticated user’s projects. |
site_audit_issue_summary | GET /site-audit/projects/{id}/issues | Issue summary and counts by check and severity. |
site_audit_issue_detail | GET /site-audit/projects/{id}/issues/{check} | Paginated list of URLs affected by a specific check. |
site_audit_architecture | GET /site-audit/projects/{id}/architecture | URL structure, titles and HTTP status codes. |
1. site_audit_list_projects
Lists all technical audit projects linked to the authenticated account. Call this tool first to get valid project_id identifiers.
API parameters
- Operation:
site_audit_list_projects - Parameters: None.
Endpoint
GET https://app.ranki.co/wp-json/ranki/v1/site-audit/projects
Authorization: Bearer rk_TU_CLAVE
Example with curl
curl -s -X GET
-H "Authorization: Bearer rk_TU_CLAVE"
"https://app.ranki.co/wp-json/ranki/v1/site-audit/projects"
Sample response
{
"projects": [
{
"id": 15,
"name": "Mi Tienda Online",
"url": "https://ejemplo.com",
"task_id": "04031535-5134-0123-0000-abcdef123456",
"last_crawl": "2026-08-20 14:10:00",
"summary_brief": {
"score": 82,
"pages": 450
}
}
]
}
2. site_audit_issue_summary
Returns the overall crawl summary for a project: OnPage score, total pages crawled and the list of detected issues by check key, severity and number of affected URLs.
API parameters
- Operation:
site_audit_issue_summary - Parameters:
project_id(integer, required): project ID obtained withsite_audit_list_projects.
Endpoint
GET https://app.ranki.co/wp-json/ranki/v1/site-audit/projects/{id}/issues
Authorization: Bearer rk_TU_CLAVE
Example with curl
curl -s -X GET
-H "Authorization: Bearer rk_TU_CLAVE"
"https://app.ranki.co/wp-json/ranki/v1/site-audit/projects/15/issues"
Sample response
{
"project": {
"id": 15,
"name": "Mi Tienda Online",
"url": "https://ejemplo.com"
},
"totals": {
"domain": "ejemplo.com",
"onpage_score": 82,
"pages": 450,
"crawl_start": "2026-08-20 14:05:12",
"crawl_end": "2026-08-20 14:10:00"
},
"issues": [
{
"check": "no_title",
"label": "Páginas sin título",
"severity": "critical",
"count": 4
},
{
"check": "duplicate_title",
"label": "Títulos duplicados",
"severity": "warning",
"count": 18
},
{
"check": "broken_links",
"label": "Enlaces rotos internos",
"severity": "critical",
"count": 2
}
]
}
3. site_audit_issue_detail
Gets the paginated list of URLs and specific details for an issue type (check) previously found with site_audit_issue_summary.
API parameters
- Operation:
site_audit_issue_detail - Parameters:
project_id(integer, required): project ID.check(string, required): technical check key (examples:no_title,duplicate_title,broken_links,no_description,slow_page).limit(integer, optional, default50, max1000): number of rows to return.offset(integer, optional, default0): starting offset for pagination.filters(string, optional): JSON from the UI explorer[{field,scope,operator,value}].sort_column/sort_dir(string, optional): explorer sort order (asc/desc).
Endpoint
GET https://app.ranki.co/wp-json/ranki/v1/site-audit/projects/{id}/issues/{check}?limit=50&offset=0
Authorization: Bearer rk_TU_CLAVE
Example with curl
curl -s -X GET
-H "Authorization: Bearer rk_TU_CLAVE"
"https://app.ranki.co/wp-json/ranki/v1/site-audit/projects/15/issues/no_title?limit=10&offset=0"
Sample response
{
"check": "no_title",
"total": 4,
"limit": 10,
"offset": 0,
"rows": [
{
"url": "https://ejemplo.com/sin-meta-1",
"status": 200,
"page_timing": 420
},
{
"url": "https://ejemplo.com/sin-meta-2",
"status": 200,
"page_timing": 310
}
]
}
4. site_audit_architecture
Returns the list of all crawled URLs with a 200 status, with their HTML title and status code. It includes both the raw data structure (rows) and a Markdown-formatted version (markdown), equivalent to the “Copy for AI” feature in the Ranki web dashboard.
API parameters
- Operation:
site_audit_architecture - Parameters:
project_id(integer, required): project ID.
Endpoint
GET https://app.ranki.co/wp-json/ranki/v1/site-audit/projects/{id}/architecture
Authorization: Bearer rk_TU_CLAVE
Example with curl
curl -s -X GET
-H "Authorization: Bearer rk_TU_CLAVE"
"https://app.ranki.co/wp-json/ranki/v1/site-audit/projects/15/architecture"
Sample response
{
"rows": [
{
"url": "https://ejemplo.com/",
"title": "Inicio | Mi Tienda Online",
"status": 200
},
{
"url": "https://ejemplo.com/productos/zapatos",
"title": "Zapatos de Cuero | Mi Tienda Online",
"status": 200
}
],
"markdown": "| URL | Title | Status |n| --- | --- | --- |n| https://ejemplo.com/ | Inicio \| Mi Tienda Online | 200 |n| https://ejemplo.com/productos/zapatos | Zapatos de Cuero \| Mi Tienda Online | 200 |"
}
Tip: In integrations that process large responses from
site_audit_architecture, userowsinstead of the blockmarkdown.