2 Months Free - Annually

Firecrawl + LangChain

Add Firecrawl web search, scraping and crawling to LangChain agents and RAG apps.
The official langchain-firecrawl package ships agent tools and a document loader.

//
Used by over 1.25M developers
//
Trusted by 150,000+
companies
of all sizes
[ 01 / 04 ]
·
Features
Basic Integration
Scrape + Chat
Scrape website content and process with LangChain chat models. Build AI chatbots with real-time web knowledge.
// Example code
const result =
await firecrawl.scrape()
Advanced Workflows
Chains
Create processing pipelines to analyze scraped content. Extract company data and analyze business models.
// Example code
const result =
await firecrawl.scrape()
Agentic AI
Tool Calling
Let the model decide when to search the web or scrape a page. Build research agents with live sources.
// Example code
const result =
await firecrawl.scrape()
Data Parsing
Structured Extraction
Extract structured data using LangChain schemas. Parse product catalogs into databases.
// Example code
const result =
await firecrawl.scrape()

Key Features

Official langchain-firecrawl package for Python
Search, scrape, crawl and map as LangChain agent tools
Document loader for RAG pipelines
Built-in retry logic and error handling
Compatible with all LangChain agents
Works with any LLM provider
[ 02 / 04 ]
·
Installation

How do I add web search to a LangChain agent?

To add web search to a LangChain agent, install langchain-firecrawl and pass its FirecrawlSearch tool to create_agent. The agent calls Firecrawl when a question needs current information, gets back titles, URLs and descriptions from the live web, and answers with those sources in context.

1

Install the packages

Install LangChain, the official Firecrawl package, and a chat model provider. Set FIRECRAWL_API_KEY from your Firecrawl dashboard and the key for your model provider.

Terminal
pip install -U langchain langchain-firecrawl langchain-openai
export FIRECRAWL_API_KEY="fc-YOUR-API-KEY"
export OPENAI_API_KEY="sk-YOUR-API-KEY"
2

Give the agent Firecrawl tools

FirecrawlSearch calls the Firecrawl search API and FirecrawlScrape reads a page as Markdown. With both, the agent can find pages and then read the best one in full.

agent.py
from langchain.agents import create_agent
from langchain_firecrawl import FirecrawlScrape, FirecrawlSearch

agent = create_agent(
    model="openai:gpt-6-luna",
    tools=[FirecrawlSearch(), FirecrawlScrape()],
    system_prompt=(
        "Use firecrawl_search for anything current, then firecrawl_scrape "
        "to read the best result. Cite the URLs you used."
    ),
)
3

Ask a question that needs the web

The agent decides when to search. A question about a recent release triggers firecrawl_search, and the final message cites the pages it read.

agent.py
result = agent.invoke(
    {"messages": [{"role": "user", "content": "What's new in LangChain v1?"}]}
)
print(result["messages"][-1].content)
4

Load search results as documents

For RAG, FirecrawlLoader in search mode turns the results of a web query into LangChain Document objects you can split and index. It also runs in scrape, crawl and map modes for known URLs.

loader.py
from langchain_firecrawl import FirecrawlLoader

loader = FirecrawlLoader(query="LangChain agent middleware", mode="search", params={"limit": 5})
docs = loader.load()
print(len(docs), docs[0].metadata)
[ 03 / 04 ]
·
What Our Customers Say
//
Community
//

People love
building with Firecrawl

Discover why developers choose Firecrawl every day.
//
FAQ
//

Frequently
asked questions

Everything you need to know about this integration.
General
LangChain's integration docs list more than 30 search tools as of October 2026, Firecrawl Search among them. Any search API wrapped as a LangChain tool works with create_agent. Firecrawl's package covers search, scrape, crawl and map with one API key, so the same agent can find pages and read them in full.
No. The community FireCrawlLoader is an earlier loader. langchain-firecrawl is the official package from the Firecrawl team, built on the current Firecrawl API, with a document loader plus agent tools for search, scrape, crawl and map.
Technical
A list of results, each with a URL, title and description. The agent can narrow a search with sources such as web or news, result categories, and a time filter such as the past day.
A Firecrawl search costs 2 credits per 10 results, rounded up, and scraping a page costs 1 credit. The Free plan includes 1,000 credits a month with no credit card.
Integration
Yes, through the Firecrawl Node SDK. The community JavaScript loader still calls older SDK methods, so wrap the SDK's search method in a LangChain tool instead.
Why Firecrawl?
The world's most comprehensive web data API. Our custom browser stack and semantic index deliver superior data quality across any website, handling more content types and edge cases than any competitor.
JavaScript rendering, dynamic content, and robust request handling built-in.
Process millions of pages with automatic rate limiting, caching, and distributed infrastructure.
Optimized scraping engine with parallel processing and smart caching for instant results.
Comprehensive docs, SDKs for all major languages, and dedicated support to help you succeed.
[ 04 / 04 ]
·
Pricing

Flexible pricing

Start for free, then scale as you grow.Are you an AI agent? See pricing

Free Plan

A lightweight way to get started.
No cost, no card, no hassle.
$0
/month
500 searches or 1,000 pages scraped
2 concurrent requests
Low rate limits

Hobby

Great for side projects and small tools.
Fast, simple, no overkill.
$16
/month
Billed yearly
Save $38
2,500 searches or 5,000 pages scraped
5 concurrent requests
Basic support
$9 per extra 1.5k credits

Standard
Most popular

Perfect for scaling with less effort.
Simple, solid, dependable.
$83
/month
Billed yearly
Save $198
50,000 searches or 100,000 pages scraped
25 concurrent requests
Standard support
$47 per extra 35k credits

Growth

Built for high volume and speed.
Firecrawl at full force.
$333
/month
Billed yearly
Save $798
250,000 searches or 500,000 pages scraped
50 concurrent requests
Priority support
$177 per extra 175k credits

Scale Plans

High-volume plans for teams that need more power and dedicated support. Get access to higher rate limits, more concurrent browsers, and priority support. Scale checks out instantly, no sales call needed.

Need more? Contact us

Also on AWS Marketplace and Google Cloud Marketplace.

Scale

For teams scaling their data pipelines
1,000,000 credits / month
$599/month
Billed yearly
Save $1,798
500,000 searches or 1,000,000 pages scraped
100 concurrent requests
Priority support
$397 per extra 350k credits

Enterprise

Power at your pace with custom solutions
Custom credits
Custom concurrent requests
Dedicated support & SLA
Bulk discounts
Zero-data retention
SSO & advanced security
//
Get started
//
Ready to build with LangChain?
Start building RAG applications with Firecrawl and LangChain today.
Are you an AI agent? See setup options