Code librariesReviewed · Firecrawl

Firecrawl Rust SDK

Firecrawl Rust SDK is a library for Rust developers collecting web content, but it requires Firecrawl's cloud service or a self-hosted Firecrawl server. It provides scraping, crawling, search, file parsing, structured extraction and AI agent methods.

Researched 14 Nov 2026

In short.

Firecrawl Rust SDK is a library for Rust developers building web data workflows, but its processing depends on Firecrawl's cloud service or a self-hosted Firecrawl server. The documentation covers single-page and batch scraping, website discovery, search, uploaded files, schema-guided JSON extraction, AI agents and browser interaction. It specifies Rust 1.70 or later and a firecrawl version 2 dependency. Pricing, licensing, extraction accuracy and deployment feature parity are not established, and no examples were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete captured page at [https://docs.firecrawl.dev/sdks/rust.md], including its documentation-index pointer, API-key onboarding link and Mintlify hosting notice. Linked destinations are excluded, including the SDK repository, crates.io package, Alexandria documentation and onboarding instructions. The page documents API usage; nothing was executed, compiled or benchmarked. Output correctness, extraction accuracy, production reliability, costs and cloud versus self-hosted feature parity were not assessed.

The overview

Identity

The official Firecrawl Rust SDK wraps the Firecrawl API so Rust applications can retrieve web content and request structured data. The documentation identifies its package as firecrawl on crates.io and locates its implementation in the Firecrawl monorepo at apps/rust-sdk.

The primary reference is [https://docs.firecrawl.dev/sdks/rust.md]. The package and repository addresses are [https://crates.io/crates/firecrawl] and [https://github.com/firecrawl/firecrawl/tree/main/apps/rust-sdk]; their contents are outside the supplied page.

Assessment

The SDK is a plausible fit when a Rust application needs several Firecrawl operations through one client. Its documented value is convenience: options structs, returned document types, job management and structured errors reduce the integration work around the API.

This assessment concerns the documented interface. Compilation, extraction accuracy, reliability, throughput and production suitability were not assessed. A broad method list does not establish how consistently those methods work across websites or deployments.

Users

Likely users include Rust developers collecting website text, discovering site URLs, extracting product fields or incorporating web research into an application. Uploaded-file parsing also makes it relevant to applications processing supported documents through Firecrawl.

Beginners receive installation and basic scraping examples, but need familiarity with Cargo, asynchronous Rust, API credentials and error handling. Experienced developers get explicit configuration types, separate job-control methods and typed agent-output examples.

Capabilities

The documented methods cover single-URL scraping, parallel batch scraping, website crawling, URL mapping and web search. Scraping examples request Markdown and HTML; structured extraction accepts a JSON schema and an optional extraction prompt.

The parse method uploads HTML, PDF, word-processing and spreadsheet files to /v2/parse. Its options support outputs including Markdown, HTML, links, images, summaries and JSON. ParseOptions deliberately excludes browser and scrape settings that this endpoint rejects.

Agent methods accept natural-language tasks and optionally a JSON schema. Alexandria methods discover third-party provider tools and invoke them. Scrape-bound interaction can execute browser code or prompts using a scrape job ID, with a separate method to stop the session.

Using it

Requirements

The page states that Rust 1.70 or later is required. Its installation block declares firecrawl = "2", Tokio version 1 with the full feature set, and serde_json version 1.

Cloud use requires a Firecrawl API key and connectivity to the service. Self-hosted use requires an available Firecrawl instance; the client accepts a custom server URL and an optional key. Server installation requirements are not supplied.

The typed agent example also imports serde::Deserialize, which is absent from the installation dependency list. A complete dependency manifest for that example is not provided.

Mechanism

Client::new targets the cloud API at [https://api.firecrawl.dev]. Client::new_selfhosted targets a supplied server address. The library is an API client; uploaded files are sent as multipart form data to the configured service.

The crawl, batch_scrape and agent convenience methods poll remote jobs until completion. The documented polling default is 2,000 milliseconds and can be adjusted through options. Separate crawl methods start jobs, retrieve status, cancel execution and retrieve errors.

FirecrawlError distinguishes HTTP request failures, API errors, failed jobs and misuse. Alexandria responses additionally contain per-call errors, so an overall successful request can include a failed provider call. The page advises reusing the same request_id and calls when retrying an uncertain Alexandria result.

Setup

The documented setup is to add firecrawl, Tokio and serde_json through Cargo, obtain a Firecrawl API key, construct a client and call its asynchronous methods. The first complete example uses Tokio's main macro and requests Markdown from one URL.

For environment-based configuration, the example reads FIRECRAWL_API_KEY with std::env::var and passes the result to Client::new. Automatic environment-variable loading by the client is not demonstrated. Self-hosted configuration instead supplies an API URL and either a key or no authentication.

Example

For product-field extraction, the documentation defines a schema with name as a string and price as a number, then calls scrape_with_schema on [https://example.com/product] with a prompt requesting those fields. An alternative example requests Format::Json through ScrapeOptions and supplies the schema through JsonOptions.

This illustrates how an application could request structured product data. The page supplies no actual product response, accuracy result or evidence of schema enforcement. Nothing was executed, so the example's compilation and behavior remain unassessed.

Assessment & evidence

Limitations

The client requires a Firecrawl API service. A configurable self-hosted URL does not establish that every documented capability is available in every self-hosted deployment. Cloud and self-hosted feature parity is unknown.

The page does not establish rate limits, maximum file sizes, extraction accuracy, supported-site coverage or performance. ParseOptions cannot use scrape-only fields such as actions, waitFor, location, mobile or screenshot. Browser interaction requires a scrape job ID and explicit session cleanup.

No runtime results or benchmarks are supplied. Production behavior, error recovery and compatibility with a particular server version remain unassessed.

Reasoning

The strongest fit is an application already written in Rust that needs several Firecrawl operations. High-level extraction methods can simplify initial integration, while job-control methods and explicit options offer more control as workflows grow.

The architecture is a weaker fit for a requirement that all parsing run locally inside the Rust process: the documented parse method uploads files to a server. That fit judgment follows from the documented mechanism, rather than an execution result.

Alternatives

The page documents cloud and self-hosted Firecrawl as deployment alternatives. It also offers shorter convenience methods alongside more explicit configuration, such as scrape_with_schema versus ScrapeOptions with JsonOptions, and crawl versus starting and monitoring a job separately.

Because the SDK wraps an API, direct API integration is a possible alternative; this is an inference from its architecture. The page does not compare competing Rust libraries or other web-data services, so their relative features, costs and reliability are unknown.

Evidence

The evidence is the complete official Rust SDK documentation page at [https://docs.firecrawl.dev/sdks/rust.md]. It contains installation requirements, method examples, configuration options and error-handling examples.

The page provides interface descriptions rather than independent performance or reliability evidence. Linked repository files, package metadata, Alexandria documentation, service terms and onboarding material are not included. No SDK source archive or license text is supplied.

Access & freshness

Costs

Cloud subscription prices, request charges, credit allowances, agent charges and self-hosting costs are unknown from this page. Its example asking an agent to find pricing is not pricing evidence.

The page explicitly describes browsing Alexandria providers and reading tool contracts through find_tools as free. It does not establish that invoking providers through scrape_alexandria is free.

Rights

The supplied page contains no SDK license, documentation redistribution license or service terms. Commercial-use and redistribution permissions are therefore unknown; links to a public repository and package registry do not establish those permissions.

Rights to collect, retain or reuse website content and third-party provider data are not specified. ParseOptions exposes zero_data_retention, but the page does not explain its guarantees, availability or contractual effect.

Freshness

The documentation capture is dated 14 November 2026 at 22:34:56 UTC. It recommends the firecrawl version 2 dependency range but gives no exact patch release, publication date or server compatibility matrix.

The captured source revision is sha256:f5a74b197a06afc3decae18bdb4662d32561b26eef9541caad819ae1468ac4d8. Package releases and documentation changes after that capture are unknown.

Actions

For an initial evaluation, choose cloud or self-hosted deployment and begin with a single-page Markdown request. Then evaluate the capability your application actually needs, such as schema-guided extraction or file parsing, against representative inputs and expected outputs.

Before committing to the integration, establish pricing, licensing, retention terms and required server features. Check the complete dependencies for typed examples. If using Alexandria, handle errors on each returned call; if using browser interaction, include stop_interaction in session cleanup. These are suggested next steps, not completed tests.

Evidence for this report

selected-page.txtselected · checked 2026-11-14