Extract Markdown and structured JSON with Firecrawl

Try Firecrawl’s Scrape endpoint on a single page and compare Markdown with a targeted JSON result.

Updated

What you will create

Two representations of one authorized page: readable Markdown and checked JSON fields. The goal is to verify that the resulting structure preserves facts, including missing information.

Before you start

Choose one public page you have permission to process, ideally your own demonstration page. Check credits and the cost of the selected formats. Do not use private pages, token-bearing links or customer data. Do not bypass access restrictions. Keep the original page open for comparison.

Step-by-step

  1. In the Firecrawl Playground, use Scrape for a single URL rather than crawling the site.
  2. Request Markdown. After an authorized run, compare the title, main paragraph and numbers with the original page. Populated output is not necessarily the intended page: also check its URL and any errors.
  3. If menus dominate the text, inspect the main-content option. Compare again: removing noise can also remove useful information located elsewhere.
  4. For JSON, define a few fields and a precise extraction instruction, or a small schema if the available interface supports it. Start with title and duration; explicitly handle a missing price.
  5. Ask it not to invent missing values. Repeat only this URL if needed, after checking cost. Compare every field with its source passage before reusing the result.
  6. Keep the URL, check date and a list of discrepancies. Do not send the JSON straight to publishing or a production database.

Example to adapt

Your fictional page says: “Paper workshop. Duration: 45 minutes. The price will be announced later.” Request three fields: title, duration_minutes and price. Instruction: “Extract only information present. The title is text and duration is a number of minutes. If no amount is given, price must be null, never zero.”

Expected result for this example: title “Paper workshop”, duration 45 and price null. Here null represents an absent amount, not free admission. If using a schema, allow null for that field; requiring a number would contradict the exercise.

Check your result

  • Does the retrieved page match the intended URL and content?
  • Does duration retain the correct unit and type?
  • Does a missing amount remain absent instead of becoming zero?
  • Have menus or recommendations contaminated the fields?
  • Are values supported by the content, rather than merely valid JSON?

Common problems

Valid JSON can contain a factual error. If text is incomplete, inspect the Markdown capture and page version before making the schema more complex. A site restriction is not solved by widening scope. If you later switch to the v2 API, the schema belongs inside the JSON format object; do not copy the old v1 jsonOptions parameter.

Next steps

Visit the Firecrawl overview. Then try a second authorized page with an actual price: your processing should distinguish that value from the unknown case without silently changing field meanings.