Skip to main content
Pair OpenRouter, a unified API for hundreds of LLMs, with Firecrawl, the context API for AI agents, to give any model live web search and scrape. OpenRouter’s API is OpenAI-compatible, so you can use the OpenAI SDK pointed at OpenRouter’s base URL plus Firecrawl’s Python or JavaScript SDK as the tool.

Setup

Scrape + Summarize with Any OpenRouter Model

This scrapes a page with Firecrawl and summarizes it with whatever model you pick from OpenRouter, here Claude Haiku 4.5.
Switch the model string to any OpenRouter-supported model, such as openai/gpt-5, google/gemini-2.5-pro, meta-llama/llama-4-maverick, etc.

Tool Calling: Model Decides When to Scrape

OpenRouter supports OpenAI-style tool calls, so Firecrawl plugs in as a function the model can invoke.

Python

Firecrawl as OpenRouter’s Web Search Engine

OpenRouter can also run web searches through Firecrawl on its side. Add the openrouter:web_search server tool and set engine to firecrawl; the model decides when to search, and OpenRouter returns the results to it.
OpenRouter bills these searches to your OpenRouter account. See OpenRouter’s web search docs for the other parameters and pricing.

Notes

  • Firecrawl is fully model-agnostic, so you can pick any OpenRouter model without changing the scrape code.
  • Many top OpenRouter apps (Cline, Roo Code, Kilo, Cursor, Continue) are agent harnesses that can use Firecrawl MCP. Start with the MCP setup chooser to connect one.
  • For large jobs, use batch scrape to stay within LLM context budgets.