the API
Do everything with code
Manage sites, read every metric, follow visitor journeys, pull SEO moves and export raw events, all over a plain REST API. Cookieless and revenue-first, same data as your dashboard.
Base URL
Every endpoint lives under:
https://datalenk.com/api/v1
Quickstart
1. Create a key in Dashboard, API. Copy it once (you will not see it again). 2. Send your first request:
list your sites
curl https://datalenk.com/api/v1/sites \ -H "Authorization: Bearer dlk_live_YOUR_KEY"
3. You get JSON back:
response
{
"data": [
{ "id": 3, "domain": "myshop.com", "installed": true,
"category": "ecommerce", "tags": [], "timezone": "Europe/Paris",
"createdAt": "2026-06-27T13:04:56.726Z" }
]
}What you can do
- →Sites Add, update and delete sites. Get the install snippet.
- →Stats Traffic, revenue, channels, pages, devices, keywords with attributed revenue, Web Vitals.
- →SEO The moves that make money: opportunities, cannibalization, AI-answer theft, brand split.
- →Exports Stream raw events and payments as CSV or NDJSON.
- →Ingestion Send events, payments, identify users, push tracked-link metadata.
Prefer an AI agent?
Datalenk also exposes an MCP server at https://datalenk.com/api/mcp. Plug Claude or ChatGPT straight onto your data with the same API key. See the dashboard for setup.