Shotlane Extract API

The Extract API from Shotlane — 1 operation(s) for extract.

GitHub OpenAPI

Operations 2

GET /v1/extract Page content as Markdown (JSON response) #
POST /v1/extract Page content as Markdown (JSON response) #

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/shotlane-dev:shotlane-dev-extract-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

shotlane-dev-extract-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shotlane Extract API
  version: 1.0.0
  description: Website screenshot and HTML-to-PDF API. Prepaid credits that never expire.
servers:
- url: https://shotlane.dev
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Extract
paths:
  /v1/extract:
    get:
      summary: Page content as Markdown (JSON response)
      operationId: extract
      parameters:
      - name: url
        in: query
        schema:
          type: string
        description: Page to render (https:// assumed).
        example: https://example.com
      - name: html
        in: query
        schema:
          type: string
        description: Raw HTML to render instead of url (prefer POST).
      - name: markdown
        in: query
        schema:
          type: string
        description: Markdown to render as a styled document instead of url/html (prefer POST).
      - name: proxy
        in: query
        schema:
          type: string
        description: Your own proxy, e.g. http://user:pass@host:port (http, https, socks5); or 'residential' (our residential IPs, 10 paid credits a render) or 'auto' (direct first, residential only after a bot wall), on /v1/screenshot, /v1/pdf, /v1/markdown and /v1/extract.
      - name: proxy_country
        in: query
        schema:
          type: string
        description: 'With proxy=residential or auto: the exit''s country, e.g. de.'
      - name: width
        in: query
        schema:
          type: integer
          default: 1280
          minimum: 240
          maximum: 3840
        description: Viewport width.
      - name: height
        in: query
        schema:
          type: integer
          default: 800
          minimum: 240
          maximum: 2160
        description: Viewport height.
      - name: full_page
        in: query
        schema:
          type: boolean
          default: false
        description: Capture the full scrollable page.
      - name: scale
        in: query
        schema:
          type: number
          default: 1
          minimum: 1
          maximum: 5
        description: Device scale factor (alias device_scale_factor).
      - name: selector
        in: query
        schema:
          type: string
        description: Capture only the first element matching this CSS selector.
      - name: dark_mode
        in: query
        schema:
          type: boolean
          default: false
        description: 'Emulate prefers-color-scheme: dark.'
      - name: hide_cookie_banners
        in: query
        schema:
          type: boolean
          default: false
        description: Hide cookie consent banners.
      - name: block_ads
        in: query
        schema:
          type: boolean
          default: false
        description: Block ad and tracker requests.
      - name: delay
        in: query
        schema:
          type: integer
          default: 0
          maximum: 30000
        description: Extra wait after load (ms).
      - name: wait_until
        in: query
        schema:
          type: string
        description: 'Navigation wait: load, domcontentloaded, networkidle (networkidle0), networkidle2; several comma-separated or repeated.'
      - name: cache_ttl
        in: query
        schema:
          type: integer
          default: 0
          maximum: 2592000
        description: Cache seconds; cache hits are free. X-Shotlane-Cache-Url links the cached file.
      - name: cache
        in: query
        schema:
          type: boolean
          default: false
        description: Cache for 4 h unless cache_ttl is set.
      - name: cache_key
        in: query
        schema:
          type: string
        description: 'Mixed into the cache key: same parameters, different key, separate cache entry.'
      - name: response_type
        in: query
        schema:
          type: string
          enum:
          - by_format
          - json
          - empty
          default: by_format
        description: 'json: hosted 24 h link + details instead of the file; empty: 204 with headers only.'
      - name: attachment_name
        in: query
        schema:
          type: string
        description: 'Download file name (Content-Disposition: attachment).'
      - name: external_identifier
        in: query
        schema:
          type: string
        description: Your own id, echoed in JSON responses and bulk webhooks.
      - name: storage_bucket
        in: query
        schema:
          type: string
        description: Upload the result to this S3-compatible bucket (returns JSON).
      - name: storage_key
        in: query
        schema:
          type: string
        description: Object key/path in the bucket.
      - name: storage_endpoint
        in: query
        schema:
          type: string
        description: https endpoint for non-AWS storage (R2, B2, MinIO).
      - name: storage_region
        in: query
        schema:
          type: string
        description: Bucket region (default us-east-1, or auto with an endpoint).
      - name: storage_access_key_id
        in: query
        schema:
          type: string
        description: Access key for the bucket.
      - name: storage_secret_access_key
        in: query
        schema:
          type: string
        description: Secret key for the bucket.
      - name: storage_acl
        in: query
        schema:
          type: string
          enum:
          - private
          - public-read
        description: Object ACL.
      - name: device
        in: query
        schema:
          type: string
        description: 'Device preset: desktop, desktop_hd, laptop, ipad, iphone, iphone_se, pixel, galaxy, iphone_duo, iphone_duo_cover or any id from GET /v1/devices (e.g. iphone_15_pro_max).'
      - name: viewport_mobile
        in: query
        schema:
          type: boolean
        description: 'Mobile emulation (meta viewport, mobile UA); default: a device''s own, else on at 480px and narrower.'
      - name: viewport_has_touch
        in: query
        schema:
          type: boolean
        description: 'Touch events; default: a device''s own, else on at 480px and narrower.'
      - name: viewport_landscape
        in: query
        schema:
          type: boolean
          default: false
        description: Swap the device preset's width and height.
      - name: css
        in: query
        schema:
          type: string
        description: CSS to inject.
      - name: js
        in: query
        schema:
          type: string
        description: JavaScript to run before capture.
      - name: hide_selectors
        in: query
        schema:
          type: string
        description: Comma-separated selectors to hide.
      - name: click
        in: query
        schema:
          type: string
        description: Selector to click before capture (the first element it matches).
      - name: wait_for_selector
        in: query
        schema:
          type: string
        description: Selector(s) to wait for (comma-separated or repeated).
      - name: wait_for_selector_algorithm
        in: query
        schema:
          type: string
          enum:
          - at_least_one
          - at_least_by_count
          default: at_least_one
        description: 'With several selectors: any one, or all of them.'
      - name: scripts_wait_until
        in: query
        schema:
          type: string
        description: If your js navigates, wait for these load states on the new page.
      - name: bypass_csp
        in: query
        schema:
          type: boolean
          default: false
        description: Ignore the page's Content-Security-Policy, for js that adds inline scripts or styles, uses eval or loads from hosts the policy blocks (css and hide_selectors work without it).
      - name: authorization
        in: query
        schema:
          type: string
        description: Authorization header value, sent to the target host only.
      - name: proxy_bypass_hosts
        in: query
        schema:
          type: string
        description: Comma-separated hosts that skip your proxy.
      - name: reduce_motion
        in: query
        schema:
          type: boolean
          default: false
        description: Finish CSS animations and transitions, pause videos.
      - name: headers
        in: query
        schema:
          type: string
        description: JSON object of extra headers (target host only).
      - name: cookies
        in: query
        schema:
          type: string
        description: Cookies for the target URL, 'a=1; b=2'.
      - name: timezone
        in: query
        schema:
          type: string
        description: IANA time zone, e.g. Europe/Berlin.
      - name: locale
        in: query
        schema:
          type: string
        description: Browser locale and Accept-Language, e.g. de-DE.
      - name: latitude
        in: query
        schema:
          type: number
        description: Geolocation latitude (with longitude).
      - name: longitude
        in: query
        schema:
          type: number
        description: Geolocation longitude (with latitude).
      - name: reduced_motion
        in: query
        schema:
          type: boolean
          default: true
        description: 'Render as for a visitor with prefers-reduced-motion: reduce, so animations don''t hold up the capture (off for /v1/animate). false shows the page''s animations.'
      - name: media_type
        in: query
        schema:
          type: string
          enum:
          - screen
          - print
        description: CSS media type.
      - name: disable_js
        in: query
        schema:
          type: boolean
          default: false
        description: Render without JavaScript.
      - name: hide_popups
        in: query
        schema:
          type: boolean
          default: false
        description: Close or hide sign-in/newsletter/app modals.
      - name: block_trackers
        in: query
        schema:
          type: boolean
          default: false
        description: Block analytics and tracking requests.
      - name: block_chats
        in: query
        schema:
          type: boolean
          default: false
        description: Block chat widgets (Intercom, Drift, Crisp...).
      - name: block_requests
        in: query
        schema:
          type: string
        description: Comma-separated URL patterns to block (* wildcards).
      - name: block_resources
        in: query
        schema:
          type: string
        description: 'Comma-separated resource types to block: image, media, font, stylesheet, script, xhr, fetch, websocket, texttrack, eventsource, manifest, other.'
      - name: hover
        in: query
        schema:
          type: string
        description: Selector to hover before capture (the first element it matches).
      - name: scroll_into_view
        in: query
        schema:
          type: string
        description: Selector to scroll into view before capture (the first element it matches).
      - name: wait_to_leave
        in: query
        schema:
          type: string
        description: Selector that must disappear first (e.g. a spinner).
      - name: basic_auth
        in: query
        schema:
          type: string
        description: HTTP basic auth 'user:password' for the target origin.
      - name: timeout
        in: query
        schema:
          type: integer
          default: 25
          minimum: 5
          maximum: 60
        description: Navigation timeout in seconds.
      - name: fail_on_status
        in: query
        schema:
          type: boolean
          default: false
        description: Fail (not charged) if the page answers 4xx/5xx.
      - name: fail_if_content_contains
        in: query
        schema:
          type: string
        description: Fail (not charged) if the page text contains this (repeat for several).
      - name: fail_if_content_missing
        in: query
        schema:
          type: string
        description: Fail (not charged) if the page text lacks this (repeat for several).
      - name: fail_if_request_failed
        in: query
        schema:
          type: string
        description: URL patterns (* wildcards); fail (not charged) if a matching request fails or answers >= 400.
      - name: error_on_click_selector_not_found
        in: query
        schema:
          type: boolean
          default: true
        description: 'false: continue when ''click'' matches nothing.'
      - name: error_on_hover_selector_not_found
        in: query
        schema:
          type: boolean
          default: true
        description: 'false: continue when ''hover'' matches nothing.'
      - name: main_content
        in: query
        schema:
          type: boolean
          default: true
      - name: include_links
        in: query
        schema:
          type: boolean
          default: true
      - name: include_images
        in: query
        schema:
          type: boolean
          default: false
      - name: exclude_selectors
        in: query
        schema:
          type: string
        description: Comma-separated selectors removed before conversion.
      - name: max_chars
        in: query
        schema:
          type: integer
        description: Truncate the Markdown.
      - name: link_list
        in: query
        schema:
          type: boolean
          default: false
        description: Add links [{url, text}].
      - name: include_html
        in: query
        schema:
          type: boolean
          default: false
        description: Add the rendered HTML.
      - name: include_text
        in: query
        schema:
          type: boolean
          default: false
        description: Add plain text.
      - name: format
        in: query
        schema:
          type: string
          enum:
          - json
          - markdown
          default: json
      responses:
        '200':
          description: Extracted content
          content:
            application/json: {}
            text/markdown: {}
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Out of credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Page could not be rendered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Extract
    post:
      summary: Page content as Markdown (JSON response)
      operationId: extractPost
      parameters: []
      responses:
        '200':
          description: Extracted content
          content:
            application/json: {}
            text/markdown: {}
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Out of credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Page could not be rendered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: Page to render (https:// assumed).
                html:
                  type: string
                  description: Raw HTML to render instead of url (prefer POST).
                markdown:
                  type: string
                  description: Markdown to render as a styled document instead of url/html (prefer POST).
                proxy:
                  type: string
                  description: Your own proxy, e.g. http://user:pass@host:port (http, https, socks5); or 'residential' (our residential IPs, 10 paid credits a render) or 'auto' (direct first, residential only after a bot wall), on /v1/screenshot, /v1/pdf, /v1/markdown and /v1/extract.
                proxy_country:
                  type: string
                  description: 'With proxy=residential or auto: the exit''s country, e.g. de.'
                width:
                  type: integer
                  default: 1280
                  minimum: 240
                  maximum: 3840
                  description: Viewport width.
                height:
                  type: integer
                  default: 800
                  minimum: 240
                  maximum: 2160
                  description: Viewport height.
                full_page:
                  type: boolean
                  default: false
                  description: Capture the full scrollable page.
                scale:
                  type: number
                  default: 1
                  minimum: 1
                  maximum: 5
                  description: Device scale factor (alias device_scale_factor).
                selector:
                  type: string
                  description: Capture only the first element matching this CSS selector.
                dark_mode:
                  type: boolean
                  default: false
                  description: 'Emulate prefers-color-scheme: dark.'
                hide_cookie_banners:
                  type: boolean
                  default: false
                  description: Hide cookie consent banners.
                block_ads:
                  type: boolean
                  default: false
                  description: Block ad and tracker requests.
                delay:
                  type: integer
                  default: 0
                  maximum: 30000
                  description: Extra wait after load (ms).
                wait_until:
                  type: string
                  description: 'Navigation wait: load, domcontentloaded, networkidle (networkidle0), networkidle2; several comma-separated or repeated.'
                cache_ttl:
                  type: integer
                  default: 0
                  maximum: 2592000
                  description: Cache seconds; cache hits are free. X-Shotlane-Cache-Url links the cached file.
                cache:
                  type: boolean
                  default: false
                  description: Cache for 4 h unless cache_ttl is set.
                cache_key:
                  type: string
                  description: 'Mixed into the cache key: same parameters, different key, separate cache entry.'
                response_type:
                  type: string
                  enum:
                  - by_format
                  - json
                  - empty
                  default: by_format
                  description: 'json: hosted 24 h link + details instead of the file; empty: 204 with headers only.'
                attachment_name:
                  type: string
                  description: 'Download file name (Content-Disposition: attachment).'
                external_identifier:
                  type: string
                  description: Your own id, echoed in JSON responses and bulk webhooks.
                storage_bucket:
                  type: string
                  description: Upload the result to this S3-compatible bucket (returns JSON).
                storage_key:
                  type: string
                  description: Object key/path in the bucket.
                storage_endpoint:
                  type: string
                  description: https endpoint for non-AWS storage (R2, B2, MinIO).
                storage_region:
                  type: string
                  description: Bucket region (default us-east-1, or auto with an endpoint).
                storage_access_key_id:
                  type: string
                  description: Access key for the bucket.
                storage_secret_access_key:
                  type: string
                  description: Secret key for the bucket.
                storage_acl:
                  type: string
                  enum:
                  - private
                  - public-read
                  description: Object ACL.
                device:
                  type: string
                  description: 'Device preset: desktop, desktop_hd, laptop, ipad, iphone, iphone_se, pixel, galaxy, iphone_duo, iphone_duo_cover or any id from GET /v1/devices (e.g. iphone_15_pro_max).'
                viewport_mobile:
                  type: boolean
                  description: 'Mobile emulation (meta viewport, mobile UA); default: a device''s own, else on at 480px and narrower.'
                viewport_has_touch:
                  type: boolean
                  description: 'Touch events; default: a device''s own, else on at 480px and narrower.'
                viewport_landscape:
                  type: boolean
                  default: false
                  description: Swap the device preset's width and height.
                css:
                  type: string
                  description: CSS to inject.
                js:
                  type: string
                  description: JavaScript to run before capture.
                hide_selectors:
                  type: string
                  description: Comma-separated selectors to hide.
                click:
                  type: string
                  description: Selector to click before capture (the first element it matches).
                wait_for_selector:
                  type: string
                  description: Selector(s) to wait for (comma-separated or repeated).
                wait_for_selector_algorithm:
                  type: string
                  enum:
                  - at_least_one
                  - at_least_by_count
                  default: at_least_one
                  description: 'With several selectors: any one, or all of them.'
                scripts_wait_until:
                  type: string
                  description: If your js navigates, wait for these load states on the new page.
                bypass_csp:
                  type: boolean
                  default: false
                  description: Ignore the page's Content-Security-Policy, for js that adds inline scripts or styles, uses eval or loads from hosts the policy blocks (css and hide_selectors work without it).
                authorization:
                  type: string
                  description: Authorization header value, sent to the target host only.
                proxy_bypass_hosts:
                  type: string
                  description: Comma-separated hosts that skip your proxy.
                reduce_motion:
                  type: boolean
                  default: false
                  description: Finish CSS animations and transitions, pause videos.
                headers:
                  type: string
                  description: JSON object of extra headers (target host only).
                cookies:
                  type: string
                  description: Cookies for the target URL, 'a=1; b=2'.
                timezone:
                  type: string
                  description: IANA time zone, e.g. Europe/Berlin.
                locale:
                  type: string
                  description: Browser locale and Accept-Language, e.g. de-DE.
                latitude:
                  type: number
                  description: Geolocation latitude (with longitude).
                longitude:
                  type: number
                  description: Geolocation longitude (with latitude).
                reduced_motion:
                  type: boolean
                  default: true
                  description: 'Render as for a visitor with prefers-reduced-motion: reduce, so animations don''t hold up the capture (off for /v1/animate). false shows the page''s animations.'
                media_type:
                  type: string
                  enum:
                  - screen
                  - print
                  description: CSS media type.
                disable_js:
                  type: boolean
                  default: false
                  description: Render without JavaScript.
                hide_popups:
                  type: boolean
                  default: false
                  description: Close or hide sign-in/newsletter/app modals.
                block_trackers:
                  type: boolean
                  default: false
                  description: Block analytics and tracking requests.
                block_chats:
                  type: boolean
                  default: false
                  description: Block chat widgets (Intercom, Drift, Crisp...).
                block_requests:
                  type: string
                  description: Comma-separated URL patterns to block (* wildcards).
                block_resources:
                  type: string
                  description: 'Comma-separated resource types to block: image, media, font, stylesheet, script, xhr, fetch, websocket, texttrack, eventsource, manifest, other.'
                hover:
                  type: string
                  description: Selector to hover before capture (the first element it matches).
                scroll_into_view:
                  type: string
                  description: Selector to scroll into view before capture (the first element it matches).
                wait_to_leave:
                  type: string
                  description: Selector that must disappear first (e.g. a spinner).
                basic_auth:
                  type: string
                  description: HTTP basic auth 'user:password' for the target origin.
                timeout:
                  type: integer
                  default: 25
                  minimum: 5
                  maximum: 60
                  description: Navigation timeout in seconds.
                fail_on_status:
                  type: boolean
                  default: false
                  description: Fail (not charged) if the page answers 4xx/5xx.
                fail_if_content_contains:
                  type: string
                  description: Fail (not charged) if the page text contains this (repeat for several).
                fail_if_content_missing:
                  type: string
                  description: Fail (not charged) if the page text lacks this (repeat for several).
                fail_if_request_failed:
                  type: string
                  description: URL patterns (* wildcards); fail (not charged) if a matching request fails or answers >= 400.
                error_on_click_selector_not_found:
                  type: boolean
                  default: true
                  description: 'false: continue when ''click'' matches nothing.'
                error_on_hover_selector_not_found:
                  type: boolean
                  default: true
                  description: 'false: continue when ''hover'' matches nothing.'
                main_content:
                  type: boolean
                  default: true
                include_links:
                  type: boolean
                  default: true
                include_images:
                  type: boolean
                  default: false
                exclude_selectors:
                  type: string
                  description: Comma-separated selectors removed before conversion.
                max_chars:
                  type: integer
                  description: Truncate the Markdown.
                link_list:
                  type: boolean
                  default: false
                  description: Add links [{url, text}].
                include_html:
                  type: boolean
                  default: false
                  description: Add the rendered HTML.
                include_text:
                  type: boolean
                  default: false
                  description: Add plain text.
                format:
                  type: string
                  enum:
                  - json
                  - markdown
                  default: json
            example:
              url: https://example.com
      tags:
      - Extract
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        error_code:
          type: string
          enum:
          - invalid_parameter
          - host_not_resolved
          - private_address
          - unauthorized
          - insufficient_credits
          - signature_invalid
          - not_found
          - payload_too_large
          - selector_not_found
          - click_selector_not_found
          - hover_selector_not_found
          - wait_for_selector_timeout
          - content_contains_string
          - content_missing_string
          - request_failed
          - host_returned_error
          - navigation_failed
          - script_error
          - not_a_page
          - storage_upload_failed
          - timeout
          - pdf_too_large
          - mhtml_too_large
          - page_crashed
          - rate_limit
          - concurrency_limit
          - rate_limited
          - url_paused
          - render_failed
          - server_busy
          - site_busy
        documentation_url:
          type: string
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    ApiKeyQuery:
      type: apiKey
      in: query
      name: access_key