F
Firecrawl3mo ago
zulfi

extract schema

hello, I was playing around the extract endpoint of firecrawl in node (typescript). when i try to hit a url with the schema mentioned, it returns empty object, but when i remove the schema (even though the prompt mentions the same schema fields), it return them propelry in the result object. can someone tell me why? I am attaching the screenshot of the returned object when teh schema is not used, but returns empty object when schema is mentioned along the prompt. I am attaching the github gist here which will show both the versions in code https://gist.github.com/palodaman/f7c049661d88e6b2e1327ebe85511b63
Gist
firecrawl extract
firecrawl extract. GitHub Gist: instantly share code, notes, and snippets.
No description
2 Replies
zulfi
zulfiOP3mo ago
even the original example for node from their website does not return anything https://docs.firecrawl.dev/features/extract
Firecrawl Docs
Extract | Firecrawl
Extract structured data from pages using LLMs
micah.stairs
micah.stairs2mo ago
I'd recommend trying out JSON mode on endpoints like /scrape for more reliability: https://docs.firecrawl.dev/features/llm-extract.

Did you find this page helpful?