id values returned here as the site_id parameter in the Stats and Events endpoints.
List Sites
Retrieve all sites associated with your account.GET /v1/sites
No query parameters are required for this endpoint.
Example Request
cURL
Example Response
Response Fields
string
required
The unique identifier for the site. Use this value as the
site_id parameter in Stats and Events requests.string
required
The registered domain for the site (e.g.
blog.acme.dev). This matches the data-site attribute in your tracking snippet.string
required
The date and time the site was added to your TinyTrack account, formatted as an ISO 8601 UTC timestamp (e.g.
2024-01-15T10:00:00Z).boolean
required
Whether the TinyTrack snippet is actively receiving events for this site.
true means data is flowing; false means no events have been received recently or tracking has been paused.Get a Single Site
Retrieve the details for one specific site by its ID.GET /v1/sites/{site_id}
Path Parameters
string
required
The unique ID of the site to retrieve. Obtain this value from the List Sites endpoint.
Example Request
cURL
Example Response
site_id exists in your account, the API returns HTTP 404:
Managing Sites in the Dashboard
You can add, rename, and delete sites from the Sites section of your TinyTrack dashboard at tinytrack.io. The API is read-only for sites — create and remove sites through the UI, then reference them here by theirid.
Each site you add receives a unique
id that never changes, even if you update the domain. Always use the id (not the domain string) to reference sites in API calls.