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

# Get History

> Returns recorded player-count points. Range depth depends on plan: BASIC supports `1h` and `24h`, PRO adds `1m`, and ULTRA and MEGA add `1y`.



## OpenAPI

````yaml /rapidapi-v1.yaml get /rapid/v1/servers/{identifier}/history
openapi: 3.0.2
info:
  title: Fexmetrics RapidAPI
  version: 1.0.0
  description: |
    Customer-facing RapidAPI v1 contract.

    Raw history returns recorded time-series observations and is restricted by
    plan depth. Stats, growth, peak-hours, integrity, and compare return derived
    calculations; access to a derived range does not grant raw observations for
    that range.

    `by=id` is the default wherever `by` is available. Use `by=cfxId` when the
    identifier is a CFX network ID.

    RapidAPI handles authentication, request limits, quotas, and billing.
  contact:
    name: Fexmetrics
servers:
  - url: https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com
    description: RapidAPI gateway
security:
  - RapidApiKey: []
tags:
  - name: Servers
    description: Public server discovery and current state.
  - name: Raw History
    description: Recorded observations with plan-specific download depth.
  - name: Analytics
    description: Derived summaries calculated from bounded observation windows.
  - name: Integrity
    description: Explainable heuristic analysis; never proof or a calibrated probability.
  - name: Comparison
    description: Set-based comparison of two to five public servers.
paths:
  /rapid/v1/servers/{identifier}/history:
    get:
      tags:
        - Raw History
      summary: Get History
      description: >-
        Returns recorded player-count points. Range depth depends on plan: BASIC
        supports `1h` and `24h`, PRO adds `1m`, and ULTRA and MEGA add `1y`.
      operationId: getRapidServerHistory
      parameters:
        - $ref: '#/components/parameters/Identifier'
        - $ref: '#/components/parameters/By'
        - name: range
          in: query
          schema:
            type: string
            enum:
              - 1h
              - 24h
              - 1m
              - 1y
            default: 24h
      responses:
        '200':
          description: Raw observation series.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HistoryResponse'
              examples:
                success:
                  value:
                    data:
                      - timestamp: 1786701600
                        average: 72
                        minimum: 60
                        maximum: 84
                      - timestamp: 1786705200
                        average: 80
                        minimum: 65
                        maximum: 91
                    meta:
                      serverId: public-fivem
                      range: 24h
                      interval: 1h
                noObservations:
                  value:
                    data: []
                    meta:
                      serverId: no-history
                      range: 24h
                      interval: 1h
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/FeatureNotAvailable'
        '404':
          $ref: '#/components/responses/ServerNotFound'
        '429':
          $ref: '#/components/responses/HistoryResourceLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    Identifier:
      name: identifier
      in: path
      required: true
      description: >-
        Canonical Fexmetrics ID by default, or CFX ID when `by=cfxId` is
        supported and supplied.
      schema:
        type: string
        minLength: 1
        maxLength: 128
        pattern: ^[A-Za-z0-9-]+$
    By:
      name: by
      in: query
      description: >-
        Explicit identifier namespace. Defaults to canonical Fexmetrics ID;
        never inferred.
      schema:
        type: string
        enum:
          - id
          - cfxId
        default: id
  schemas:
    HistoryResponse:
      type: object
      additionalProperties: false
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/HistoryPoint'
        meta:
          $ref: '#/components/schemas/HistoryMeta'
    HistoryPoint:
      type: object
      additionalProperties: false
      required:
        - timestamp
        - average
        - minimum
        - maximum
      properties:
        timestamp:
          type: integer
          description: Unix timestamp in seconds.
        average:
          type: number
        minimum:
          type: number
          nullable: true
        maximum:
          type: number
          nullable: true
    HistoryMeta:
      type: object
      additionalProperties: false
      required:
        - serverId
        - range
        - interval
      properties:
        serverId:
          type: string
        range:
          type: string
          enum:
            - 1h
            - 24h
            - 1m
            - 1y
        interval:
          type: string
          enum:
            - 1m
            - 1h
            - 1d
            - 1mo
    ErrorResponse:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - INVALID_REQUEST
                - RAPIDAPI_UNAUTHORIZED
                - FEATURE_NOT_AVAILABLE
                - SERVER_NOT_FOUND
                - RATE_LIMITED
                - INTERNAL_ERROR
            message:
              type: string
  responses:
    InvalidRequest:
      description: Query, path, body, range, or duplicate-reference validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalidRequest:
              value:
                error:
                  code: INVALID_REQUEST
                  message: Invalid request
    Unauthorized:
      description: RapidAPI authentication failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unauthorized:
              value:
                error:
                  code: RAPIDAPI_UNAUTHORIZED
                  message: Unauthorized
    FeatureNotAvailable:
      description: The authenticated subscription does not include this feature or range.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            featureNotAvailable:
              value:
                error:
                  code: FEATURE_NOT_AVAILABLE
                  message: Feature not available for this subscription
    ServerNotFound:
      description: Server is unknown or is not publishable through RapidAPI.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            serverNotFound:
              value:
                error:
                  code: SERVER_NOT_FOUND
                  message: Server not found
    HistoryResourceLimited:
      description: The request was rate limited. Retry with exponential backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            resourceLimited:
              value:
                error:
                  code: RATE_LIMITED
                  message: Too many requests
    InternalError:
      description: Unexpected service error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internalError:
              value:
                error:
                  code: INTERNAL_ERROR
                  message: Internal server error
  securitySchemes:
    RapidApiKey:
      type: apiKey
      in: header
      name: X-RapidAPI-Key
      description: Customer key supplied by RapidAPI.
      x-default: YOUR_API_KEY

````