> ## Documentation Index
> Fetch the complete documentation index at: https://snowseo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Traffic Channels

> Get your traffic grouped into canonical channels (Direct, Organic Search, Referral, and more).

Get your traffic grouped into canonical channels (Direct, Organic Search, Referral, and more).

See [Analytics (PostHog)](https://snowseo.com/docs/api-reference/endpoints/posthog-traffic.md) for the shared `filters` parameter.


## OpenAPI

````yaml GET /v3/integrations/posthog/channels
openapi: 3.0.0
info:
  title: SnowSEO API
  description: API documentation for SnowSEO
  version: 1.0.0
servers:
  - url: https://api.snowseo.com
    description: Production server
security:
  - bearerAuth: []
  - apiKey: []
externalDocs:
  url: https://snowseo.com/docs
  description: Find more info here
paths:
  /v3/integrations/posthog/channels:
    get:
      tags:
        - PostHog
      summary: Get PostHog traffic channels
      description: Returns PostHog sessions grouped into canonical traffic channels.
      operationId: getPosthogChannels
      parameters:
        - schema:
            type: string
          in: query
          name: teamId
          required: true
          description: Team ID
        - schema:
            type: integer
            minimum: 1
            default: 30
          in: query
          name: days
          required: false
          description: >-
            Days back from today on the team's calendar, converted to
            startDate/endDate. Ignored when startDate or endDate is set.
            Defaults to 30.
        - schema:
            type: string
          in: query
          name: startDate
          required: false
          description: Start date (YYYY-MM-DD)
        - schema:
            type: string
          in: query
          name: endDate
          required: false
          description: End date (YYYY-MM-DD)
        - schema:
            type: string
          in: query
          name: country
          required: false
          description: Country filter
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
          in: query
          name: filters
          required: false
          description: >-
            A JSON object, sent as a string, mapping a dimension to the values
            to keep, e.g.
            {"page":["/blog/my-post"],"deviceCategory":["mobile"]}. Dimensions:
            page, referrer, channel, campaign, deviceCategory, browser, os.
            Several values for one dimension match any of them; several
            dimensions must all match. Use values the provider's filter_values
            tool returns for that dimension; page values are paths without query
            string or trailing slash. Filter by country with `country`. Invalid
            JSON, an unknown dimension or a non-list value returns 400 (code
            INVALID_FILTERS) naming the supported dimensions.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  channels:
                    type: array
                    items:
                      type: object
                      additionalProperties: true
                      properties:
                        channel:
                          type: string
                        sessions:
                          type: number
                        change:
                          type: object
                          nullable: true
                          additionalProperties: true
                          properties:
                            value:
                              type: number
                            isPositive:
                              type: boolean
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your SnowSEO API key (sk_...).
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.