PerfDelta Projects API

Projects, URLs and competitors.

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 9

GET /projects.php List projects #
POST /projects.php Create a project (paid plans) #
GET /urls.php List project URLs or suggest URLs from the sitemap #
POST /urls.php Add URLs to a project (paid plans) #
PATCH /urls.php Switch monitoring of a URL on or off (paid plans) #
DELETE /urls.php Remove a URL from its project (paid plans) #
GET /competitors.php List competitors of a project (paid plans) #
POST /competitors.php Add a competitor (paid plans) #
DELETE /competitors.php Remove a competitor (paid plans) #

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-projects-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-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PerfDelta REST Projects 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: Projects
  description: Projects, URLs and competitors.
paths:
  /projects.php:
    get:
      operationId: listProjects
      tags:
      - Projects
      summary: List projects
      responses:
        '200':
          description: Projects of the account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  projects:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        name:
                          type: string
                      required:
                      - id
                      - name
                required:
                - projects
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/Unavailable'
    post:
      operationId: createProject
      tags:
      - Projects
      summary: Create a project (paid plans)
      description: Plans without multiple projects can hold one project (403 project_limit).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 255
                region:
                  type: string
                  enum:
                  - auto
                  - us-east
                  - us-west
                  - eu
                  - asia
              required:
              - name
      responses:
        '201':
          description: Project created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  name:
                    type: string
                  region:
                    type: string
                required:
                - id
                - name
        '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'
  /urls.php:
    get:
      operationId: listUrls
      tags:
      - Projects
      summary: List project URLs or suggest URLs from the sitemap
      parameters:
      - name: project_id
        in: query
        required: true
        description: Project.
        schema:
          type: integer
      - name: suggest
        in: query
        required: false
        description: Return URL suggestions from the sitemap instead of the project URLs.
        schema:
          type: integer
          enum:
          - 1
      - name: site
        in: query
        required: false
        description: Site to read the sitemap from (suggest only).
        schema:
          type: string
      - name: refresh
        in: query
        required: false
        description: Read the sitemap again (suggest only).
        schema:
          type: integer
          enum:
          - 1
      responses:
        '200':
          description: Project URLs, or suggestions with suggest=1.
          content:
            application/json:
              schema:
                oneOf:
                - type: object
                  properties:
                    urls:
                      type: array
                      items:
                        $ref: '#/components/schemas/ProjectUrl'
                  required:
                  - urls
                - $ref: '#/components/schemas/UrlSuggestions'
        '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: addUrls
      tags:
      - Projects
      summary: Add URLs to a project (paid plans)
      description: URLs without a scheme get https://. Monitoring measures them from the monthly budget.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                project_id:
                  type: integer
                url:
                  type: string
                urls:
                  type: array
                  items:
                    type: string
                  maxItems: 100
              required:
              - project_id
      responses:
        '200':
          description: Nothing added (see skipped).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UrlsAdded'
        '201':
          description: At least one URL added.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UrlsAdded'
        '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: setUrlMonitoring
      tags:
      - Projects
      summary: Switch monitoring of a URL on or off (paid plans)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url_id:
                  type: integer
                monitoring_enabled:
                  type: boolean
              required:
              - url_id
              - monitoring_enabled
      responses:
        '200':
          description: Updated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  monitoring_enabled:
                    type: boolean
        '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: removeUrl
      tags:
      - Projects
      summary: Remove a URL from its project (paid plans)
      parameters:
      - name: url_id
        in: query
        required: false
        description: URL to remove (or url_id in a JSON body).
        schema:
          type: integer
      responses:
        '200':
          description: Removed.
          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'
  /competitors.php:
    get:
      operationId: listCompetitors
      tags:
      - Projects
      summary: List competitors of a project (paid plans)
      parameters:
      - name: project_id
        in: query
        required: true
        description: Project.
        schema:
          type: integer
      responses:
        '200':
          description: Competitors.
          content:
            application/json:
              schema:
                type: object
                properties:
                  competitors:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        domain:
                          type: string
                required:
                - competitors
        '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'
    post:
      operationId: addCompetitor
      tags:
      - Projects
      summary: Add a competitor (paid plans)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                project_id:
                  type: integer
                domain:
                  type: string
                  description: Domain or URL.
              required:
              - project_id
              - domain
      responses:
        '201':
          description: Competitor added.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  domain:
                    type: string
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: duplicate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '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: removeCompetitor
      tags:
      - Projects
      summary: Remove a competitor (paid plans)
      parameters:
      - name: project_id
        in: query
        required: false
        description: Project.
        schema:
          type: integer
      - name: id
        in: query
        required: false
        description: Competitor id.
        schema:
          type: integer
      responses:
        '200':
          description: Removed.
          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:
  schemas:
    ProjectUrl:
      type: object
      properties:
        id:
          type: integer
        url:
          type: string
        monitoring_enabled:
          type: boolean
        last_monitored_at:
          anyOf:
          - type: string
          - type: 'null'
        within_plan_limit:
          type: boolean
    UrlsAdded:
      type: object
      properties:
        added:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              url:
                type: string
        skipped:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              reason:
                type: string
                enum:
                - invalid_url
                - duplicate
                - url_limit_reached
      required:
      - added
      - skipped
    Meta:
      type: object
      properties:
        upgrade:
          type: object
          properties:
            reason:
              type: string
            required_plan:
              type: string
            unlocks:
              type: string
            url:
              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
    UrlSuggestions:
      type: object
      properties:
        status:
          type: string
        site:
          type: string
        source:
          type: string
        total:
          type: integer
        url_limit:
          type: integer
        url_count:
          type: integer
        free_slots:
          type: integer
        preselected:
          type: integer
        urls:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              group:
                type: string
              in_project:
                type: boolean
              preselected:
                type: boolean
              field_data:
                type:
                - object
                - boolean
                - 'null'
      additionalProperties: true
    Deleted:
      type: object
      properties:
        deleted:
          type:
          - integer
          - boolean
      required:
      - deleted
  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