Integrate Firecrawl with OpenAI to build AI applications powered by web data.
Setup#
Create .env file:
Note: If using Node < 20, install
dotenvand addimport 'dotenv/config'to your code.
Scrape + Summarize#
This example demonstrates a simple workflow: scrape a website and summarize the content using an OpenAI model.
Function Calling#
This example shows how to use OpenAI's function calling feature to let the model decide when to scrape websites based on user requests.
Structured Data Extraction#
This example demonstrates how to use OpenAI models with structured outputs to extract specific data from scraped content.
Search + Analyze#
This example combines Firecrawl's search capabilities with OpenAI model analysis to find and summarize information from multiple sources.
Responses API with MCP#
This example shows how to use OpenAI's Responses API with Firecrawl configured as an MCP (Model Context Protocol) server.
For more examples, check the OpenAI documentation.

