API

The API lets you read your numbers from your own tools, a dashboard or a script. Create a key on the API keys page of your account. A key can only read, and the number of requests per hour depends on your plan.

Sign in with a key

Send the key in the Authorization header.

curl -H "Authorization: Bearer YOUR_KEY" https://api.weblytic360.com/api/sites

Dates

Every stats call takes days=7 (the last 7 days) or start and end as dates such as 2026-11-01. Top lists take limit (up to 1000).

curl -H "Authorization: Bearer YOUR_KEY" \
  "https://api.weblytic360.com/api/stats/SITE_ID/metrics?type=referrer&days=30&limit=20"

Calls

  • GET /api/sites: Your websites and their ids.
  • GET /api/stats/SITE_ID/overview: Visitors, sessions, pageviews, bounce rate, average time and the change since the period before.
  • GET /api/stats/SITE_ID/timeseries: The same numbers for every day (or hour with unit=hour on the Business plan).
  • GET /api/stats/SITE_ID/metrics?type=url: A top list. type can be url, referrer, source_medium, utm_source, utm_medium, utm_campaign, country, device, browser, os, screen or event.
  • GET /api/stats/SITE_ID/active: Visitors on the website right now.
  • GET /api/stats/SITE_ID/ai: Visits that came from AI assistants and AI crawlers.

Sending events from your server

You can also send visits and events yourself, for example from a mobile app or a checkout on your server.

curl -X POST https://api.weblytic360.com/api/events/collect \
  -H "Content-Type: application/json" \
  -H "User-Agent: Mozilla/5.0" \
  -d '{"siteId":"SITE_ID","event":"custom","name":"purchase","url":"https://example.com/thanks","props":{"revenue":49.9}}'

The address in url must belong to your website's domain. Revenue sent like this shows up in the Revenue report.

Limits

Too many requests return status 429. Wait a little and try again.