Swetrix Session
Schema for a Swetrix visitor session record
AnalyticsCookieless TrackingGDPR CompliantOpen-SourcePrivacyReal-Time AnalyticsWeb Analytics
Properties
| Name |
Type |
Description |
| psid |
string |
Unique session identifier |
| pid |
string |
Project ID the session belongs to |
| browser |
string |
Visitor browser name |
| browserVersion |
string |
Visitor browser version |
| os |
string |
Visitor operating system |
| osVersion |
string |
Visitor OS version |
| country |
string |
Two-letter ISO 3166-1 country code |
| device |
string |
Device type (desktop, mobile, tablet) |
| locale |
string |
Visitor locale (e.g. en-US) |
| referrer |
string |
HTTP referrer URL |
| utmSource |
string |
UTM source parameter |
| utmMedium |
string |
UTM medium parameter |
| utmCampaign |
string |
UTM campaign parameter |
| duration |
integer |
Session duration in seconds |
| pageviews |
integer |
Number of pages viewed in the session |
| created |
string |
Session start timestamp |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/swetrix/refs/heads/main/json-schema/swetrix-session-schema.json",
"title": "Swetrix Session",
"description": "Schema for a Swetrix visitor session record",
"type": "object",
"properties": {
"psid": {
"type": "string",
"description": "Unique session identifier"
},
"pid": {
"type": "string",
"description": "Project ID the session belongs to"
},
"browser": {
"type": "string",
"description": "Visitor browser name"
},
"browserVersion": {
"type": "string",
"description": "Visitor browser version"
},
"os": {
"type": "string",
"description": "Visitor operating system"
},
"osVersion": {
"type": "string",
"description": "Visitor OS version"
},
"country": {
"type": "string",
"description": "Two-letter ISO 3166-1 country code"
},
"device": {
"type": "string",
"description": "Device type (desktop, mobile, tablet)"
},
"locale": {
"type": "string",
"description": "Visitor locale (e.g. en-US)"
},
"referrer": {
"type": "string",
"description": "HTTP referrer URL"
},
"utmSource": {
"type": "string",
"description": "UTM source parameter"
},
"utmMedium": {
"type": "string",
"description": "UTM medium parameter"
},
"utmCampaign": {
"type": "string",
"description": "UTM campaign parameter"
},
"duration": {
"type": "integer",
"minimum": 0,
"description": "Session duration in seconds"
},
"pageviews": {
"type": "integer",
"minimum": 1,
"description": "Number of pages viewed in the session"
},
"created": {
"type": "string",
"format": "date-time",
"description": "Session start timestamp"
}
},
"required": ["psid", "pid"]
}
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/swetrix-session"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.