Sites
The install tag for a site
Returns the script URL and the ready-to-paste tag. Scope read, not sites:write: the snippet is public information (it ends up in the page source), and shared users may install tracking too. type selects a widget instead of the tracker: a hobby site gets the bundled /t/ build, which counts as well as draws, a paid site the widget-only build — its counting is the tracker tag it installs separately.
get/sites/{id}/snippet
Request
- Base URLhttps://statable.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
type'globe' | 'live-users' | 'map' | 'countries'
Omit for the tracking script.
Response
The install URL and snippet.
Example response
{
"snippet": "<script defer src=\"https://cdn.statable.com/js/3195799/s.js\"></script>"
}Changes
No recorded changes to this operation across all 1 revision of this API.