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

# Biggest ranking movers

> Get keywords with the biggest position changes between two dates. Ordered by absolute change magnitude (largest movers first). Reads from Postgres for fast historical comparisons.



## OpenAPI

````yaml https://api.surnex.io/openapi.json get /v1/projects/{project_id}/tracking/changes
openapi: 3.1.0
info:
  title: Surnex API
  description: |-
    Surnex SEO Platform API — api.surnex.io

    Provides the complete backend for the Surnex SEO dashboard including:
    - Multi-tenant organization management
    - Project tracking (domains)
    - Keyword rank tracking (Phase 1+)
    - Backlink analysis (Phase 3+)
    - Site auditing (Phase 4+)
    - Stripe billing integration
    - MCP endpoint for AI agents at /mcp
  version: 0.1.0
servers: []
security: []
paths:
  /v1/projects/{project_id}/tracking/changes:
    get:
      tags:
        - Rank Tracking
      summary: Biggest ranking movers
      description: >-
        Get keywords with the biggest position changes between two dates.
        Ordered by absolute change magnitude (largest movers first). Reads from
        Postgres for fast historical comparisons.
      operationId: get_ranking_changes_v1_projects__project_id__tracking_changes_get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: today
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Most recent date (defaults to today, YYYY-MM-DD)
            title: Today
          description: Most recent date (defaults to today, YYYY-MM-DD)
        - name: yesterday
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: Prior date to compare against (defaults to yesterday)
            title: Yesterday
          description: Prior date to compare against (defaults to yesterday)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Maximum results
            default: 20
            title: Limit
          description: Maximum results
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIResponse_list_RankingChangeResponse__'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    APIResponse_list_RankingChangeResponse__:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          anyOf:
            - items:
                $ref: '#/components/schemas/RankingChangeResponse'
              type: array
            - type: 'null'
          title: Data
      type: object
      title: APIResponse[list[RankingChangeResponse]]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RankingChangeResponse:
      properties:
        keyword_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Keyword Id
        keyword:
          type: string
          title: Keyword
        current_position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Current Position
          description: Position as of the most recent check. NULL = not ranking.
        previous_position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Previous Position
          description: Position as of the prior check. NULL = was not ranking.
        change:
          type: integer
          title: Change
          description: >-
            Signed position change. Positive = improved (e.g., +5 means moved
            from #15 to #10), negative = dropped.
        url_found:
          anyOf:
            - type: string
            - type: 'null'
          title: Url Found
        search_volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Search Volume
      type: object
      required:
        - keyword
        - change
      title: RankingChangeResponse
      description: A keyword's position change between two dates (biggest movers).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````