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

# Get reports for URLs

> With this endpoint you can get the report data grouped by URLs.<Tip>**HTTP Request** <br/>`GET https://api.firstpromoter.com/api/v2/company/reports/urls`</Tip>



## OpenAPI

````yaml openapi-v2-reports get /reports/urls
openapi: 3.0.1
info:
  title: FirstPromoter Reports API
  version: '1.0'
  description: API documentation for FirstPromoter reporting endpoints
servers:
  - url: https://api.firstpromoter.com/api/v2/company
security:
  - BearerAuth: []
paths:
  /reports/urls:
    get:
      tags:
        - Reports
      summary: Get reports for URLs
      description: >-
        With this endpoint you can get the report data grouped by
        URLs.<Tip>**HTTP Request** <br/>`GET
        https://api.firstpromoter.com/api/v2/company/reports/urls`</Tip>
      parameters:
        - $ref: '#/components/parameters/AccountId'
        - name: columns
          in: query
          required: true
          schema:
            type: array
            items:
              type: string
              enum:
                - clicks_count
                - revenue_amount
                - promoter_earnings_amount
                - referrals_count
                - customers_count
                - sales_count
                - refunds_count
                - cancelled_customers_count
                - referrals_to_customers_cr
                - clicks_to_customers_cr
                - clicks_to_referrals_cr
                - url
        - name: q
          in: query
          required: false
          schema:
            type: string
        - name: group_by
          in: query
          required: true
          schema:
            type: string
            enum:
              - day
              - week
              - month
              - year
        - name: start_date
          in: query
          required: true
          schema:
            type: string
            format: date-time
        - name: end_date
          in: query
          required: true
          schema:
            type: string
            format: date-time
        - name: sorting
          in: query
          required: false
          schema:
            type: object
            additionalProperties:
              type: string
              enum:
                - asc
                - desc
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/URLsResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '422':
          description: Unprocessable Entity
components:
  parameters:
    AccountId:
      name: Account-ID
      in: header
      required: true
      description: >-
        Account id. You can find your Account ID on Your FirstPromoter
        Dashboard. Navigate to Settings → Integrations
      schema:
        type: string
        example: acc_123456
  schemas:
    URLsResponse:
      type: array
      items:
        type: object
        properties:
          url:
            type: string
          id:
            type: string
          data:
            type: object
            properties:
              clicks_count:
                type: integer
              revenue_amount:
                type: number
              promoter_earnings_amount:
                type: number
              referrals_count:
                type: integer
              customers_count:
                type: integer
              sales_count:
                type: integer
              refunds_count:
                type: integer
              cancelled_customers_count:
                type: integer
              referrals_to_customers_cr:
                type: number
              clicks_to_customers_cr:
                type: number
              clicks_to_referrals_cr:
                type: number
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key passed as a Bearer token in the Authorization header. You can
        find your API Key on Your FirstPromoter Dashboard. Navigate to Settings
        → Integrations → Manage API Keys

````