structured-extraction

structured-extraction is a skill for Claude Code, Codex from firecrawl/web-agent. It costs 32 tokens per session (675 once invoked), scanned A, original, MIT.

A website data-extraction skill that collects information into a specified structured format, including nested data and multiple pages.

In plain words
What is it for?
Use it to extract lists or records from websites, follow pagination, handle complex fields, and validate the resulting structure.
Why use it?
It turns information spread across web pages into consistently shaped data that can be checked against a schema.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to extract lists or records from websites, follow pagination, handle complex fields, and validate the resulting structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firecrawl/web-agent/structured-extraction
About the project

Firecrawl Web Agent is an open-source foundation for building AI agents that research the web with structured results. Developers can use its templates, agent core, web tools, and SDK to create applications that plan research tasks, interact with websites, and combine observations into answers. The catalogue entries are skills for this web-research agent.

firecrawl/web-agent · 1,273 stars · on GitHub · firecrawl.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add firecrawl/web-agent --skill structured-extraction
Clone the repo
git clone --depth 1 https://github.com/firecrawl/web-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for structured-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/firecrawl/web-agent/structured-extraction/github.svg)](https://agentmods.dev/skills/firecrawl/web-agent/structured-extraction)
Your own site
<a href="https://agentmods.dev/skills/firecrawl/web-agent/structured-extraction"><img src="https://agentmods.dev/badge/skills/firecrawl/web-agent/structured-extraction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for structured-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/firecrawl/web-agent/structured-extraction"><img src="https://agentmods.dev/badge/skills/firecrawl/web-agent/structured-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00675
Opus 5.5 $0.00013 $0.00270
Sonnet 5.5 $0.00006 $0.00135
Haiku 4.5 $0.00003 $0.00068

Measured 3mo ago against content hash faf83e9fafe3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

structured-extraction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent-core/src/skills/definitions/structured-extraction/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Structured Extraction

Use this skill when extracting data that must match a specific JSON schema.

Strategy by task type

Simple query (single fact or small object)

  1. Search for relevant results.
  2. Scrape promising results with a targeted query.
  3. Build the result object and call formatOutput immediately.

Single target research (one entity, multiple fields)

  1. Search for relevant URLs.
  2. Scrape to extract data — stay in the orchestrator unless you have many independent sources (roughly 5+) where parallel workers clearly help.
  3. Compile findings and call formatOutput.

List of items (array in schema)

  1. Search/scrape to get the list of items.
  2. Are all requested details included in the list?
    • Yes: Build the result and call formatOutput.
    • No: If there are many items (roughly 5+), use spawnAgents so each worker gets the item and fields; otherwise fetch details sequentially in the orchestrator.
  3. Aggregate all results and call formatOutput.

All items from a website

  1. Check sitemaps (sitemap.xml, robots.txt) for an easy route to all pages.
  2. Scrape the entry page. Determine: pagination? Categories? Subcategories?
  3. For pagination, use interact to click through every page.
  4. For categories, scrape each category — use spawnAgents only when many independent categories warrant parallel fan-out.
  5. Aggregate and call formatOutput.

Scraping for structured data

  • PREFER scrape with a targeted query over raw page dumps. It keeps context lean.
  • When scraping lists, ALWAYS ask about pagination in your query: "How many total results? Is there a next page?"
  • For many independent URLs (roughly 5+), spawnAgents can help — each worker gets specific URLs and fields. Fewer URLs: handle in the orchestrator.
  • If a scrape returns a 404 or bot-check, do NOT retry. Move on to alternative sources.

Building the output

  • Match the schema EXACTLY. Every required field must be present.
  • Use null for missing fields — never omit keys.
  • Arrays must be arrays even for single items.
  • Numbers must be actual numbers, not strings (10.99 not "$10.99").
  • Use bashExec with jq to merge data from multiple sources:
    jq -s '.[0] * .[1]' /data/part1.json /data/part2.json > /data/merged.json
    

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 64 lines · 32 tokens per session scan A faf83e9fafe3

Subscribe to this mod's changes

structured-extraction is a skill published in the GitHub repository firecrawl/web-agent (1,273 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 675 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

structured-extraction compared with skills from other repositories

structured-extraction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
structured-extractionfirecrawl/web-agentSkill1.3k1mo agoMITA32Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51ktodayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20ktodayMITA35Claude Code
foundry-config-setupmicrosoft/agent-frameworkSkill15k13d agoMITA65Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code