XeoRank Cwv API

The cwv API from XeoRank — 3 operation(s) for cwv.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

GET /sites/{site_id}/cwv List Cwv Metrics #
POST /sites/{site_id}/cwv/measure Measure Cwv #
GET /sites/{site_id}/cwv/preview Site Preview Image #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xeorank-com:xeorank-com-cwv-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xeorank-com-cwv-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEO Intelligence Engine Cwv API
  version: 0.1.0
tags:
- name: cwv
paths:
  /sites/{site_id}/cwv:
    get:
      tags:
      - cwv
      summary: List Cwv Metrics
      description: 'Return recent CWV metrics for a site.


        Optionally filter by page URL and/or device. ``include_diagnostics=false``

        drops the Lighthouse blob (screenshot, filmstrip, audits — 600-700 KB per

        row): the MCP tools pass it, because technical_health on a 3-row site came

        back as 478 KB and the concise shaper had to omit the whole CWV section

        (2026-09-26). The dashboard keeps the default.'
      operationId: list_cwv_metrics_sites__site_id__cwv_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: url
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
      - name: device
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Device
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      - name: include_diagnostics
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Include Diagnostics
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CwvMetricOut'
                title: Response List Cwv Metrics Sites  Site Id  Cwv Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/cwv/measure:
    post:
      tags:
      - cwv
      summary: Measure Cwv
      description: 'Run a new CWV measurement for a page.


        Calls PageSpeed Insights (always) and CrUX (when the user has a

        GSC refresh token). Both results are persisted and returned.

        ``include_diagnostics=false`` drops the Lighthouse blob from the reply:

        the MCP measure_cwv on wintwealth.com (2026-09-27) returned 530 KB, of

        which 550 KB-equivalent was ``psi.diagnostics`` (audits_by_id, filmstrip,

        screenshot) and 200 bytes were the scores an agent quotes.'
      operationId: measure_cwv_sites__site_id__cwv_measure_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: include_diagnostics
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Include Diagnostics
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MeasureRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeasureResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/cwv/preview:
    get:
      tags:
      - cwv
      summary: Site Preview Image
      description: 'Latest stored PageSpeed screenshot as a real image (browser-cacheable).


        The grid/hero UIs use this instead of pulling fat base64 JSON per site.

        Prefers desktop captures (landscape fits card covers). 404 when none.'
      operationId: site_preview_image_sites__site_id__cwv_preview_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MeasureResponse:
      properties:
        psi:
          $ref: '#/components/schemas/CwvMetricOut'
        crux:
          anyOf:
          - $ref: '#/components/schemas/CwvMetricOut'
          - type: 'null'
      type: object
      required:
      - psi
      title: MeasureResponse
    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
    MeasureRequest:
      properties:
        url:
          type: string
          title: Url
          description: The page URL to measure
        device:
          type: string
          title: Device
          description: 'Device type: mobile or desktop'
          default: mobile
      type: object
      required:
      - url
      title: MeasureRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CwvMetricOut:
      properties:
        id:
          type: string
          title: Id
        site_id:
          type: string
          title: Site Id
        url:
          type: string
          title: Url
        source:
          type: string
          title: Source
        device:
          type: string
          title: Device
        lcp_ms:
          anyOf:
          - type: number
          - type: 'null'
          title: Lcp Ms
        inp_ms:
          anyOf:
          - type: number
          - type: 'null'
          title: Inp Ms
        cls:
          anyOf:
          - type: number
          - type: 'null'
          title: Cls
        fcp_ms:
          anyOf:
          - type: number
          - type: 'null'
          title: Fcp Ms
        ttfb_ms:
          anyOf:
          - type: number
          - type: 'null'
          title: Ttfb Ms
        tbt_ms:
          anyOf:
          - type: number
          - type: 'null'
          title: Tbt Ms
        speed_index:
          anyOf:
          - type: number
          - type: 'null'
          title: Speed Index
        performance_score:
          anyOf:
          - type: number
          - type: 'null'
          title: Performance Score
        dom_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: Dom Size
        dom_depth:
          anyOf:
          - type: integer
          - type: 'null'
          title: Dom Depth
        page_load_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Page Load Ms
        diagnostics:
          anyOf:
          - additionalProperties: true
            type: object
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Diagnostics
        measured_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Measured At
      type: object
      required:
      - id
      - site_id
      - url
      - source
      - device
      title: CwvMetricOut
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Agent-Key