Lekta API

Lekta API as documented publicly: 4 operations. Contract generated from the documentation by API Evangelist (2026-11-15); not the provider's own document.

GitHub OpenAPI

Operations 4

GET /api/badge/{token} Public SVG grade badge, no key required. #
GET /api/v1/audit Start or poll an audit of one URL. #
GET /api/v1/audits Grade drops on the sites you watch in the panel, newest first. #
GET /api/v1/me GET /api/v1/me #

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/lekta-dev:lekta-dev-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

lekta-dev-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Lekta API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 4 operation(s) read from 2 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Lekta has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 3
    pages-with-code: 1
    pages-read: 2
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://lekta.dev/en/api
  - https://lekta.dev/en/faq
paths:
  /api/badge/{token}:
    get:
      operationId: get_api_badge_token
      tags:
      - Api
      summary: Public SVG grade badge, no key required.
      x-source: https://lekta.dev/en/api
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiBadgeTokenResponse'
      x-evidence:
        kind: documentation
  /api/v1/audit:
    get:
      operationId: get_api_v1_audit
      tags:
      - Api
      summary: Start or poll an audit of one URL.
      x-source: https://lekta.dev/en/api
      parameters:
      - name: url
        in: query
        required: false
        schema:
          type: string
        description: Target URL to audit. Absent behaves like empty and returns 400.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AuditResponse'
      x-evidence:
        kind: documentation
  /api/v1/audits:
    get:
      operationId: get_api_v1_audits
      tags:
      - Api
      summary: Grade drops on the sites you watch in the panel, newest first.
      x-source: https://lekta.dev/en/api
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Maximum number of items to return (default 100, max 100).
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AuditsResponse'
      x-evidence:
        kind: documentation
  /api/v1/me:
    get:
      operationId: get_api_v1_me
      tags:
      - Api
      summary: GET /api/v1/me
      x-source: https://lekta.dev/en/api
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1MeResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -H "Authorization: Bearer lekta_..."  "https://lekta.dev/api/v1/me" Header form Copy curl -H "x-api-key: lekta_..."  "https://lekta.dev/api/v1/me"
          Endpoints 4 Endpoint What it does Spends quota Fetches the target GET /api/v1/me Key check, plan, quota counters no no GET /api/v1/audit
          Start or poll an audit of one URL yes yes GET /api/v1/audits Grade drops on your watched sites no no GET /api/b'
components:
  schemas:
    GetApiBadgeTokenResponse:
      type: object
      properties:
        image/svg+xml:
          type: string
          description: Inline SVG badge with grade and points.
        text/plain:
          type: string
          description: '"not found" for malformed, unknown or missing token (404).'
    GetApiV1AuditResponse:
      type: object
      properties:
        status:
          type: string
          description: '"running", "done" or "error".'
        retryAfterSec:
          type: integer
          description: Seconds to wait before next poll (present when status is "running").
        report:
          type: object
          description: Full audit report (present when status is "done").
        error:
          type: object
          description: Error object (present when status is "error").
    GetApiV1AuditsResponse:
      type: object
      properties:
        '[]':
          type: array
          description: Array of drop objects.
        id:
          type: integer
          description: Audit row id, unique and immutable.
        url:
          type: string
          description: Audited URL.
        prevGrade:
          type: string
          description: Previous grade.
        newGrade:
          type: string
          description: New grade.
        prevScore:
          type: number
          description: Previous score (may be null).
        newScore:
          type: number
          description: New score (may be null).
        prevEngineVersion:
          type: string
          description: Engine version of previous run.
        engineVersion:
          type: string
          description: Engine version of new run.
        prevAt:
          type: string
          description: Timestamp of previous run.
        at:
          type: string
          description: Timestamp of new run.
    GetApiV1MeResponse:
      type: object
      properties:
        email:
          type: string
        plan:
          type: string
        quota:
          type: object
          properties:
            perDay:
              type: integer
            usedToday:
              type: integer
            remaining:
              type: integer
            perDomainPerDay:
              type: integer
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api