mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 19:09:02 +08:00
Update README.md
This commit is contained in:
parent
a4b6dfecd1
commit
b244afbc82
21
README.md
21
README.md
@ -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 Firecrawl’s 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",
|
|
||||||
"provider": "web-scraper",
|
|
||||||
"metadata": {
|
|
||||||
"title": "Mendable | AI for CX and Sales",
|
"title": "Mendable | AI for CX and Sales",
|
||||||
"description": "AI for CX and Sales",
|
"description": "AI for CX and Sales"
|
||||||
"language": null,
|
|
||||||
"sourceURL": "https://www.mendable.ai/"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user