# POST /search (Firecrawl API)
Base URL: https://api.firecrawl.dev/v1
Auth: Authorization: Bearer <FIRECRAWL_API_KEY>
Last verified: 2026-09-03

> Search and optionally scrape search results

## Critical Gotchas
* The `formats` field controls the output shape and defaults to `["markdown"]`. Omitting it does not return HTML — request `["markdown","html"]` explicitly.
* `/crawl` is asynchronous: it returns a job `id`, and results are collected by polling `/crawl/{id}` until `status` is `completed`.

## cURL
curl -X POST 'https://api.firecrawl.dev/v1/search' \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"query":"string","limit":5}'

## Parameters
| Name | In | Type | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| query | body | string | Yes | The search query |
| limit | body | integer | No | Maximum number of results to return |
| tbs | body | string | No | Time-based search parameter |
| location | body | string | No | Location parameter for search results |

## Response (200 OK)
{"success":true,"data":[{}]}

---
Need an API key? Get one at https://www.firecrawl.dev/signin/signup