API Crawl & Search — Thu thập nội dung web & tìm ảnh theo từ khóa
API Crawl & Search của revidapi.com gồm hai endpoint: crawl website (markdown, link, ảnh/video nhúng) và tìm ảnh theo keyword. Giá cố định 5 credit mỗi request — không phụ thuộc độ dài nội dung trả về.
Tài liệu: Crawl & Search API. Xem thêm Download Social, API Download đa nền tảng và danh mục API Key.
Hai endpoint trong một sản phẩm
| API | Endpoint | Mục đích |
|---|---|---|
| Crawl web | POST /paid/website/crawl |
Lấy markdown, link, ảnh/video từ URL trang web |
| Search image | POST /paid/search/image |
Tìm ảnh theo từ khóa (Việt/Anh) |
Điểm nổi bật
- 5 credit / request — giá cố định theo docs revidapi.com
- Crawl 2 mode:
web(danh sách link) vàarticle(nội dung chính + ảnh/video) - JSON body —
Content-Type: application/json - Search image: tối đa 100 ảnh/request, mặc định 20
- Tích hợp n8n: crawl → xử lý → tạo thumbnail / content AI
Crawl web — tham số
| Tham số | Bắt buộc | Mô tả |
|---|---|---|
url |
Có | URL đầy đủ cần crawl (bài viết, landing page…) |
mode |
Có | web — ưu tiên links + markdown; article — nội dung chính + ảnh/video trong bài |
x-api-key |
Có | Header xác thực |
Ví dụ — mode=web (lấy danh sách link)
curl -s -X POST "https://api.revidapi.com/paid/website/crawl"
-H "Content-Type: application/json"
-H "x-api-key: YOUR_API_KEY"
-d '{"url":"https://example.com","mode":"web"}'
Ví dụ — mode=article (nội dung + ảnh/video)
curl -s -X POST "https://api.revidapi.com/paid/website/crawl"
-H "Content-Type: application/json"
-H "x-api-key: YOUR_API_KEY"
-d '{"url":"https://example.com/article","mode":"article"}'
Response crawl mẫu
{
"success": true,
"url": "https://example.com",
"title": "Article title",
"markdown": "...",
"content": "...",
"images": [{"url":"https://.../image.jpg","alt":"..."}],
"videos": [{"url":"https://...","type":"embed"}],
"links": ["https://...","https://..."]
}
Lưu ý mode: mode=web trả links, không trả ảnh. mode=article trả markdown/content + images/videos, links: [].
Search image — tham số
| Tham số | Bắt buộc | Mô tả |
|---|---|---|
keyword |
Có | Từ khóa tìm ảnh (tiếng Việt hoặc Anh) |
max_results |
Không | 1–100, mặc định 20 |
Ví dụ search image
curl -s -X POST "https://api.revidapi.com/paid/search/image"
-H "Content-Type: application/json"
-H "x-api-key: YOUR_API_KEY"
-d '{"keyword":"sunset beach","max_results":20}'
Response search mẫu
{
"success": true,
"keyword": "sunset beach",
"images": [
{
"url": "https://.../image.jpg",
"title": "Image title",
"source": "https://source-site.com/article",
"thumbnail": "https://.../thumb.jpg"
}
],
"count": 20
}
Giá & cách tính credit
- 5 credit / request — mỗi lần gọi crawl hoặc search image
- Không tính thêm theo số link, số ảnh hay độ dài markdown
- Đăng ký mới: Free 100 credit (~20 lượt test)
Workflow gợi ý
- Gọi
/paid/website/crawlvớimode=web→ lấylinks[] - Loop từng link → gọi
mode=article→ lấy nội dung + ảnh - Dùng
/paid/search/imagekhi cần thumbnail/minh họa theo keyword - Kết hợp Download API nếu cần tải video từ URL tìm được
Câu hỏi thường gặp (FAQ)
API tốn bao nhiêu credit?
5 credit mỗi request cho cả crawl web và search image. Xem tài liệu chính thức.
mode=web và mode=article khác nhau thế nào?
web trả danh sách link + markdown, không có ảnh. article trích nội dung chính bài viết kèm ảnh/video nhúng (trước mục tin liên quan).
Lỗi 502 / 429 xử lý ra sao?
502: không fetch được từ nguồn (timeout, chặn bot). 429: vượt queue — giảm tần suất gọi hoặc thêm retry backoff.
Search image hỗ trợ tiếng Việt không?
Có — gửi keyword tiếng Việt hoặc Anh đều được.
Có thay thế crawl thủ công trong n8n không?
Có. Dùng node HTTP Request POST JSON body, header x-api-key, parse response vào bước tiếp theo trong workflow.
Bắt đầu ngay
Nhấn Thử Ngay nhận 100 credit miễn phí. Ghép với Get Channel, API Download để xây pipeline thu thập nội dung đa kênh.
revidapi.com — Hệ sinh thái AI & API automation cho thị trường Việt Nam.
