Update README.md

This commit is contained in:
Nicolas 2025-01-02 20:26:51 -03:00
parent a4b6dfecd1
commit b244afbc82

View File

@ -365,19 +365,18 @@ curl -X POST https://api.firecrawl.dev/v1/batch/scrape \
}' }'
``` ```
### Search (v0) (Beta) ### Search
Used to search the web, get the most relevant results, scrape each page and return the markdown. The search endpoint combines web search with Firecrawls scraping capabilities to return full page content for any query.
Include `scrapeOptions` with `formats: ["markdown"]` to get complete markdown content for each search result otherwise it defaults to getting SERP results (url, title, description).
```bash ```bash
curl -X POST https://api.firecrawl.dev/v0/search \ curl -X POST https://api.firecrawl.dev/v1/search \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Authorization: Bearer YOUR_API_KEY' \
-d '{ -d '{
"query": "firecrawl", "query": "What is Mendable?"
"pageOptions": {
"fetchPageContent": true // false for a fast serp api
}
}' }'
``` ```
@ -387,14 +386,8 @@ curl -X POST https://api.firecrawl.dev/v0/search \
"data": [ "data": [
{ {
"url": "https://mendable.ai", "url": "https://mendable.ai",
"markdown": "# Markdown Content", "title": "Mendable | AI for CX and Sales",
"provider": "web-scraper", "description": "AI for CX and Sales"
"metadata": {
"title": "Mendable | AI for CX and Sales",
"description": "AI for CX and Sales",
"language": null,
"sourceURL": "https://www.mendable.ai/"
}
} }
] ]
} }