AI
Usage totals
The five AI figures for a window, as one object.
curl --request GET \
--url 'https://truestat.io/api/v1/sites/{siteId}/ai/usage' \
--header 'Authorization: Bearer <token>'{
"data": {
"llm_exports": 0,
"ai_referrals": 9,
"crawler_views": 8706,
"assistant_opens": 0,
"assistant_messages": 0
},
"meta": {
"range": {
"to": "2026-09-16T13:40:00.000Z",
"tz": "UTC",
"from": "2026-09-09T13:40:00.000Z",
"clamped": false
},
"site_id": "6fed8980-a119-4a9c-a4d4-53e448ef9f9e"
}
}One object, five numbers — what the AI panel puts across its top.
Call this when you want the headline figures. The other five /ai/*
endpoints break each of them down.
What each number counts
| Field | Counts |
crawler_views | Every request from a recognised crawler, whatever it came for. Break it down with crawlers. |
llm_exports | Fetches of the machine-readable files you publish. |
assistant_opens | Sessions that began inside an assistant's own browser. |
assistant_messages | Messages exchanged in those sessions. |
ai_referrals | People who arrived from an assistant's answer. Break it down with referrals. |
llm_exports is the one you control
The other four measure what the world did to your site. This one measures whether a thing you published was found.
llms.txt and its siblings are files you write for machines — a plain-text
map of what your site contains and how you want it described. Publishing one
is a few minutes of work; knowing whether anything ever fetched it is what
turns it from a hopeful gesture into something you can decide about.
A zero here is a real answer: either nothing has looked yet, or the file is not where crawlers expect it. What this panel shows covers the file itself.
Zeroes are common and usually correct
assistant_opens and assistant_messages only fill in when somebody browses
your site from inside an assistant's own browser, which is a narrow and fairly
new behaviour. On most sites they are zero, and that is a measurement rather
than a gap.
The same is not true of crawler_views. A zero there means no recognised
crawler reached the site in the window — worth checking against
how reliable is it before drawing a
conclusion.
These numbers do not reconcile with /overview
/overview counts people, with crawlers excluded by default. Four of the five
figures here count machines. The one that overlaps is ai_referrals — those
are ordinary visitors and they are inside your overview totals too.
Crawler traffic is always counted here, whatever bots says. See
crawlers.
Authorizations
AuthorizationstringheaderrequiredAn API key from Settings → API keys. Scopes available: analytics:read, sites:read, sites:write, settings:read, settings:write, goals:read, goals:write, funnels:read, funnels:write, notes:read, notes:write, alerts:read, alerts:write, team:read, team:write, revenue:read, revenue:write.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path parameters
siteIdstring (uuid)pathrequiredQuery parameters
periodenum<string>querytodayyesterdaylast24hlast7dlast30dlast12mmonthyearallfromstring (date-time)querytostring (date-time)querytzstringquerydefault: UTCbotsenum<string>querydefault: excludedexcludedincludedfilter_pathstringqueryfilter_path_patternstringqueryfilter_hostnamestringqueryfilter_entry_pathstringqueryfilter_exit_linkstringqueryfilter_file_downloadstringqueryfilter_goalstringqueryfilter_browserstringqueryfilter_osstringqueryfilter_devicestringqueryfilter_countrystringqueryfilter_regionstringqueryfilter_citystringqueryfilter_referrerstringqueryfilter_channelstringqueryfilter_utm_sourcestringqueryfilter_utm_mediumstringqueryfilter_utm_campaignstringqueryfilter_gad_campaign_idstringqueryfilter_utm_termstringqueryfilter_bot_kindstringqueryResponse
The answer.
dataobjectmetaobjecterrorobjecterrorobjecterrorobjecterrorobject