{
  "x402Version": 2,
  "id": 35572,
  "slug": "35572",
  "resource": "https://api.sitecheck-api.workers.dev/api/pdf",
  "description": "PDF to text: send an https link or base64 (up to 15 MB) and get the text page by page plus title, author, page count and dates. Text PDFs only: a scanned PDF without a text layer answers 422 and is not charged.",
  "type": "http",
  "serviceName": "SiteCheck",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "J8vnmBx4pS1X7UUBTfz1yWBKiw69Dj2yRGRHDaXBRdhR",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0xa4751fCAa83c9669cfe507bb6807507729839be3",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "3000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "maxChars": 20000,
            "url": "https://bitcoin.org/bitcoin.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "author": null,
            "byPage": [
              {
                "page": 1,
                "text": "Bitcoin: A Peer-to-Peer Electronic Cash System..."
              }
            ],
            "chars": 21220,
            "createdAt": "2009-03-24T11:33:15Z",
            "creator": "Writer",
            "modifiedAt": null,
            "note": "Text layer only, no OCR.",
            "pages": 9,
            "pagesReturned": 9,
            "producer": "OpenOffice.org 2.4",
            "subject": null,
            "text": "Bitcoin: A Peer-to-Peer Electronic Cash System\nSatoshi Nakamoto...",
            "title": null,
            "truncated": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "maxChars": {
                    "description": "Cut the text at this many characters, 1000-500000, default 100000",
                    "type": "integer"
                  },
                  "pdf_base64": {
                    "description": "Alternative: the PDF as base64",
                    "type": "string"
                  },
                  "url": {
                    "description": "http(s) link to a PDF",
                    "type": "string"
                  }
                }
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "pdf",
    "pdf to text",
    "document",
    "extraction",
    "rag",
    "bazaar"
  ],
  "sourceHost": "api.sitecheck-api.workers.dev",
  "lastUpdated": "2026-10-11T17:35:59.332Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-11T17:35:59.2Z"
  },
  "metadata": {
    "serviceName": "SiteCheck",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "maxChars": 20000,
              "url": "https://bitcoin.org/bitcoin.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "author": null,
              "byPage": [
                {
                  "page": 1,
                  "text": "Bitcoin: A Peer-to-Peer Electronic Cash System..."
                }
              ],
              "chars": 21220,
              "createdAt": "2009-03-24T11:33:15Z",
              "creator": "Writer",
              "modifiedAt": null,
              "note": "Text layer only, no OCR.",
              "pages": 9,
              "pagesReturned": 9,
              "producer": "OpenOffice.org 2.4",
              "subject": null,
              "text": "Bitcoin: A Peer-to-Peer Electronic Cash System\nSatoshi Nakamoto...",
              "title": null,
              "truncated": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "maxChars": {
                      "description": "Cut the text at this many characters, 1000-500000, default 100000",
                      "type": "integer"
                    },
                    "pdf_base64": {
                      "description": "Alternative: the PDF as base64",
                      "type": "string"
                    },
                    "url": {
                      "description": "http(s) link to a PDF",
                      "type": "string"
                    }
                  }
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.sitecheck-api.workers.dev",
    "manifest_name": "api.sitecheck-api.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}