Skip to main content
Canonical Firecrawl Elixir quickstart for agents. Generated from :firecrawl v1.11.0 SDK source and the v2 OpenAPI spec. The Elixir client is auto-generated from the OpenAPI spec; function names and parameter keys match the generated surface.

Install

Add to mix.exs:
Requires Elixir >= 1.15.

Authenticate

A nil API key enables keyless free-tier access (rate-limited per IP). Every function accepts api_key: and base_url: overrides in the trailing opts keyword list.

When To Use What

  • search: use when you start with a query and need discovery.
  • scrape: use when you already have a URL and want page content.
  • interact: use when the page needs clicks, forms, or post-scrape browser actions. Elixir SDK exposes code-based interactions only (no prompt parameter).

Why use it

Discover relevant pages from a query, then pick URLs to scrape or interact with. Constrain results to a site with site:, for example site:docs.firecrawl.dev crawl webhooks.

Preferred SDK method

Firecrawl.search_and_scrape(params \\ [], opts \\ [])

Example

Parameters

Scrape

Why use it

Get structured content from a URL in one or more formats.

Preferred SDK method

Firecrawl.scrape_and_extract_from_url(params \\ [], opts \\ [])

Example

Parameters

Interact

Why use it

Execute code in the browser session tied to a scrape job. The Elixir SDK exposes code-based interactions only (no prompt parameter).

Preferred SDK method

Firecrawl.interact_with_scrape_browser_session(job_id, params \\ [], opts \\ [])

Example

Parameters

Stop session

Firecrawl.stop_interactive_scrape_browser_session(job_id) ends the browser session.

Notes

  • The Elixir client is auto-generated from the OpenAPI spec; function names reflect the generated surface.
  • All params use snake_case atom keys; they are automatically camelCased for the HTTP body.
  • Every function has a bang (!) variant that raises on error: scrape_and_extract_from_url!, search_and_scrape!, etc.
  • An "origin" field ("elixir-sdk@1.11.0") is automatically injected into every request body.
  • interact_with_scrape_browser_session only accepts code, not prompt.

Source Of Truth

  • firecrawl/apps/elixir-sdk/mix.exs
  • firecrawl/apps/elixir-sdk/lib/firecrawl.ex
  • firecrawl-docs/api-reference/v2-openapi.json