Firecrawl

Scrape, crawl, and search web pages with AI-friendly extraction via Firecrawl.

AI and MLAPI key6 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (6)
  4. crawl
  5. scrape
  6. crawlResults
  7. custom_api_call
  8. extract
  9. map
  10. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("firecrawl", action, input) resolves with the provider's answer and rejects when Firecrawl isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "firecrawl"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Firecrawl when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellFirecrawl = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Firecrawl isn't connected.
  const output = await step.run("Firecrawl", () =>
    step.ctx.integrations.invoke("firecrawl", "crawl", {
      "url": "<url>",
      "formats": "<formats>"
    }),
  );
  step.ctx.log("Firecrawl answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "firecrawl",
    "piece_action": "crawl",
    "input": {
      "url": "<url>",
      "formats": "<formats>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/firecrawl/crawl" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"url":"<url>","formats":"<formats>"}}'

Actions

crawl

Crawl. Crawl multiple pages from a website based on specified rules and patterns.

InputTypeDescription
urlrequiredtextThe base URL to start crawling from.
promptoptionallong textDescribe what information you want to extract.
limitoptionalnumberMaximum number of pages to crawl. Default limit is 10.
formatsrequiredid (picked from your account)Choose what format you want your output in.
onlyMainContentoptionalbooleanOnly return the main content of the page, excluding headers, navs, footers, etc.
extractModeoptionalobject (depends on other props)Data schema type.
extractSchemaoptionalobject (depends on other props)Data Definition
timeoutoptionalnumberTimeout in seconds after which the task will be cancelled
useWebhookoptionalbooleanEnable to send crawl results to a webhook URL.
webhookPropertiesoptionalobject (depends on other props)Properties for webhook configuration.

scrape

Scrape Website. Scrape a website by performing a series of actions like clicking, typing, taking screenshots, and extracting data.

InputTypeDescription
urlrequiredtextThe webpage URL to scrape.
timeoutoptionalnumberMaximum time to wait for the page to load (in milliseconds).
useActionsoptionalbooleanEnable to perform a sequence of actions on the page before scraping (like clicking buttons, filling forms, etc.). See [Firecrawl Actions Documentation](https://docs.firecrawl.dev/api-reference/endpoi…
actionPropertiesoptionalobject (depends on other props)Properties for actions that will be performed on the page.
formatsrequiredid (picked from your account)Choose what format you want your output in.
extractPromptoptionalobject (depends on other props)Prompt for extracting data.
extractModeoptionalobject (depends on other props)Data schema type.
extractSchemaoptionalobject (depends on other props)Data Definition

crawlResults

Crawl Results. Get the results of a crawl job.

InputTypeDescription
crawlIdrequiredtextThe ID of the crawl job to check.

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

extract

Extract Structured Data. Extract structured data from multiple URLs using AI.

InputTypeDescription
urlsrequiredarrayAdd one or more URLs to extract data from.
promptoptionallong textDescribe what information you want to extract.
enableWebSearchoptionalbooleanEnable web search to find additional context.
timeoutoptionalnumberTimeout in seconds after which the task will be cancelled
moderequiredone of "simple" | "advanced"For complex schema, you can use advanced mode.
schemarequiredobject (depends on other props)Data Definition

map

Map Websites. Input a website and get all the urls on the website.

InputTypeDescription
urlrequiredtextThe webpage URL to start scraping from.
subdomainoptionalbooleanInclude and crawl pages from subdomains of the target website (e.g., blog.example.com, shop.example.com) in addition to the main domain.
limitoptionalnumberMaximum number of links to return (max: 100,000)

Details

Id
firecrawl
Category
AI and ML
Tags
scraping, crawling, web, extraction, ai
Package
@activepieces/piece-firecrawl@0.3.5
Runs
Through the integration runner