{
  "info": {
    "_postman_id": "589530e8-0adf-44aa-8a35-de9bdde0dac3",
    "name": "PostHog actions web_analytics API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T11:10:17.000Z",
    "updatedAt": "2026-07-28T11:10:18.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-589530e8-0adf-44aa-8a35-de9bdde0dac3"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "environments",
          "item": [
            {
              "name": "{project_id}",
              "item": [
                {
                  "name": "web_analytics",
                  "item": [
                    {
                      "name": "weekly_digest",
                      "item": [
                        {
                          "name": "Summarize web analytics",
                          "id": "0bf96869-5690-4a08-85f5-e0eca430edc3",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "auth": {
                              "type": "bearer",
                              "bearer": [
                                {
                                  "key": "token",
                                  "value": "{{bearerToken}}",
                                  "type": "string"
                                }
                              ]
                            },
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:project_id/web_analytics/weekly_digest/?compare=true&days=7",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":project_id",
                                "web_analytics",
                                "weekly_digest",
                                ""
                              ],
                              "query": [
                                {
                                  "description": "When true (default), include period-over-period change for each metric comparing against the prior equal-length period. Set to false to skip the comparison query (faster).",
                                  "key": "compare",
                                  "value": "true"
                                },
                                {
                                  "description": "Lookback window in days (1\u201390). Defaults to 7.",
                                  "key": "days",
                                  "value": "7"
                                }
                              ],
                              "variable": [
                                {
                                  "id": "2e897a5c-5b8a-439f-8823-164ed0870015",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                }
                              ]
                            },
                            "description": "Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions."
                          },
                          "response": [
                            {
                              "id": "f2abc9d6-9435-4392-b785-8e35085a5365",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  },
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:project_id/web_analytics/weekly_digest/?compare=true&days=7",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":project_id",
                                    "web_analytics",
                                    "weekly_digest",
                                    ""
                                  ],
                                  "query": [
                                    {
                                      "description": "When true (default), include period-over-period change for each metric comparing against the prior equal-length period. Set to false to skip the comparison query (faster).",
                                      "key": "compare",
                                      "value": "true"
                                    },
                                    {
                                      "description": "Lookback window in days (1\u201390). Defaults to 7.",
                                      "key": "days",
                                      "value": "7"
                                    }
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"avg_session_duration\": {\n    \"change\": {\n      \"color\": \"<string>\",\n      \"direction\": \"Down\",\n      \"long_text\": \"<string>\",\n      \"percent\": \"<integer>\",\n      \"text\": \"<string>\"\n    },\n    \"current\": \"<string>\",\n    \"previous\": \"<string>\"\n  },\n  \"bounce_rate\": {\n    \"change\": {\n      \"color\": \"<string>\",\n      \"direction\": \"Up\",\n      \"long_text\": \"<string>\",\n      \"percent\": \"<integer>\",\n      \"text\": \"<string>\"\n    },\n    \"current\": \"<double>\",\n    \"previous\": \"<double>\"\n  },\n  \"dashboard_url\": \"<uri>\",\n  \"goals\": [\n    {\n      \"change\": {\n        \"color\": \"<string>\",\n        \"direction\": \"Up\",\n        \"long_text\": \"<string>\",\n        \"percent\": \"<integer>\",\n        \"text\": \"<string>\"\n      },\n      \"conversions\": \"<integer>\",\n      \"name\": \"<string>\"\n    },\n    {\n      \"change\": {\n        \"color\": \"<string>\",\n        \"direction\": \"Down\",\n        \"long_text\": \"<string>\",\n        \"percent\": \"<integer>\",\n        \"text\": \"<string>\"\n      },\n      \"conversions\": \"<integer>\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"pageviews\": {\n    \"change\": {\n      \"color\": \"<string>\",\n      \"direction\": \"Up\",\n      \"long_text\": \"<string>\",\n      \"percent\": \"<integer>\",\n      \"text\": \"<string>\"\n    },\n    \"current\": \"<double>\",\n    \"previous\": \"<double>\"\n  },\n  \"sessions\": {\n    \"change\": {\n      \"color\": \"<string>\",\n      \"direction\": \"Up\",\n      \"long_text\": \"<string>\",\n      \"percent\": \"<integer>\",\n      \"text\": \"<string>\"\n    },\n    \"current\": \"<double>\",\n    \"previous\": \"<double>\"\n  },\n  \"top_pages\": [\n    {\n      \"change\": {\n        \"color\": \"<string>\",\n        \"direction\": \"Up\",\n        \"long_text\": \"<string>\",\n        \"percent\": \"<integer>\",\n        \"text\": \"<string>\"\n      },\n      \"host\": \"<string>\",\n      \"path\": \"<string>\",\n      \"visitors\": \"<integer>\"\n    },\n    {\n      \"change\": {\n        \"color\": \"<string>\",\n        \"direction\": \"Down\",\n        \"long_text\": \"<string>\",\n        \"percent\": \"<integer>\",\n        \"text\": \"<string>\"\n      },\n      \"host\": \"<string>\",\n      \"path\": \"<string>\",\n      \"visitors\": \"<integer>\"\n    }\n  ],\n  \"top_sources\": [\n    {\n      \"change\": {\n        \"color\": \"<string>\",\n        \"direction\": \"Up\",\n        \"long_text\": \"<string>\",\n        \"percent\": \"<integer>\",\n        \"text\": \"<string>\"\n      },\n      \"name\": \"<string>\",\n      \"visitors\": \"<integer>\"\n    },\n    {\n      \"change\": {\n        \"color\": \"<string>\",\n        \"direction\": \"Down\",\n        \"long_text\": \"<string>\",\n        \"percent\": \"<integer>\",\n        \"text\": \"<string>\"\n      },\n      \"name\": \"<string>\",\n      \"visitors\": \"<integer>\"\n    }\n  ],\n  \"visitors\": {\n    \"change\": {\n      \"color\": \"<string>\",\n      \"direction\": \"Down\",\n      \"long_text\": \"<string>\",\n      \"percent\": \"<integer>\",\n      \"text\": \"<string>\"\n    },\n    \"current\": \"<double>\",\n    \"previous\": \"<double>\"\n  }\n}",
                              "createdAt": "2026-07-28T11:10:18.000Z",
                              "updatedAt": "2026-07-28T11:10:18.000Z",
                              "uid": "35240-f2abc9d6-9435-4392-b785-8e35085a5365"
                            }
                          ],
                          "createdAt": "2026-07-28T11:10:18.000Z",
                          "updatedAt": "2026-07-28T11:10:18.000Z",
                          "uid": "35240-0bf96869-5690-4a08-85f5-e0eca430edc3"
                        }
                      ],
                      "id": "441b6902-9cc1-427a-94a1-c2666505d7f5",
                      "createdAt": "2026-07-28T11:10:18.000Z",
                      "updatedAt": "2026-07-28T11:10:18.000Z",
                      "uid": "35240-441b6902-9cc1-427a-94a1-c2666505d7f5"
                    }
                  ],
                  "id": "e29691d5-72b4-4358-8520-d324620ae6de",
                  "createdAt": "2026-07-28T11:10:18.000Z",
                  "updatedAt": "2026-07-28T11:10:18.000Z",
                  "uid": "35240-e29691d5-72b4-4358-8520-d324620ae6de"
                }
              ],
              "id": "b150a106-97e4-481b-a301-941471212b90",
              "createdAt": "2026-07-28T11:10:18.000Z",
              "updatedAt": "2026-07-28T11:10:18.000Z",
              "uid": "35240-b150a106-97e4-481b-a301-941471212b90"
            }
          ],
          "id": "29c86d17-347c-47c9-a2b3-2302b06bb474",
          "createdAt": "2026-07-28T11:10:18.000Z",
          "updatedAt": "2026-07-28T11:10:18.000Z",
          "uid": "35240-29c86d17-347c-47c9-a2b3-2302b06bb474"
        }
      ],
      "id": "14df72d1-a950-4bd6-9686-a2a5967fb05d",
      "createdAt": "2026-07-28T11:10:18.000Z",
      "updatedAt": "2026-07-28T11:10:18.000Z",
      "uid": "35240-14df72d1-a950-4bd6-9686-a2a5967fb05d"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}