{"agent":{"expose":"direct","prompt":"Use Crawl4AI to get the title, price and availability of every book on books.toscrape.com."},"also":["structured data","json from a webpage","fields from a page","llm extraction"],"beta":false,"call":{"aliases":["POST /extract"],"method":"POST","path":"/tools/extract"},"categories":["web-pages"],"cost":{"cases":[{"price":"","when":"The page at 0.25 to 2 by its effort"},{"price":"","when":"Plus 1 credit per 5,000 model tokens"},{"price":"free","when":"Failed pages"}],"estimate":{"per_tokens":{"credits":1,"tokens":5000},"tiers":{"hard":2,"heavy":1,"instant":0.25,"light":0.5,"standard":0.5}},"rule":"the page at 0.25 to 2 by its effort · plus 1 credit per 5,000 model tokens · failed pages are free","text":"≈ 0.5 cr + tokens"},"description":"Give a URL (or your own text) and say what to take from it. The answer is typed rows, shaped by your schema when you give one.","docs":"/tools/extract","essential":true,"essential_order":2,"examples":[{"answer":{"body":{"request_id":"req_…","rows":[{"availability":"In stock","price":"£51.77","title":"A Light in the ..."},{"availability":"In stock","price":"£53.74","title":"Tipping the Velvet"}],"took_ms":1527,"tool":"extract","usage":{"credits":0.25}},"credits":0.25,"more":18,"rows":20,"took_ms":1527},"input":{"instruction":"title, price and availability of every book","url":"https://books.toscrape.com"},"label":"books.toscrape.com"},{"input":{"instruction":"titles and points as typed JSON","url":"https://news.ycombinator.com"},"label":"news.ycombinator.com"}],"id":"extract","input_schema":{"additionalProperties":true,"properties":{"content":{"description":"Your own text, Markdown or HTML, instead of a URL. Give url or content.","type":"string"},"example":{"description":"A sample of the shape you want (structure, not values).","type":"object"},"instruction":{"description":"What to take from the page, in plain words.","type":"string"},"schema":{"description":"A JSON schema each row must match: typed, predictable output.","type":"object"},"url":{"description":"The page to read; we fetch it for you. Give url or content.","type":"string"}},"required":[],"type":"object"},"inputs":[{"example":"https://books.toscrape.com","help":"The page to read; we fetch it for you. Give url or content.","name":"url","type":"string"},{"example":"title, price and availability of every book","help":"What to take from the page, in plain words.","name":"instruction","type":"string"},{"advanced":true,"help":"A JSON schema each row must match: typed, predictable output.","name":"schema","type":"object"},{"advanced":true,"help":"A sample of the shape you want (structure, not values).","name":"example","type":"object"},{"advanced":true,"help":"Your own text, Markdown or HTML, instead of a URL. Give url or content.","name":"content","type":"string"}],"kind":"pages","name":{"lead":"Extract","rest":"rows from a page"},"output":{"fields":[{"meaning":"The items, one row each, in the shape you asked for","name":"rows","type":"object[]"},{"meaning":"Model tokens used; missing when the rows came from our cache","name":"data.usage.llm_tokens","type":"integer"},{"meaning":"Time we took, in milliseconds","name":"data.ms","type":"integer"}],"row_is":"one item you asked for","view":"rows"},"related":[{"id":"site","why":"Every page of a site as Markdown, as one job"},{"id":"search","why":"Web results, with the pages already read when you ask"},{"id":"serp","why":"Rank, title, URL and snippet of Google's page, by country"}],"source":"any","status":"verified","summary":"Say what you want in plain words, get typed rows","synonyms":["structured data","json from page","llm extraction","parse a page","table from page","json from a webpage","fields from a page","ai extraction","schema","parse a page into rows","table from a page","scrape with a prompt","typed data","webpage to json"],"test":{"expect":{"min_rows":1},"input":{"instruction":"title and price of every book","url":"https://books.toscrape.com"}},"typical":"2.5 s","version":1,"visibility":"public"}