{
  "x402Version": 2,
  "id": 35795,
  "slug": "35795",
  "resource": "https://tanod.dev/v1/pdf/ocr",
  "description": "pdfpeek (Tanod) PDF OCR: make a scanned PDF searchable, a text layer on up to 5 pages, with the text. Use when a scanned PDF has no text layer and needs OCR so its text can be searched or read. Add output=url for a 24 h link.",
  "type": "http",
  "serviceName": "Tanod pdfpeek",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:56",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
      "amount": "10000000000000000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "upto",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/pdf/ocr",
        "properties": {
          "active_content_removed": {
            "type": "object"
          },
          "dpi": {
            "type": "integer"
          },
          "file": {
            "type": "object"
          },
          "file_count": {
            "type": "integer"
          },
          "files": {
            "type": "array"
          },
          "input_bytes": {
            "type": "integer"
          },
          "input_pages": {
            "type": "integer"
          },
          "lang": {
            "type": "string"
          },
          "ocr_pages": {
            "type": "array"
          },
          "operation": {
            "type": "string"
          },
          "output_bytes": {
            "type": "integer"
          },
          "skipped_has_text": {
            "type": "array"
          },
          "text": {
            "type": "string"
          },
          "text_truncated": {
            "type": "boolean"
          },
          "untrusted_content": {
            "type": "boolean"
          }
        },
        "required": [
          "operation",
          "output_bytes",
          "untrusted_content",
          "file"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "pages": "1",
            "skip_text": false,
            "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "active_content_removed": {},
            "dpi": 200,
            "file": {
              "bytes": 15472,
              "content_type": "application/pdf",
              "data_base64": "JVBERi0xLjQKJb/3... (trimmed: 20,632 base64 characters in the reply)",
              "name": "searchable.pdf",
              "pages": 1
            },
            "input_bytes": 13264,
            "input_pages": 1,
            "lang": "eng",
            "ocr_pages": [
              1
            ],
            "operation": "ocr",
            "output_bytes": 15472,
            "skipped_has_text": [],
            "text": "Dummy PDF file",
            "text_truncated": false,
            "untrusted_content": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "dpi": {
                    "default": 200,
                    "description": "100-300 (default 200); at most 200 for more than 5 pages.",
                    "maximum": 300,
                    "minimum": 100,
                    "type": "integer"
                  },
                  "lang": {
                    "default": "eng",
                    "description": "Installed tesseract languages only, '+'-joined (eng today).",
                    "maxLength": 50,
                    "minLength": 3,
                    "pattern": "^[a-z][a-z_]{1,15}(\\+[a-z][a-z_]{1,15}){0,2}$",
                    "type": "string"
                  },
                  "output": {
                    "default": "base64",
                    "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window.",
                    "enum": [
                      "base64",
                      "url"
                    ],
                    "type": "string"
                  },
                  "pages": {
                    "description": "Pages to OCR, at most 10, each part N, N-M, -M or last (no open N- ranges), e.g. 1-3,7. At most 5 pages is the lower price.",
                    "maxLength": 200,
                    "minLength": 1,
                    "pattern": "^[0-9a-zA-Z ,\\-]+$",
                    "type": "string"
                  },
                  "pdf_base64": {
                    "anyOf": [
                      {
                        "maxLength": 13398872,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
                  },
                  "skip_text": {
                    "default": true,
                    "description": "Leave pages that already have text alone.",
                    "type": "boolean"
                  },
                  "url": {
                    "anyOf": [
                      {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
                  }
                },
                "required": [
                  "pages"
                ],
                "type": "object"
              },
              "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": {
                "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/pdf/ocr",
                "properties": {
                  "active_content_removed": {
                    "type": "object"
                  },
                  "dpi": {
                    "type": "integer"
                  },
                  "file": {
                    "type": "object"
                  },
                  "file_count": {
                    "type": "integer"
                  },
                  "files": {
                    "type": "array"
                  },
                  "input_bytes": {
                    "type": "integer"
                  },
                  "input_pages": {
                    "type": "integer"
                  },
                  "lang": {
                    "type": "string"
                  },
                  "ocr_pages": {
                    "type": "array"
                  },
                  "operation": {
                    "type": "string"
                  },
                  "output_bytes": {
                    "type": "integer"
                  },
                  "skipped_has_text": {
                    "type": "array"
                  },
                  "text": {
                    "type": "string"
                  },
                  "text_truncated": {
                    "type": "boolean"
                  },
                  "untrusted_content": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "operation",
                  "output_bytes",
                  "untrusted_content",
                  "file"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_h7pxv14u"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "erc20ApprovalGasSponsoring": {
      "info": {
        "description": "The facilitator accepts a raw signed approval transaction and will sponsor the gas fees.",
        "version": "1"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "amount": {
            "description": "Approval amount (uint256).",
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "asset": {
            "description": "The ERC-20 token contract address to approve.",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "from": {
            "description": "The address of the sender.",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "signedTransaction": {
            "description": "RLP-encoded signed transaction calling ERC20.approve().",
            "pattern": "^0x[a-fA-F0-9]+$",
            "type": "string"
          },
          "spender": {
            "description": "The address of the spender (Canonical Permit2).",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "version": {
            "description": "Schema version identifier.",
            "pattern": "^[0-9]+(\\.[0-9]+)*$",
            "type": "string"
          }
        },
        "required": [
          "from",
          "asset",
          "spender",
          "amount",
          "signedTransaction",
          "version"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "pdfpeek",
    "pdf",
    "ocr",
    "pdf-tools",
    "documents",
    "bazaar",
    "builder-code",
    "erc20ApprovalGasSponsoring",
    "payment-identifier"
  ],
  "sourceHost": "tanod.dev",
  "lastUpdated": "2026-10-13T20:27:29.387Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T20:27:28.678Z"
  },
  "metadata": {
    "serviceName": "Tanod pdfpeek",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "pages": "1",
              "skip_text": false,
              "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "active_content_removed": {},
              "dpi": 200,
              "file": {
                "bytes": 15472,
                "content_type": "application/pdf",
                "data_base64": "JVBERi0xLjQKJb/3... (trimmed: 20,632 base64 characters in the reply)",
                "name": "searchable.pdf",
                "pages": 1
              },
              "input_bytes": 13264,
              "input_pages": 1,
              "lang": "eng",
              "ocr_pages": [
                1
              ],
              "operation": "ocr",
              "output_bytes": 15472,
              "skipped_has_text": [],
              "text": "Dummy PDF file",
              "text_truncated": false,
              "untrusted_content": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "dpi": {
                      "default": 200,
                      "description": "100-300 (default 200); at most 200 for more than 5 pages.",
                      "maximum": 300,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "lang": {
                      "default": "eng",
                      "description": "Installed tesseract languages only, '+'-joined (eng today).",
                      "maxLength": 50,
                      "minLength": 3,
                      "pattern": "^[a-z][a-z_]{1,15}(\\+[a-z][a-z_]{1,15}){0,2}$",
                      "type": "string"
                    },
                    "output": {
                      "default": "base64",
                      "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window.",
                      "enum": [
                        "base64",
                        "url"
                      ],
                      "type": "string"
                    },
                    "pages": {
                      "description": "Pages to OCR, at most 10, each part N, N-M, -M or last (no open N- ranges), e.g. 1-3,7. At most 5 pages is the lower price.",
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^[0-9a-zA-Z ,\\-]+$",
                      "type": "string"
                    },
                    "pdf_base64": {
                      "anyOf": [
                        {
                          "maxLength": 13398872,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
                    },
                    "skip_text": {
                      "default": true,
                      "description": "Leave pages that already have text alone.",
                      "type": "boolean"
                    },
                    "url": {
                      "anyOf": [
                        {
                          "maxLength": 2048,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
                    }
                  },
                  "required": [
                    "pages"
                  ],
                  "type": "object"
                },
                "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": {
                  "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/pdf/ocr",
                  "properties": {
                    "active_content_removed": {
                      "type": "object"
                    },
                    "dpi": {
                      "type": "integer"
                    },
                    "file": {
                      "type": "object"
                    },
                    "file_count": {
                      "type": "integer"
                    },
                    "files": {
                      "type": "array"
                    },
                    "input_bytes": {
                      "type": "integer"
                    },
                    "input_pages": {
                      "type": "integer"
                    },
                    "lang": {
                      "type": "string"
                    },
                    "ocr_pages": {
                      "type": "array"
                    },
                    "operation": {
                      "type": "string"
                    },
                    "output_bytes": {
                      "type": "integer"
                    },
                    "skipped_has_text": {
                      "type": "array"
                    },
                    "text": {
                      "type": "string"
                    },
                    "text_truncated": {
                      "type": "boolean"
                    },
                    "untrusted_content": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "operation",
                    "output_bytes",
                    "untrusted_content",
                    "file"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_h7pxv14u"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "erc20ApprovalGasSponsoring": {
        "info": {
          "description": "The facilitator accepts a raw signed approval transaction and will sponsor the gas fees.",
          "version": "1"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "amount": {
              "description": "Approval amount (uint256).",
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "asset": {
              "description": "The ERC-20 token contract address to approve.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "from": {
              "description": "The address of the sender.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "signedTransaction": {
              "description": "RLP-encoded signed transaction calling ERC20.approve().",
              "pattern": "^0x[a-fA-F0-9]+$",
              "type": "string"
            },
            "spender": {
              "description": "The address of the spender (Canonical Permit2).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "version": {
              "description": "Schema version identifier.",
              "pattern": "^[0-9]+(\\.[0-9]+)*$",
              "type": "string"
            }
          },
          "required": [
            "from",
            "asset",
            "spender",
            "amount",
            "signedTransaction",
            "version"
          ],
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tanod.dev",
    "manifest_name": "tanod.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": {
      "active_content_removed": {},
      "dpi": 0,
      "file": {},
      "file_count": 0,
      "files": [
        "value"
      ],
      "input_bytes": 0,
      "input_pages": 0,
      "lang": "string",
      "ocr_pages": [
        "value"
      ],
      "operation": "string",
      "output_bytes": 0,
      "skipped_has_text": [
        "value"
      ],
      "text": "string",
      "text_truncated": true,
      "untrusted_content": true
    },
    "type": "string"
  }
}