PerfDelta Notes API

Notes on scans, for example fix status reported by coding agents.

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 4

GET /notes.php Notes on a scan #
POST /notes.php Add a note to a scan #
PATCH /notes.php Edit a note #
DELETE /notes.php Delete a note #

Specifications

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-notes-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-notes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PerfDelta REST Notes 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: Notes
  description: Notes on scans, for example fix status reported by coding agents.
paths:
  /notes.php:
    get:
      operationId: listNotes
      tags:
      - Notes
      summary: Notes on a scan
      parameters:
      - name: id
        in: query
        required: true
        description: scan_id.
        schema:
          type: string
      responses:
        '200':
          description: Oldest first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  notes:
                    type: array
                    items:
                      $ref: '#/components/schemas/Note'
                required:
                - notes
        '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'
    post:
      operationId: addNote
      tags:
      - Notes
      summary: Add a note to a scan
      description: 'Coding agents report fix status here, for example "PD- done: ...". Up to 50 notes per scan.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                scan_id:
                  type: string
                note:
                  type: string
                  maxLength: 280
              required:
              - scan_id
              - note
      responses:
        '201':
          description: Note created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  scan_id:
                    type: string
                  note:
                    type: string
                  created_at:
                    type: string
        '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'
    patch:
      operationId: updateNote
      tags:
      - Notes
      summary: Edit a note
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                note_id:
                  type: integer
                note:
                  type: string
                  maxLength: 280
              required:
              - note_id
              - note
      responses:
        '200':
          description: Updated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  note:
                    type: string
        '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'
    delete:
      operationId: deleteNote
      tags:
      - Notes
      summary: Delete a note
      parameters:
      - name: note_id
        in: query
        required: false
        description: Note id (or note_id in a JSON body).
        schema:
          type: integer
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Deleted'
        '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:
  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'
  schemas:
    Meta:
      type: object
      properties:
        upgrade:
          type: object
          properties:
            reason:
              type: string
            required_plan:
              type: string
            unlocks:
              type: string
            url:
              type: string
    Note:
      type: object
      properties:
        id:
          type: integer
        note:
          type: string
        created_at:
          type: string
    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
    Deleted:
      type: object
      properties:
        deleted:
          type:
          - integer
          - boolean
      required:
      - deleted
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: PerfDelta API key, e.g. pdk_live_...
externalDocs:
  description: API documentation
  url: https://perfdelta.com/api-docs