# scrape

**Identifier:** `firecrawl_scrape`

**Provider:** [Firecrawl](https://kirha.com/providers/firecrawl.md)

Scrapes one or multiple URLs (max 5) and returns content as a summary. Can scrape PDFs and other document formats automatically.

## Run it with the CLI

```bash
kirha tools run firecrawl_scrape \
  --input '{
    "urls": [
      "<urls>"
    ]
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "firecrawl_scrape",
  "input": {
    "urls": [
      "<urls>"
    ]
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "urls": {
      "description": "List of URLs to scrape (max 5, processed in parallel). Results are returned in the same order as the input URLs for tool composition.",
      "items": {
        "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "type": "array"
    },
    "withStructuredOutput": {
      "description": "Enable structured extraction mode with defined output schema",
      "properties": {
        "outputDescription": {
          "description": "Description of the output keys to guide extraction. Provide a short bullet list explaining the meaning of each key.",
          "type": "string"
        },
        "outputKeys": {
          "description": "List of keys to extract from each scraped page",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "outputKeys",
        "outputDescription"
      ],
      "type": "object"
    }
  },
  "required": [
    "urls"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "results": {
      "additionalProperties": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "additionalProperties": {},
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "error": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "propertyNames": {
        "description": "The URL that was scraped",
        "type": "string"
      },
      "type": "object"
    }
  },
  "required": [
    "context",
    "results"
  ],
  "type": "object"
}
```

-----

[All Firecrawl tools](https://kirha.com/providers/firecrawl.md) · [< Back to tools list](https://kirha.com/tools.md)