Skip to content

Export

Export your Trakkr data in JSON or CSV format for analysis in external tools.

Code example

Export JSON
curl -X GET 'https://api.trakkr.ai/export?brand_id=00000000-0000-4000-8000-81f286d10c3c&data_type=prompts&format=json&days=30&limit=1000' \
  -H "Authorization: Bearer $TRAKKR_API_KEY"
Response · 200 OK
{
  "data_type": "prompts",
  "count": 1,
  "data": [
    {
      "id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
      "text": "What are the best CRM tools?",
      "active": true,
      "focus_area": "general",
      "intent": "recommendation",
      "created_at": "2026-01-05T08:00:00Z",
      "updated_at": null
    }
  ],
  "exported_at": "2026-01-09T10:30:00Z"
}

Synthetic example. Values are made up.

API key required

10 req/min

Endpoint

GET/export

Authenticate with Authorization: Bearer $TRAKKR_API_KEY. Key and access guide

Request parameters

brand_idstringqueryRequired

Brand UUID

Format: uuid

data_typestringqueryRequired

Type of data to export

Options: "prompts", "results", "citations", "reports"

formatstringqueryOptional

Export format

Default: "json" · Options: "json", "csv"

daysintegerqueryOptional

For time-based data

Default: 30 · Minimum: 1 · Maximum: 365

limitintegerqueryOptional

Max records

Default: 1000 · Minimum: 1 · Maximum: 10000

Responses and errors
200JSON export or CSV text, selected by the format query parameter

application/json

data_typestringRequired

countintegerRequired

dataobject[]Required

Fields in data

Array of object.

object. Additional keys are allowed.

exported_atstringRequired

text/csv

string.

401Missing, malformed, or expired credentials

application/json

detailstring | object | nullOptional

errorstring | nullOptional

402The current plan does not fund this operation

application/json

detailstring | object | nullOptional

errorstring | nullOptional

403Invalid credentials, missing brand access, or insufficient role

application/json

detailstring | object | nullOptional

errorstring | nullOptional

422Validation Error

application/json

detailobject[]Optional

Fields in detail

Array of object.

locstring | integer[]Required

Fields in loc

Array of string | integer.

string

string.

integer

integer.

msgstringRequired

typestringRequired

429Rate limit exceeded

application/json

detailstring | object | nullOptional

errorstring | nullOptional

500The operation failed

application/json

detailstring | object | nullOptional

errorstring | nullOptional

503Authentication, entitlement, or a required dependency is temporarily unavailable

application/json

detailstring | object | nullOptional

errorstring | nullOptional

OpenAPI source

Export your Trakkr data in JSON or CSV format. Use this to sync data with your data warehouse, create custom reports, or analyze in tools like Excel or Google Sheets.

Try GET /export

Data Types

data_typeDescriptionTime Filter
promptsAll prompts for the brandNo
resultsReport-level results with model and prompt scoresYes (days param)
citationsCitation URLs from the available snapshotNo
reportsDaily report summariesYes (days param)

CSV Export

For CSV export, the response includes:

  • Content-Type: text/csv
  • Content-Disposition header with filename
  • Column headers in the first row when records are available
  • An empty text body when no records match
  • Nested lists and objects encoded as JSON inside CSV cells
Export CSV
curl --fail -o 'trakkr-export.csv' -X GET 'https://api.trakkr.ai/export?brand_id=00000000-0000-4000-8000-81f286d10c3c&data_type=results&format=csv&days=90&limit=1000' \
  -H "Authorization: Bearer $TRAKKR_API_KEY"

Limits

Max records per request
10,000
Max days for time-based exports
365
limit caps the number of returned records. This endpoint has no offset or cursor. Repeating the same request does not fetch the next page. For reports and results, use daysto choose the available time window.

Use Cases

  • Sync visibility data to your data warehouse
  • Create custom reports in Excel or Google Sheets
  • Feed data into business intelligence tools
  • Backup your Trakkr data