{ "opencollection": "1.0.0", "info": { "name": "GoatCounter Exports Statistics API", "version": "0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Statistics", "type": "folder" }, "items": [ { "info": { "name": "List total pageview counts", "type": "http" }, "http": { "method": "GET", "url": "https://goatcounter.com/api/v0/stats/total", "params": [ { "name": "start", "value": "", "type": "query" }, { "name": "end", "value": "", "type": "query" }, { "name": "filter", "value": "", "type": "query", "description": "Filter paths by substring or regex." } ] }, "docs": "List total pageview counts" }, { "info": { "name": "View/visitor stats per path", "type": "http" }, "http": { "method": "GET", "url": "https://goatcounter.com/api/v0/stats/hits", "params": [ { "name": "start", "value": "", "type": "query" }, { "name": "end", "value": "", "type": "query" }, { "name": "filter", "value": "", "type": "query", "description": "Filter paths by substring or regex." }, { "name": "limit", "value": "", "type": "query" }, { "name": "include_paths", "value": "", "type": "query" }, { "name": "exclude_paths", "value": "", "type": "query" }, { "name": "daily", "value": "", "type": "query" } ] }, "docs": "View/visitor stats per path" }, { "info": { "name": "Referral stats for a path", "type": "http" }, "http": { "method": "GET", "url": "https://goatcounter.com/api/v0/stats/hits/:path_id", "params": [ { "name": "path_id", "value": "", "type": "path" }, { "name": "start", "value": "", "type": "query" }, { "name": "end", "value": "", "type": "query" }, { "name": "filter", "value": "", "type": "query", "description": "Filter paths by substring or regex." } ] }, "docs": "Referral stats for a path" }, { "info": { "name": "Stats for a category (browser, system, location, etc.)", "type": "http" }, "http": { "method": "GET", "url": "https://goatcounter.com/api/v0/stats/:page", "params": [ { "name": "page", "value": "", "type": "path" }, { "name": "start", "value": "", "type": "query" }, { "name": "end", "value": "", "type": "query" }, { "name": "filter", "value": "", "type": "query", "description": "Filter paths by substring or regex." } ] }, "docs": "Stats for a category (browser, system, location, etc.)" }, { "info": { "name": "Detailed stats within a category", "type": "http" }, "http": { "method": "GET", "url": "https://goatcounter.com/api/v0/stats/:page/:id", "params": [ { "name": "page", "value": "", "type": "path" }, { "name": "id", "value": "", "type": "path" }, { "name": "start", "value": "", "type": "query" }, { "name": "end", "value": "", "type": "query" } ] }, "docs": "Detailed stats within a category" } ] } ], "bundled": true }