Skip to content
Execution

Reports

Generate reports for campaigns, Search Console, SERP, AI visibility, technical SEO and indexing in PDF, CSV or JSON.

POST/api/v1/reportsRead & write key

Generate a report

Authentication: Bearer API key in the Authorization header.

Parameters
ParameterInTypeDescription
type*bodycampaign | search_console | serp | ai_visibility | technical | indexingReport type
formatbodypdf | csv | jsonDefault pdf
websiteIdbodystringAll websites when omitted
frombodyYYYY-MM-DDPeriod start
tobodyYYYY-MM-DDPeriod end
whiteLabelbodybooleanUse workspace branding
Request
curl -X POST "https://rankspire.tech/api/v1/reports" \
  -H "Authorization: Bearer $RANKSPIRE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "search_console", "format": "pdf", "websiteId": "cm1site9x0001" }'
Response
{ "data": { "id": "cm1rep…", "status": "queued", "jobId": "cm1job…" } }
GET/api/v1/reportsRead key

List reports

Authentication: Bearer API key in the Authorization header.

Request
curl "https://rankspire.tech/api/v1/reports" \
  -H "Authorization: Bearer $RANKSPIRE_KEY"
Response
{ "data": [{ "id": "cm1rep…", "title": "Search Console report — example.com", "format": "pdf", "status": "completed" }] }
GET/api/v1/reports/{id}Read key

Report status

Authentication: Bearer API key in the Authorization header.

Request
curl "https://rankspire.tech/api/v1/reports/cm1site9x0001" \
  -H "Authorization: Bearer $RANKSPIRE_KEY"
Response
{ "data": { "id": "cm1rep…", "status": "completed", "downloadUrl": "/api/v1/reports/cm1rep…/download" } }