Skip to Content
Paths

Get Paths For Project

GET
/v0/projects/{idOrSlug}/paths

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Query Parameters

days?string
from?string
to?string
stepCount?string
nodesPerStep?string
minSessions?string
pathType?string
Value in"all""pageviews""events"
walkBy?string
Value in"session""user"
pageLabel?string
Value in"path""host""title"
groupUrls?string
Value in"true""false"
collapseRepeats?string
Value in"true""false"
startPoint?string
Length1 <= length <= 500
startOccurrence?string
Value in"first""last"
endPoint?string
Length1 <= length <= 500
endOccurrence?string
Value in"first""last"
include?|array<>
exclude?|array<>
rules?string
filters?string
goal?string
Length1 <= length <= 500
maxGapMinutes?string
hideSingleStep?string
Value in"true""false"
eventProperty?string
breakdown?string
Value in"country""device""browser""os""referrer""utm_source""utm_medium""utm_campaign""language"
compare?string
Value in"true""false"
segment?string|array<string>
excludeSegment?string|array<string>

Response Body

PathsResult

application/json
  1. response
nodes*array<>
links*array<>
totalSessions*number|
topPaths*array<>
anchor*string
Value in"start""end"
converted*number|
previousSessions*number||null
breakdown*array<string>
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/paths'
Example Response
{
  "nodes": [
    {
      "id": "string",
      "step": 0,
      "label": "string",
      "sessions": 0,
      "dropOff": 0,
      "converted": 0,
      "previous": 0,
      "segments": [
        0
      ]
    }
  ],
  "links": [
    {
      "source": "string",
      "target": "string",
      "sessions": 0,
      "previous": 0,
      "segments": [
        0
      ]
    }
  ],
  "totalSessions": 0,
  "topPaths": [
    {
      "steps": [
        "string"
      ],
      "sessions": 0
    }
  ],
  "anchor": "start",
  "converted": 0,
  "previousSessions": 0,
  "breakdown": [
    "string"
  ]
}