{"slug":"ocr","domain":"documents","title":"The words in an image or a PDF","summary":"Optical character recognition over a url. The whole document, or each line with where it sits.","help":"ocr: read an image or PDF at a url, as JSON.\n\nWHICH ONE\n  `text` returns the document. `lines` returns each line WITH its position on\n  the page, which is what you want when position carries meaning: a form, a\n  table, a stamped invoice.\n\nTAKES A URL\n  Not a local file. Point it at something reachable; `browser` can put a page\n  somewhere reachable first if it is not already.\n\nStudies:\n  text  \u003curl\u003e\n      the text of an image or PDF at a url\n  lines \u003curl\u003e\n      the text as lines with their positions on the page\n\nJSON to stdout, so it composes: pipe to `jq` to pick a field, or `\u003e /tmp/…` to keep it.\nRun a study with no arguments — `ocr text` — to see what it takes.\n","example_command":"ocr lines https://example.com/invoice.pdf","example_output":"","cost_class":"upstream-fetch","tier":"metered","billing_items":["ocr"],"price_per_1k_calls":9,"price_is_from":false,"status":"available","commands":["ocr"],"studies":[{"call":"text","about":"the text of an image or PDF at a url","args":[{"name":"url","positional":true,"list":false,"hint":""},{"name":"langs","positional":false,"list":false,"hint":"comma-separated language codes"},{"name":"output_format","positional":false,"list":false,"hint":"markdown | json | html"}]},{"call":"lines","about":"the text as lines with their positions on the page","args":[{"name":"url","positional":true,"list":false,"hint":""},{"name":"langs","positional":false,"list":false,"hint":"comma-separated language codes"}]}],"default_enabled":false,"first_seen":"2026-09-09T04:30:35.160951Z","enabled":false}
