Screenpipe Frames API

Access captured screenshots and their extracted text

Operations 9

GET /frames/{frame_id} Get frame by ID #
GET /frames/{frame_id}/text Get frame text and bounds #
POST /frames/{frame_id}/text Run OCR on frame #
GET /frames/{frame_id}/ocr Get frame OCR (deprecated) #
POST /frames/{frame_id}/ocr Run frame OCR (deprecated) #
GET /frames/{frame_id}/context Get frame context #
GET /frames/{frame_id}/metadata Get frame metadata #
GET /frames/next-valid Get next valid frame #
GET /frames/{frame_id}/elements Get frame UI elements #

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/screenpipe-frames-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

screenpipe-frames-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Screenpipe Activity Frames API
  version: 1.0.0
  description: 'Screenpipe captures everything you see, say, and hear on your computer. Use this API to search through captured content, manage recordings, and build AI-powered automations on top of your screen data.


    The server runs locally at `http://localhost:3030` by default.'
servers:
- url: http://localhost:3030
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Frames
  description: Access captured screenshots and their extracted text
paths:
  /frames/{frame_id}:
    get:
      operationId: routes_frames_get_frame_data
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema: {}
      tags:
      - Frames
      summary: Get frame by ID
      description: Returns a captured screenshot frame with optional base64 image data.
  /frames/{frame_id}/text:
    get:
      description: 'Get frame text positions with bounding boxes for a specific frame.

        Uses accessibility tree node bounds when available, and OCR fallback positions for visual-only or legacy frames.

        Both OCR and accessibility bounds are normalized to 0-1 relative to the

        monitor (full-screen capture), so they align correctly with the screenshot.'
      operationId: routes_frames_get_frame_text_data
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      - name: query
        schema:
          type:
          - string
          - 'null'
        in: query
        style: form
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrameTextResponse'
      tags:
      - Frames
      summary: Get frame text and bounds
    post:
      description: 'Run on-demand OCR on a frame that has no stored bounding boxes.

        Loads the snapshot JPEG, runs Apple Vision OCR, stores the result,

        and returns the text positions. Subsequent GET requests will hit the

        cached DB row. If OCR data already exists, returns it without re-running.'
      operationId: routes_frames_run_frame_ocr
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrameTextResponse'
      tags:
      - Frames
      summary: Run OCR on frame
  /frames/{frame_id}/ocr:
    get:
      description: 'Get frame text positions with bounding boxes for a specific frame.

        Uses accessibility tree node bounds when available, and OCR fallback positions for visual-only or legacy frames.

        Both OCR and accessibility bounds are normalized to 0-1 relative to the

        monitor (full-screen capture), so they align correctly with the screenshot.'
      operationId: routes_frames_get_frame_text_data
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      - name: query
        schema:
          type:
          - string
          - 'null'
        in: query
        style: form
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrameTextResponse'
      tags:
      - Frames
      summary: Get frame OCR (deprecated)
    post:
      description: 'Run on-demand OCR on a frame that has no stored bounding boxes.

        Loads the snapshot JPEG, runs Apple Vision OCR, stores the result,

        and returns the text positions. Subsequent GET requests will hit the

        cached DB row. If OCR data already exists, returns it without re-running.'
      operationId: routes_frames_run_frame_ocr
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrameTextResponse'
      tags:
      - Frames
      summary: Run frame OCR (deprecated)
  /frames/{frame_id}/context:
    get:
      description: 'Get frame context: accessibility text, tree nodes, and extracted URLs.

        Falls back to OCR data for legacy frames without accessibility data.'
      operationId: routes_frames_get_frame_context
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrameContextResponse'
      tags:
      - Frames
      summary: Get frame context
  /frames/{frame_id}/metadata:
    get:
      description: Get frame metadata (timestamp) for deep link navigation. screenpipe://frame/123 → resolve to timestamp.
      operationId: routes_frames_get_frame_metadata
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrameMetadataResponse'
      tags:
      - Frames
      summary: Get frame metadata
  /frames/next-valid:
    get:
      description: 'Find the next frame that has a valid video file on disk.

        This allows the frontend to skip directly to a valid frame instead of

        trying each frame one-by-one when frames fail to load.'
      operationId: routes_frames_get_next_valid_frame
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: query
        style: form
      - name: direction
        schema:
          type: string
        in: query
        style: form
      - name: limit
        schema:
          type: integer
        in: query
        style: form
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NextValidFrameResponse'
      tags:
      - Frames
      summary: Get next valid frame
  /frames/{frame_id}/elements:
    get:
      description: Get all elements for a specific frame (full element tree).
      operationId: routes_elements_get_frame_elements
      parameters:
      - name: frame_id
        schema:
          type: integer
        in: path
        required: true
        style: simple
      - name: source
        schema:
          type:
          - string
          - 'null'
        in: query
        style: form
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementsListResponse'
      tags:
      - Frames
      summary: Get frame UI elements
components:
  schemas:
    AccessibilityNode:
      description: A node from the accessibility tree
      type: object
      properties:
        role:
          type: string
        text:
          type: string
        depth:
          type: integer
        bounds:
          $ref: '#/components/schemas/AccessibilityNodeBounds'
        properties:
          type:
          - object
          - 'null'
      required:
      - role
      - text
      - depth
    ElementResponse:
      type: object
      properties:
        id:
          type: integer
        frame_id:
          type: integer
        source:
          type: string
        role:
          type: string
        text:
          type:
          - string
          - 'null'
        parent_id:
          type:
          - integer
          - 'null'
        depth:
          type: integer
        bounds:
          $ref: '#/components/schemas/BoundsResponse'
        confidence:
          type:
          - number
          - 'null'
        sort_order:
          type: integer
      required:
      - id
      - frame_id
      - source
      - role
      - text
      - parent_id
      - depth
      - bounds
      - confidence
      - sort_order
    FrameTextResponse:
      description: Response type for frame OCR data endpoint
      type: object
      properties:
        frame_id:
          type: integer
        text_positions:
          type: array
          items:
            $ref: '#/components/schemas/TextPosition'
      required:
      - frame_id
      - text_positions
    TextBounds:
      type: object
      properties:
        left:
          type: number
        top:
          type: number
        width:
          type: number
        height:
          type: number
      required:
      - left
      - top
      - width
      - height
    ElementsListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ElementResponse'
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
      required:
      - data
      - pagination
    PaginationResponse:
      type: object
      properties:
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      required:
      - limit
      - offset
      - total
    FrameContextResponse:
      description: Response type for frame context endpoint (accessibility-first, OCR fallback)
      type: object
      properties:
        frame_id:
          type: integer
        text:
          type:
          - string
          - 'null'
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/AccessibilityNode'
        urls:
          type: array
          items:
            type: string
        text_source:
          type: string
      required:
      - frame_id
      - text
      - nodes
      - urls
      - text_source
    TextPosition:
      type: object
      properties:
        text:
          type: string
        confidence:
          type: number
        bounds:
          $ref: '#/components/schemas/TextBounds'
      required:
      - text
      - confidence
      - bounds
    NextValidFrameResponse:
      description: Response for next valid frame endpoint
      type: object
      properties:
        frame_id:
          type: integer
        timestamp:
          type: string
          format: date-time
        skipped_count:
          type: integer
      required:
      - frame_id
      - timestamp
      - skipped_count
    BoundsResponse:
      type: object
      properties:
        left:
          type: number
        top:
          type: number
        width:
          type: number
        height:
          type: number
      required:
      - left
      - top
      - width
      - height
    AccessibilityNodeBounds:
      description: Bounding box for an accessibility node (0-1 normalized to monitor)
      type: object
      properties:
        left:
          type: number
        top:
          type: number
        width:
          type: number
        height:
          type: number
      required:
      - left
      - top
      - width
      - height
    FrameMetadataResponse:
      description: Response type for frame metadata (used by deep link navigation)
      type: object
      properties:
        frame_id:
          type: integer
        timestamp:
          type: string
          format: date-time
      required:
      - frame_id
      - timestamp