pub struct FirecrawlApp { /* private fields */ }Implementations§
Source§impl FirecrawlApp
impl FirecrawlApp
Sourcepub async fn batch_scrape_urls(
&self,
urls: Vec<String>,
options: impl Into<Option<ScrapeOptions>>,
poll_interval: Option<u64>,
idempotency_key: Option<String>,
webhook: Webhook,
ignore_invalid_urls: Option<bool>,
) -> Result<BatchScrapeStatus, FirecrawlError>
pub async fn batch_scrape_urls( &self, urls: Vec<String>, options: impl Into<Option<ScrapeOptions>>, poll_interval: Option<u64>, idempotency_key: Option<String>, webhook: Webhook, ignore_invalid_urls: Option<bool>, ) -> Result<BatchScrapeStatus, FirecrawlError>
Scrapes multiple URLs in a single request using the Firecrawl API.
Sourcepub async fn check_batch_scrape_status(
&self,
id: &str,
) -> Result<BatchScrapeStatus, FirecrawlError>
pub async fn check_batch_scrape_status( &self, id: &str, ) -> Result<BatchScrapeStatus, FirecrawlError>
Checks the status of a batch scrape job.
Sourcepub async fn monitor_batch_scrape_status(
&self,
id: &str,
poll_interval: u64,
) -> Result<BatchScrapeStatus, FirecrawlError>
pub async fn monitor_batch_scrape_status( &self, id: &str, poll_interval: u64, ) -> Result<BatchScrapeStatus, FirecrawlError>
Monitors a batch scrape job until it completes, fails, or is cancelled.
Sourcepub async fn check_batch_scrape_status_with_cursor(
&self,
id: &str,
cursor: &str,
) -> Result<BatchScrapeStatus, FirecrawlError>
pub async fn check_batch_scrape_status_with_cursor( &self, id: &str, cursor: &str, ) -> Result<BatchScrapeStatus, FirecrawlError>
Checks the status of a batch scrape job with a cursor for pagination.
Source§impl FirecrawlApp
impl FirecrawlApp
Sourcepub async fn crawl_url_async(
&self,
url: impl AsRef<str>,
options: Option<CrawlOptions>,
idempotency_key: Option<String>,
webhook: Webhook,
) -> Result<CrawlAsyncResponse, FirecrawlError>
pub async fn crawl_url_async( &self, url: impl AsRef<str>, options: Option<CrawlOptions>, idempotency_key: Option<String>, webhook: Webhook, ) -> Result<CrawlAsyncResponse, FirecrawlError>
Initiates a crawl job for a URL using the Firecrawl API.
Sourcepub async fn crawl_url(
&self,
url: impl AsRef<str>,
options: impl Into<Option<CrawlOptions>>,
webhook: Webhook,
poll_interval: Option<u64>,
idempotency_key: Option<String>,
) -> Result<CrawlStatus, FirecrawlError>
pub async fn crawl_url( &self, url: impl AsRef<str>, options: impl Into<Option<CrawlOptions>>, webhook: Webhook, poll_interval: Option<u64>, idempotency_key: Option<String>, ) -> Result<CrawlStatus, FirecrawlError>
Performs a crawl job for a URL using the Firecrawl API, waiting for the end result. This may take a long time depending on the size of the target page and your options (namely CrawlOptions.limit).
Sourcepub async fn check_crawl_status(
&self,
id: impl AsRef<str>,
) -> Result<CrawlStatus, FirecrawlError>
pub async fn check_crawl_status( &self, id: impl AsRef<str>, ) -> Result<CrawlStatus, FirecrawlError>
Checks for the status of a crawl, based on the crawl’s ID. To be used in conjunction with FirecrawlApp::crawl_url_async.
Source§impl FirecrawlApp
impl FirecrawlApp
Source§impl FirecrawlApp
impl FirecrawlApp
Sourcepub async fn scrape_url(
&self,
url: impl AsRef<str>,
options: impl Into<Option<ScrapeOptions>>,
) -> Result<Document, FirecrawlError>
pub async fn scrape_url( &self, url: impl AsRef<str>, options: impl Into<Option<ScrapeOptions>>, ) -> Result<Document, FirecrawlError>
Scrapes a URL using the Firecrawl API.
Source§impl FirecrawlApp
impl FirecrawlApp
Sourcepub async fn search(
&self,
query: impl AsRef<str>,
options: impl Into<Option<SearchOptions>>,
) -> Result<Vec<SearchResult>, FirecrawlError>
pub async fn search( &self, query: impl AsRef<str>, options: impl Into<Option<SearchOptions>>, ) -> Result<Vec<SearchResult>, FirecrawlError>
Source§impl FirecrawlApp
impl FirecrawlApp
pub fn new(api_key: impl AsRef<str>) -> Result<FirecrawlApp, FirecrawlError>
pub fn new_with_client( api_key: impl AsRef<str>, client: Client, ) -> Result<FirecrawlApp, FirecrawlError>
pub fn new_selfhosted( api_url: impl AsRef<str>, api_key: Option<impl AsRef<str>>, ) -> Result<FirecrawlApp, FirecrawlError>
pub fn new_selfhosted_with_client( api_url: impl AsRef<str>, api_key: Option<impl AsRef<str>>, client: Client, ) -> Result<FirecrawlApp, FirecrawlError>
Trait Implementations§
Source§impl Clone for FirecrawlApp
impl Clone for FirecrawlApp
Source§fn clone(&self) -> FirecrawlApp
fn clone(&self) -> FirecrawlApp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FirecrawlApp
impl Debug for FirecrawlApp
Source§impl IntoFirecrawlMCP for FirecrawlApp
impl IntoFirecrawlMCP for FirecrawlApp
Source§fn into_mcp(self) -> FirecrawlMCP
fn into_mcp(self) -> FirecrawlMCP
Converts a FirecrawlApp instance into a FirecrawlMCP instance
Auto Trait Implementations§
impl Freeze for FirecrawlApp
impl !RefUnwindSafe for FirecrawlApp
impl Send for FirecrawlApp
impl Sync for FirecrawlApp
impl Unpin for FirecrawlApp
impl !UnwindSafe for FirecrawlApp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more