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

# Get latency metrics

> Page, DOM, tag, ad unit and ad latency at the 50th, 95th and 99th percentiles over time. Tag, page and DOM latency are weighted by page impressions, ad unit latency by ad unit loads and ad latency by ad requests. Without `uid`, also lists each publisher's figures for the whole period. For a comparison with similar publishers, use `/v1/report/insight/benchmarking/latency`. Results cover the publishers in your organisation and its child organisations.



## OpenAPI

````yaml /openapi.json get /v1/report/insight/metrics/latency
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality.


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    ## Errors any endpoint can return

    Every signed-in endpoint can also return these, so they aren't listed on
    each one:


    - `401` Unauthorized: no valid token was sent. It's missing, invalid,
    expired or revoked.

    - `403` Forbidden with `code` `session_invalid`: your user or organisation
    no longer exists, or you were removed from the organisation. Sign in again.

    - `403` Forbidden with `code` `insufficient_scope` ("This sign-in is
    read-only"): an OAuth (MCP) sign-in with read access tried to make a change.

    - `403` Forbidden with `code` `organisation_unavailable`: an OAuth (MCP)
    sign-in has lost access to its organisation. Switch to another organisation.

    - `503` Service Unavailable: "System is down for scheduled maintenance". Try
    again later.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Publisher
  - name: Publisher/Publisher Tag
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: Publisher/Publisher Stack
  - name: Publisher/Experiment
  - name: Publisher/Publisher Meta
  - name: Publisher/Debugging
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Integration
  - name: Integration/Authentication
  - name: Integration/Mapping
  - name: Mapping
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Benchmarking
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Campaign Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Audience
  - name: Audience/Segment
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: User
  - name: User/Account
  - name: Billing
  - name: Billing/Profile
  - name: Billing/Invoice
  - name: Audit Log
  - name: Search
  - name: Set-up
  - name: public
paths:
  /v1/report/insight/metrics/latency:
    get:
      tags:
        - Reporting/Insights Hub/Metrics
        - public
      summary: Get latency metrics
      description: >-
        Page, DOM, tag, ad unit and ad latency at the 50th, 95th and 99th
        percentiles over time. Tag, page and DOM latency are weighted by page
        impressions, ad unit latency by ad unit loads and ad latency by ad
        requests. Without `uid`, also lists each publisher's figures for the
        whole period. For a comparison with similar publishers, use
        `/v1/report/insight/benchmarking/latency`. Results cover the publishers
        in your organisation and its child organisations.
      operationId: getLatencyMetrics
      parameters:
        - name: uid
          in: query
          description: >-
            One or more publisher IDs, comma-separated. Defaults to all
            publishers in your organisation, and then `publisher` lists each one
          required: false
          schema:
            type: string
        - name: range
          in: query
          description: >-
            Date range to report on. Preset ranges end yesterday.
            `week_to_date`, `month_to_date`, `quarter_to_date` and
            `year_to_date` run from the start of the current period to
            yesterday. `month_on_month` covers the last 12 full months plus this
            month so far, and `quarter_on_quarter` the last two years, both
            grouped by month or quarter. `custom` uses `start` and `end`
            (YYYY-MM-DD) and falls back to `all_time` when either is missing. An
            empty value means yesterday. Other values return a 400 error
          required: false
          schema:
            type: string
            enum:
              - custom
              - all_time
              - yesterday
              - seven_days
              - fourteen_days
              - thirty_days
              - three_months
              - six_months
              - week_to_date
              - month_to_date
              - quarter_to_date
              - year_to_date
              - last_week
              - last_month
              - last_quarter
              - last_year
              - month_on_month
              - quarter_on_quarter
            default: thirty_days
        - name: start
          in: query
          description: Start date (YYYY-MM-DD) when `range` is `custom`
          required: false
          schema:
            type: string
            format: date
        - name: end
          in: query
          description: End date (YYYY-MM-DD) when `range` is `custom`
          required: false
          schema:
            type: string
            format: date
        - name: date_group
          in: query
          description: >-
            Groups the series by day, month or quarter. Months and quarters
            start from the first day of the month the range starts in.
            `month_on_month` and `quarter_on_quarter` group automatically. Other
            values group by day. Month and quarter values are daily averages,
            not totals
          required: false
          schema:
            type: string
            enum:
              - day
              - month
              - quarter
            default: day
      responses:
        '200':
          description: 'OK: Latency series.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      dates:
                        type: array
                        description: >-
                          Dates for the series (YYYY-MM-DD), or the first day of
                          each month or quarter when grouped. Every latency
                          array has one value per date, with 0 where there's no
                          data. All arrays are empty when the range has no data
                        items:
                          type: string
                          format: date
                      tag_latency_50th:
                        type: array
                        description: >-
                          Median time for the tag to load, in milliseconds,
                          weighted by page impressions
                        items:
                          type: number
                      tag_latency_95th:
                        type: array
                        description: >-
                          95th percentile tag load time, in milliseconds,
                          weighted by page impressions
                        items:
                          type: number
                      tag_latency_99th:
                        type: array
                        description: >-
                          99th percentile tag load time, in milliseconds,
                          weighted by page impressions
                        items:
                          type: number
                      page_latency_50th:
                        type: array
                        description: >-
                          Median page load time, in milliseconds, weighted by
                          page impressions
                        items:
                          type: number
                      page_latency_95th:
                        type: array
                        description: >-
                          95th percentile page load time, in milliseconds,
                          weighted by page impressions
                        items:
                          type: number
                      page_latency_99th:
                        type: array
                        description: >-
                          99th percentile page load time, in milliseconds,
                          weighted by page impressions
                        items:
                          type: number
                      dom_latency_50th:
                        type: array
                        description: >-
                          Median time until the page's DOM was ready, in
                          milliseconds, weighted by page impressions
                        items:
                          type: number
                      dom_latency_95th:
                        type: array
                        description: >-
                          95th percentile time until the DOM was ready, in
                          milliseconds, weighted by page impressions
                        items:
                          type: number
                      dom_latency_99th:
                        type: array
                        description: >-
                          99th percentile time until the DOM was ready, in
                          milliseconds, weighted by page impressions
                        items:
                          type: number
                      unit_latency_50th:
                        type: array
                        description: >-
                          Median time to load an ad unit, in milliseconds,
                          weighted by ad unit loads
                        items:
                          type: number
                      unit_latency_95th:
                        type: array
                        description: >-
                          95th percentile ad unit load time, in milliseconds,
                          weighted by ad unit loads
                        items:
                          type: number
                      unit_latency_99th:
                        type: array
                        description: >-
                          99th percentile ad unit load time, in milliseconds,
                          weighted by ad unit loads
                        items:
                          type: number
                      ad_latency_50th:
                        type: array
                        description: >-
                          Median time to load an ad, in milliseconds, weighted
                          by ad requests
                        items:
                          type: number
                      ad_latency_95th:
                        type: array
                        description: >-
                          95th percentile ad load time, in milliseconds,
                          weighted by ad requests
                        items:
                          type: number
                      ad_latency_99th:
                        type: array
                        description: >-
                          99th percentile ad load time, in milliseconds,
                          weighted by ad requests
                        items:
                          type: number
                      publisher:
                        type: array
                        description: >-
                          Each publisher's latency over the whole range,
                          weighted the same way as the series. Only filled when
                          no `uid` is sent, otherwise empty
                        items:
                          type: object
                          properties:
                            uid:
                              type: integer
                              description: Publisher ID
                            domain:
                              type: string
                              description: Publisher domain
                            label:
                              description: Publisher label, when it has one
                              type: string
                              nullable: true
                            tag_latency_50th:
                              type: number
                              description: Median tag load time, in milliseconds
                            tag_latency_95th:
                              type: number
                              description: 95th percentile tag load time, in milliseconds
                            tag_latency_99th:
                              type: number
                              description: 99th percentile tag load time, in milliseconds
                            page_latency_50th:
                              type: number
                              description: Median page load time, in milliseconds
                            page_latency_95th:
                              type: number
                              description: 95th percentile page load time, in milliseconds
                            page_latency_99th:
                              type: number
                              description: 99th percentile page load time, in milliseconds
                            dom_latency_50th:
                              type: number
                              description: >-
                                Median time until the DOM was ready, in
                                milliseconds
                            dom_latency_95th:
                              type: number
                              description: >-
                                95th percentile time until the DOM was ready, in
                                milliseconds
                            dom_latency_99th:
                              type: number
                              description: >-
                                99th percentile time until the DOM was ready, in
                                milliseconds
                            unit_latency_50th:
                              type: number
                              description: Median ad unit load time, in milliseconds
                            unit_latency_95th:
                              type: number
                              description: >-
                                95th percentile ad unit load time, in
                                milliseconds
                            unit_latency_99th:
                              type: number
                              description: >-
                                99th percentile ad unit load time, in
                                milliseconds
                            ad_latency_50th:
                              type: number
                              description: Median ad load time, in milliseconds
                            ad_latency_95th:
                              type: number
                              description: 95th percentile ad load time, in milliseconds
                            ad_latency_99th:
                              type: number
                              description: 99th percentile ad load time, in milliseconds
                          required:
                            - uid
                            - domain
                            - label
                    required:
                      - dates
                      - tag_latency_50th
                      - tag_latency_95th
                      - tag_latency_99th
                      - page_latency_50th
                      - page_latency_95th
                      - page_latency_99th
                      - dom_latency_50th
                      - dom_latency_95th
                      - dom_latency_99th
                      - unit_latency_50th
                      - unit_latency_95th
                      - unit_latency_99th
                      - ad_latency_50th
                      - ad_latency_95th
                      - ad_latency_99th
                      - publisher
                    description: The report
                  success:
                    type: boolean
                    description: Always true
                required:
                  - results
                  - success
              example:
                results:
                  dates:
                    - '2026-10-19'
                    - '2026-10-20'
                    - '2026-10-21'
                  tag_latency_50th:
                    - 2015.0001
                    - 2459.4999
                    - 2204.15
                  tag_latency_95th:
                    - 13543.3799
                    - 14001.055
                    - 14162.7701
                  tag_latency_99th:
                    - 30355.66
                    - 36605.656
                    - 36641.7059
                  page_latency_50th:
                    - 396
                    - 464.3
                    - 424.4
                  page_latency_95th:
                    - 3077.015
                    - 3354.8
                    - 3206.535
                  page_latency_99th:
                    - 7528.26
                    - 9180.29
                    - 9522.974
                  dom_latency_50th:
                    - 2916
                    - 3454.7
                    - 3559.9
                  dom_latency_95th:
                    - 34340.96
                    - 35866.09
                    - 42980.29
                  dom_latency_99th:
                    - 100352.97
                    - 111828.063
                    - 141844.44
                  unit_latency_50th:
                    - 1450.25
                    - 1422.5
                    - 1489.1
                  unit_latency_95th:
                    - 6210.4
                    - 6388.9
                    - 6102.75
                  unit_latency_99th:
                    - 14880.2
                    - 15402.6
                    - 14975.3
                  ad_latency_50th:
                    - 812.5
                    - 790
                    - 835.2
                  ad_latency_95th:
                    - 3920.6
                    - 3874.15
                    - 4011.8
                  ad_latency_99th:
                    - 9876.4
                    - 10230.9
                    - 9988.1
                  publisher:
                    - uid: 18620
                      domain: example.com
                      label: ''
                      tag_latency_50th: 2210.4
                      tag_latency_95th: 13802.5
                      tag_latency_99th: 33410.2
                      page_latency_50th: 431.2
                      page_latency_95th: 3215.6
                      page_latency_99th: 8640.9
                      dom_latency_50th: 3301.5
                      dom_latency_95th: 37502.8
                      dom_latency_99th: 118204.6
                      unit_latency_50th: 1461.3
                      unit_latency_95th: 6250.1
                      unit_latency_99th: 15080.4
                      ad_latency_50th: 808.9
                      ad_latency_95th: 3901.2
                      ad_latency_99th: 10012.7
                success: true
          headers: {}
        '400':
          description: >-
            Bad Request: `range` isn't a known value ("Invalid range. Use one
            of: …").
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: User forbidden
          headers: {}
        '500':
          description: >-
            Internal Server Error: An unexpected error. The message includes a
            reference to quote to support.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
              example:
                status: 500
                message: >-
                  An error occurred [4f2k], please try again shortly or contact
                  your account manager for further assistance.
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    Error:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          description: Always false for an error.
          enum:
            - false
        message:
          type: string
          description: What went wrong, safe to show to the user.
    ServerError:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: integer
          enum:
            - 500
        message:
          type: string
          description: >-
            A generic message with an error reference in square brackets, for
            support.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal API token from the platform's settings page, or an OAuth
        access token.

````

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