Firecrawl: Incorporating Web Scraping and Search into Agents' Web Data Skill

Introduction

When doing data analysis, competitive research, or RAG material preparation, Agents often need to “first get web page content, then summarize or store it”. Handwriting requests + parsing HTML can work, but search, full-site crawling, anti-crawling, and format cleaning will take up many conversation turns. Firecrawl itself is a Web data API designed for AI; on SkillHub, @user_b22a52ba/firecrawl organizes the invocation methods, endpoints, and example code into a SKILL.md that Agents can follow, allowing the model to call the API according to the same conventions in appropriate scenarios.

Below introduces the positioning, capabilities, and installation method of this Skill.

What This Is

Firecrawl Agent Skill (version 2.0.0, coordinate @user_b22a52ba/firecrawl) is a data-analysis type skill from community (community), with the description: Firecrawl Web data API skill, used for large-scale search, scraping, and interaction with the web, converting web pages into clean Markdown or structured data.

It is maintained on SkillHub by publisher user_b22a52ba; the page lists the author as xiayutian. The skill tag includes requires_api_key=true, meaning actual calls depend on Firecrawl’s API Key, rather than local keyless crawling.

Core Features

The Skill documentation organizes Firecrawl’s capabilities into REST interfaces corresponding to https://api.firecrawl.dev (authentication is Authorization: Bearer <API_KEY>):

Capability Endpoint Description
Scrape POST /v2/scrape Single page scraping, can output Markdown, HTML, screenshots, links, etc.
Search POST /v2/search Internet search, returns result list with summaries/content
Map POST /v2/map Lists scrapable URLs within a site (sitemap)
Crawl POST /v2/crawl Full-site asynchronous crawling, need to poll status with task ID
Monitor POST /v2/monitor Monitor web page or site changes

Additionally, the Skill explains that structured extraction can be done through the extract field of the Scrape request (natural language prompt, optional JSON Schema), sharing /v2/scrape with “single page scraping”.

Trigger scenarios are clearly described in the SKILL: when users mention Firecrawl, web scraping, sitemaps, full-site crawling, web monitoring, or provide an API Key to request scraping/search, the Agent should load this skill and call according to the documentation.

Installation and Activation

Method 1: Let the Agent install according to SkillHub guidance

The prompt given by the SkillHub page is: Install @user_b22a52ba/firecrawl according to the SkillHub installation documentation.

Method 2: SkillHub CLI

First confirm whether the CLI is already on the local machine:

command -v skillhub && skillhub --version

If not installed, execute according to the official documentation (full installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

When installing skills, you must use --dir to point to the current Agent’s skills directory, otherwise it will default to ./skills/ and may not be recognized. The installation command for Firecrawl is:

skillhub install @user_b22a52ba/firecrawl --dir <skills directory>

Common client skills paths (excerpted from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, you need to restart or refresh according to the requirements of your client to make the new Skill effective.

API Key Configuration

The Skill requires passing the key through environment variables:

export FIRECRAWL_API_KEY="your_Firecrawl_API_Key"

Do not hardcode the Key in scripts or repositories; Firecrawl is a paid API (the documentation notes there is a free quota), and each call consumes credits.

Typical Usage

The Skill provides a reusable Python calling template: read FIRECRAWL_API_KEY from environment variables, BASE_URL is https://api.firecrawl.dev.

Scrape a single page as Markdown (default formats is ["markdown"]):

import os
import requests

FIRECRAWL_API_KEY = os.environ.get("FIRECRAWL_API_KEY", "")
BASE_URL = "https://api.firecrawl.dev"
HEADERS = {
    "Authorization": f"Bearer {FIRECRAWL_API_KEY}",
    "Content-Type": "application/json"
}

payload = {"url": "https://example.com", "formats": ["markdown"]}
resp = requests.post(f"{BASE_URL}/v2/scrape", headers=HEADERS, json=payload, timeout=60)
resp.raise_for_status()
print(resp.json())

Search and go deeper: The documentation suggests first using Search to locate URLs, then Scrape the target pages; for full-site scenarios, you can first Map to see the structure, then set the maxDepth and limit of Crawl. After submitting Crawl, a task id is returned, and you need to request GET /v2/crawl/{id} to poll the result.

Structured extraction: Pass extract.prompt (and optional extract.schema) to /v2/scrape, extract fields from the page, and the recommended timeout is 60-90 seconds.

On success, the Scrape-type response is described in the Skill as success + data (including markdown, metadata, etc.); Search returns a data array, with elements containing fields such as url, title, markdown, score, etc.

Applicable Scenarios and Notes

For whom: Developers who need to stably complete “search web pages → pull content → convert to Markdown / structured JSON” in Agent conversations; teams that already have or are willing to apply for a Firecrawl API Key.

Limitations and pitfalls:

  1. Must configure FIRECRAWL_API_KEY, the Skill does not replace account and billing.
  2. Crawl is asynchronous, you cannot just send POST and assume the result is ready.
  3. Anti-crawling sites may still fail or return obfuscated content, and the Skill clearly does not guarantee 100% success.
  4. Control formats and request scope to avoid unnecessary credits consumption.

Current statistics on the SkillHub side (based on page scraped materials): rating 100000, downloads 2828, category data-analysis.

Conclusion

The Firecrawl Skill converges the endpoints, authentication, and Python examples of the Firecrawl Web API into a single SKILL.md, making it convenient for clients like Cursor, Claude Code, Codex to behave consistently in scraping and search scenarios. See SkillHub for installation and details:

  • Skill page: https://www.skillhub.cn/skills/user_b22a52ba/firecrawl
  • API entry: https://api.skillhub.cn/user_b22a52ba/firecrawl
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye