Firecrawl icon

Firecrawl

Scrape, crawl, map, search, and extract structured data from websites using Firecrawl API

Agent → Start AI Agent Job (Async)

AI-generated

Summary

Start an asynchronous AI agent job to extract data from specified or autonomously discovered web pages based on a natural language prompt and optional schema definition.

Inputs

  • Prompt (required) — Natural language description specifying the data to extract, e.g., 'Find the founders of Firecrawl and their roles'.
  • Specify URLs — Boolean to indicate if you want the agent to focus on specified URLs (true) or allow autonomous web searching (false). Defaults to false.
  • URLs — One or multiple URLs for the agent to focus on when 'Specify URLs' is enabled. Accepts comma/newline separated list or JSON array.
  • Schema Type — Defines how the output data structure schema is specified: None (agent determines structure), Generate From JSON Example, or Manual JSON Schema definition.
  • JSON Example — Example JSON structure for auto-generating the schema; used only if 'Schema Type' is set to generate from example.
  • Schema — Manual JSON Schema definition describing the expected extracted data structure; used only if 'Schema Type' is set to manual.
  • Use Custom Body — Boolean to override default request body with a custom JSON payload for advanced use cases.
  • Custom Body — A custom JSON object to send directly as the API request body when 'Use Custom Body' is enabled.

Output shape

a single JSON object response from the asynchronous agent job start endpoint

The operation returns immediately with job details indicating the job has started asynchronously. Result data is not included here and must be retrieved later via job status endpoints.

Examples

Example 1: Starting a job with a prompt and specific URLs

Set 'Prompt' with a data extraction request, enable 'Specify URLs' and provide URLs list, optionally define schema or use none.

Example 2: Starting a job letting the agent autonomously crawl

Set 'Prompt' only, leave 'Specify URLs' disabled to let the agent search the web for relevant data sources autonomously.

Links

Discussion