Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

FireCrawl: SearchResponse type is not aligned with FireCrawl API response #713

@mjakl

Description

@mjakl

When using the scrapeUrl tool, I get back a ScrapeResponse type:

  export interface ScrapeResponse<
    LLMResult = any,
    ActionsSchema extends ActionsResult | never = never
  > extends Document<LLMResult, ActionsSchema> {
    success: true
    warning?: string
    error?: string
  }

Yet, the server responds with data similar to SearchResponse - see their documentation:

  export interface SearchResponse {
    success: boolean
    data: Document[] // <---- scraping has just a single document here, no array
    warning?: string
    error?: string
  }

That's how I called the tool:

 const scrapedData = await firecrawl.scrapeUrl({
      url,
      formats: ["markdown"],
    });

Current workaround do access the Markdown, I need to access scrapedData.data.markdown which is not allowed by the type system (the typy system would support scrapeData.markdown, but this does not exist).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions