API Reference
cURL
curl --request GET \ --url https://api.usefathom.com/v1/current_visitors \ --header 'Authorization: Bearer <token>'
{ "total": 123, "content": [ { "pathname": "<string>", "hostname": "<string>", "total": 123 } ], "referrers": [ { "referrer_hostname": "<string>", "referrer_pathname": "<string>", "total": 123 } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the site.
Set this parameter if you want a detailed breakdown. Otherwise you'll only get a count.
Current visitor data
Show child attributes