"Best analytics tool I've used in 14 years"

Goals API

Use this endpoint when building an agent or UI that needs to choose from existing goals before setting a KPI, creating an alert, or creating a funnel.

It returns goals already seen in your analytics data, ordered by frequency. This helps prevent typos when an automation asks a user to pick a goal.

Base path: https://datafa.st/api/v1/admin
EndpointMethodPathPermissionPurpose
List tracked goalsGET/websites/{websiteId}/goalssettings:readList tracked goals ordered by frequency
curl "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/goals" \
  -H "Authorization: Bearer dft_xxx"
To send goal events and query goal analytics, use Goals.

✍️ Something missing? Suggest features.

🤖 AI agent or LLM? Read this page as markdown

Example request
curl "https://datafa.st/api/v1/admin/websites/YOUR_WEBSITE_ID/goals" \
  -H "Authorization: Bearer dft_xxx"
Success response
{
  "status": "success",
  "data": [
    {
      "name": "signup",
      "total": 128,
      "uv": 104,
      "conversionRate": 8.4,
      "eventType": "custom"
    }
  ]
}