PerfDelta Reports API

Results, fixes, changes, full reports and history.

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 7

GET /report.php Latest public result of any measured domain #
POST /report.php Latest public result (JSON body) #
GET /fixes.php Prioritised fixes of the latest measurement #
POST /fixes.php Prioritised fixes (JSON body) #
GET /changes.php What changed since the previous measurement #
GET /details.php Full report of a scan #
GET /history.php Measurement history of a project URL #

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/perfdelta:perfdelta-reports-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

perfdelta-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PerfDelta REST Reports API
  version: 1.0.0
  summary: PageSpeed and Core Web Vitals scans, reports, projects and performance budgets.
  description: 'Start PageSpeed scans, read real-user Core Web Vitals (Chrome UX Report) and Lighthouse lab data, prioritised fixes, history, projects, competitors and performance budgets.


    Authentication: `Authorization: Bearer `. Create keys at https://perfdelta.com/api-keys. A free account can call the read endpoints and start one scan every 24 hours (30 requests per minute); paid plans get 60 requests per minute and a monthly PageSpeed test budget. Scans cost one test per URL and device, all other calls are free of charge.


    Responses are JSON (`application/json; charset=utf-8`). Errors are flat objects with an `error` code and usually a `message`. There is no pagination. The same functions are available to AI agents through the MCP server at https://perfdelta.com/api/mcp.php.


    Human-readable reference: https://perfdelta.com/api-docs'
  termsOfService: https://perfdelta.com/terms
  contact:
    name: PerfDelta
    url: https://perfdelta.com/contact
    email: info@perfdelta.com
  x-logo:
    url: https://perfdelta.com/assets/img/apple-touch-icon.png
servers:
- url: https://perfdelta.com/api/v1
security:
- bearerAuth: []
tags:
- name: Reports
  description: Results, fixes, changes, full reports and history.
paths:
  /report.php:
    get:
      operationId: getReport
      tags:
      - Reports
      summary: Latest public result of any measured domain
      description: Works for every domain measured with PerfDelta, not only your own. Unknown domains return 200 with status not_found. Free of charge.
      parameters:
      - name: url
        in: query
        required: true
        description: Any URL of the domain; only the host is used.
        schema:
          type: string
      - name: include
        in: query
        required: false
        description: Comma-separated list, any of competitors, trend.
        schema:
          type: string
      - name: lang
        in: query
        required: false
        description: Language of texts in the response.
        schema:
          type: string
          enum:
          - en
          - de
          default: en
      responses:
        '200':
          description: Latest result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
        '422':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
    post:
      operationId: getReportPost
      tags:
      - Reports
      summary: Latest public result (JSON body)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                include:
                  oneOf:
                  - type: string
                  - type: array
                    items:
                      type: string
                      enum:
                      - competitors
                      - trend
                    maxItems: 5
                lang:
                  type: string
                  enum:
                  - en
                  - de
              required:
              - url
      responses:
        '200':
          description: Latest result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
        '422':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
  /fixes.php:
    get:
      operationId: getFixes
      tags:
      - Reports
      summary: Prioritised fixes of the latest measurement
      parameters:
      - name: url
        in: query
        required: true
        description: Any URL of the domain; only the host is used.
        schema:
          type: string
      - name: lang
        in: query
        required: false
        description: Language of texts in the response.
        schema:
          type: string
          enum:
          - en
          - de
          default: en
      responses:
        '200':
          description: Fixes with impact, affected files and guides.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Fixes'
        '404':
          description: Domain not measured yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusNotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
    post:
      operationId: getFixesPost
      tags:
      - Reports
      summary: Prioritised fixes (JSON body)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                lang:
                  type: string
                  enum:
                  - en
                  - de
              required:
              - url
      responses:
        '200':
          description: Fixes with impact, affected files and guides.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Fixes'
        '404':
          description: Domain not measured yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusNotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
  /changes.php:
    get:
      operationId: getChanges
      tags:
      - Reports
      summary: What changed since the previous measurement
      parameters:
      - name: url
        in: query
        required: true
        description: Any URL of the domain; only the host is used.
        schema:
          type: string
      - name: lang
        in: query
        required: false
        description: Language of texts in the response.
        schema:
          type: string
          enum:
          - en
          - de
          default: en
      responses:
        '200':
          description: Changes between the last two measurements.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Changes'
        '404':
          description: Domain not measured yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusNotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
  /details.php:
    get:
      operationId: getReportDetails
      tags:
      - Reports
      summary: Full report of a scan
      description: Field and lab data per page, page weight, third parties, opportunities, diagnostics, competitors, AI recommendations, notes and history. Readable for your own scans and scans in your projects.
      parameters:
      - name: id
        in: query
        required: false
        description: scan_id or report hash. Either id or url_id is required.
        schema:
          type: string
      - name: url_id
        in: query
        required: false
        description: Latest scan of a project URL.
        schema:
          type: integer
      responses:
        '200':
          description: Full report.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportDetails'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
  /history.php:
    get:
      operationId: getHistory
      tags:
      - Reports
      summary: Measurement history of a project URL
      description: Newest first. Free accounts see the last three measurements.
      parameters:
      - name: url_id
        in: query
        required: true
        description: URL of one of your projects.
        schema:
          type: integer
      responses:
        '200':
          description: History entries.
          content:
            application/json:
              schema:
                type: object
                properties:
                  history:
                    type: array
                    items:
                      $ref: '#/components/schemas/HistoryEntry'
                  older_runs_stored:
                    type: integer
                  _meta:
                    $ref: '#/components/schemas/Meta'
                required:
                - history
        '404':
          $ref: '#/components/responses/NotFound'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    Changes:
      type: object
      properties:
        status:
          type: string
          enum:
          - done
          - no_baseline
        measured_at:
          type: string
        previous_measured_at:
          anyOf:
          - type: string
          - type: 'null'
        report_url:
          type: string
        page:
          anyOf:
          - type: string
          - type: 'null'
        device:
          anyOf:
          - type: string
          - type: 'null'
        scores:
          type: object
          properties:
            mobile:
              anyOf:
              - type: integer
              - type: 'null'
            desktop:
              anyOf:
              - type: integer
              - type: 'null'
        previous_scores:
          anyOf:
          - type: object
            properties:
              mobile:
                anyOf:
                - type: integer
                - type: 'null'
              desktop:
                anyOf:
                - type: integer
                - type: 'null'
          - type: 'null'
        changes:
          type: array
          items:
            type: object
            properties:
              kind:
                type: string
              direction:
                type: string
              summary:
                type: string
            additionalProperties: true
        implemented:
          type: array
          items:
            type: object
            additionalProperties: true
      required:
      - status
    Report:
      type: object
      properties:
        status:
          type: string
        mobile_score:
          anyOf:
          - type: integer
          - type: 'null'
        desktop_score:
          anyOf:
          - type: integer
          - type: 'null'
        measured_at:
          anyOf:
          - type: string
          - type: 'null'
        report_url:
          type: string
        scan_id:
          type: string
        engine:
          anyOf:
          - type: string
          - type: 'null'
        region:
          anyOf:
          - type: string
          - type: 'null'
        fallback_level:
          anyOf:
          - type: integer
          - type: 'null'
        mobile_measured_at:
          anyOf:
          - type: string
          - type: 'null'
        desktop_measured_at:
          anyOf:
          - type: string
          - type: 'null'
        latest_status:
          type: string
        latest_started_at:
          type: string
        competitors:
          type: object
          additionalProperties: true
        trend:
          type: object
          additionalProperties: true
      required:
      - status
    Meta:
      type: object
      properties:
        upgrade:
          type: object
          properties:
            reason:
              type: string
            required_plan:
              type: string
            unlocks:
              type: string
            url:
              type: string
    Fixes:
      type: object
      properties:
        status:
          type: string
        measured_at:
          type: string
        report_url:
          type: string
        platform:
          anyOf:
          - type: string
          - type: 'null'
        field:
          type: object
          additionalProperties: true
        fixes:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              resource:
                anyOf:
                - type: string
                - type: 'null'
              title:
                type: string
              problem:
                type: string
              action:
                type: string
              metrics:
                type: array
                items:
                  type: string
              fails_in_field:
                type: boolean
              basis:
                type: string
                enum:
                - lab
                - field
              impact:
                type: object
                additionalProperties: true
              devices:
                type: array
                items:
                  type: string
              pages:
                type: array
                items:
                  type: string
              files:
                type: array
                items:
                  type: object
                  properties:
                    url:
                      type: string
                    wasted_bytes:
                      anyOf:
                      - type: integer
                      - type: 'null'
                    wasted_ms:
                      anyOf:
                      - type: number
                      - type: 'null'
                    estimated:
                      type: boolean
                  additionalProperties: true
              guide_url:
                anyOf:
                - type: string
                - type: 'null'
            additionalProperties: true
      required:
      - status
      - fixes
    StatusNotFound:
      type: object
      properties:
        status:
          type: string
          enum:
          - not_found
      required:
      - status
    Note:
      type: object
      properties:
        id:
          type: integer
        note:
          type: string
        created_at:
          type: string
    HistoryEntry:
      type: object
      properties:
        hash:
          type: string
        created_at:
          type: string
        mobile_score:
          anyOf:
          - type: integer
          - type: 'null'
        desktop_score:
          anyOf:
          - type: integer
          - type: 'null'
        engine:
          anyOf:
          - type: string
          - type: 'null'
        region:
          anyOf:
          - type: string
          - type: 'null'
        fallback_level:
          anyOf:
          - type: integer
          - type: 'null'
    Error:
      type: object
      description: 'Errors are flat: a code, usually a message, and further detail fields on the same level.'
      properties:
        error:
          type: string
        message:
          type: string
        required_plan:
          type: string
        upgrade_url:
          type: string
        retry_after:
          type: integer
        next_scan_at:
          anyOf:
          - type: string
          - type: 'null'
        _meta:
          $ref: '#/components/schemas/Meta'
      required:
      - error
      additionalProperties: true
    ReportDetails:
      type: object
      description: Full report. Nested objects are documented on https://perfdelta.com/api-docs and may gain fields.
      properties:
        scan_id:
          type: string
        domain:
          type: string
        status:
          type: string
        measured_at:
          type: string
        report_url:
          type: string
        complete:
          type: boolean
        summary:
          type: object
          additionalProperties: true
        origin_field_data_phone:
          type:
          - object
          - 'null'
          additionalProperties: true
        origin_field_data_desktop:
          type:
          - object
          - 'null'
          additionalProperties: true
        competitors:
          type:
          - array
          - object
          - 'null'
        pages:
          type: array
          items:
            type: object
            additionalProperties: true
        third_party_recommendations:
          type: array
          items:
            type: object
            additionalProperties: true
        tech_stack:
          type:
          - array
          - object
          - 'null'
        ai_readiness:
          type:
          - object
          - 'null'
          additionalProperties: true
        delivery:
          type:
          - object
          - 'null'
          additionalProperties: true
        ai_recommendations:
          type: array
        notes:
          type: array
          items:
            $ref: '#/components/schemas/Note'
        history:
          type: array
          items:
            type: object
            additionalProperties: true
      required:
      - scan_id
      - status
      additionalProperties: true
  responses:
    TooManyRequests:
      description: 'rate_limited (Retry-After: 60), too_many_failed_attempts, quota_exhausted (free scan window, with next_scan_at) or throttled.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: email_unverified, plan_required (with required_plan and _meta.upgrade), token_scope or a plan limit such as url_limit_reached, competitor_limit, project_limit.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: API temporarily disabled or no measuring capacity (disabled, busy, capacity_exhausted, free_capacity_exhausted).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Unknown or not readable id (not_found, unknown_project_id, unknown_url_id, url_not_found, ...).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 'Missing or invalid API key (error unauthorized). Header WWW-Authenticate: Bearer.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationError:
      description: Invalid input (missing_url, invalid_url, invalid_devices, invalid_region, invalid_metric, ...).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: PerfDelta API key, e.g. pdk_live_...
externalDocs:
  description: API documentation
  url: https://perfdelta.com/api-docs