Operations 6
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“How many visitors and pageviews did my site get each day last month?”
“Can I get traffic as a cumulative total instead of per period?”
Tell an agent
Get traffic for project {pid} over {period} grouped by {timeBucket}.
Show {mode} traffic for project {pid} from {from} to {to} by {timeBucket} for {period}.
GET
/v1/log/birdseye
Compare traffic totals against the previous period · Get Birdseye Traffic Summary
#
Ask an LLM
“Is my traffic up or down compared with the previous period?”
“Can I get a quick traffic summary for several projects together?”
Tell an agent
Summarize traffic for project {pid} over {period} versus the prior period.
Give me the birdseye traffic trend for projects {pids} and {pid} for {period}.
Ask an LLM
“How many people are on my site right now?”
“What devices and countries are my current live visitors from?”
Tell an agent
Show the live visitors on project {pid}.
List who is currently active on project {pid}.
Ask an LLM
“Which Google search keywords are bringing people to my site?”
“Can I see Search Console queries alongside my analytics?”
Tell an agent
Get search keywords for project {pid} over {period}.
Show the Google Search Console keywords for project {pid} from {from} to {to} for {period}.
Ask an LLM
“Where do visitors usually go after landing on my homepage?”
“Can I get the page-to-page navigation flow for my site?”
Tell an agent
Get the user navigation flow for project {pid} over {period} by {timeBucket}.
Map how visitors move between pages on project {pid} for {period}, bucketed by {timeBucket}.
GET
/v1/log/filters
List available values for an analytics dimension · Get Available Filter Values
#
Ask an LLM
“Which browsers or countries can I filter my analytics by?”
“What values exist for a given dimension like operating system?”
Tell an agent
List the available {type} filter values for project {pid}.
Show which {type} values I can filter project {pid} by.
Documentation
Documentation
https://swetrix.com/docs/statistics-api
Documentation
https://swetrix.com/docs/admin-api