tavily-crawl

Perayap situs web multi-halaman dengan penyaringan semantik dan ekspor markdown. Jelajahi seluruh bagian situs dengan kontrol kedalaman dan luas; filter berdasarkan regex jalur, domain, atau instruksi bahasa alami untuk memfokuskan hasil. Simpan setiap halaman sebagai file markdown lokal melalui --output-dir, atau kembalikan JSON terstruktur untuk pemrosesan agen. Gunakan instruksi semantik dengan ekstraksi potongan untuk mencegah pembengkakan konteks saat memberikan hasil ke LLM; gunakan ekstraksi halaman penuh untuk unduhan dokumentasi offline. Mendukung...

npx skills add https://github.com/tavily-ai/skills --skill tavily-crawl

tavily crawl

Crawl a website and extract content from multiple pages. Supports saving each page as a local markdown file.

Before running

Crawl requires authentication. Run the requested command directly when tvly is already authenticated; do not add a status check to every invocation.

If tvly is missing, follow the tavily-cli setup. If an installed CLI reports an authentication error, use tvly login for authentication only, or tvly init --skip-skills when guided verification is also useful. Browser-based OAuth is preferred when an interactive user can complete it. --no-browser prints the sign-in link instead of opening it, but still waits for a localhost callback. In an unattended agent or CI environment, leave authentication to the user or use a securely provided TAVILY_API_KEY. Do not start a second login immediately after guided setup has completed.

When to use

  • You need content from many pages on a site (e.g., all /docs/)
  • You want to download documentation for offline use
  • Step 4 in the workflow: search → extract → map → crawl → research

Quick start

# Basic crawl
tvly crawl "https://docs.example.com" --json

# Save each page as a markdown file
tvly crawl "https://docs.example.com" --output-dir ./docs/

# Deeper crawl with limits
tvly crawl "https://docs.example.com" --max-depth 2 --limit 50 --json

# Filter to specific paths
tvly crawl "https://example.com" --select-paths "/api/.*,/guides/.*" --exclude-paths "/blog/.*" --json

# Semantic focus (returns relevant chunks, not full pages)
tvly crawl "https://docs.example.com" --instructions "Find authentication docs" --chunks-per-source 3 --json

Options

OptionDescription
--max-depthLevels deep (1-5, default: 1)
--max-breadthLinks per page (default: 20)
--limitTotal pages cap (default: 50)
--instructionsNatural language guidance for semantic focus
--chunks-per-sourceChunks per page (1-5, requires --instructions)
--extract-depthbasic (default) or advanced
--formatmarkdown (default) or text
--select-pathsComma-separated regex patterns to include
--exclude-pathsComma-separated regex patterns to exclude
--select-domainsComma-separated regex for domains to include
--exclude-domainsComma-separated regex for domains to exclude
--allow-external / --no-externalInclude external links (default: allow)
--include-imagesInclude images
--timeoutMax wait (10-150 seconds)
-o, --outputSave JSON output to file
--output-dirSave each page as a .md file in directory
--jsonStructured JSON output

Crawl for context vs. data collection

For agentic use (feeding results to an LLM):

Always use --instructions + --chunks-per-source. Returns only relevant chunks instead of full pages — prevents context explosion.

tvly crawl "https://docs.example.com" --instructions "API authentication" --chunks-per-source 3 --json

For data collection (saving to files):

Use --output-dir without --chunks-per-source to get full pages as markdown files.

tvly crawl "https://docs.example.com" --max-depth 2 --output-dir ./docs/

Tips

  • Start conservative — --max-depth 1, --limit 20 — and scale up.
  • Use --select-paths to focus on the section you need.
  • Use map first to understand site structure before a full crawl.
  • Always set --limit to prevent runaway crawls.

See also

Lebih banyak skill dari tavily-ai

research
tavily-ai
We need to translate the given English text into Bahasa Indonesia. The instruction says to preserve product names, protocol names, URLs, numbers, and technical terms. The name "research" is to be preserved if it appears in the source text, but we are not to include the name unless it appears. The source text does not contain the word "research" as a standalone name? Actually it starts with "Comprehensive research on any topic..." so "research" is part of the text. But the instruction says "Do not include the name unless it appears in the source text." So we keep it as is. Also preserve "Tavily MCP server", "OAuth", etc. Translate the rest naturally. Let me translate: "Comprehensive research on any topic with automatic source gathering, analysis, and citations." -> "Riset komprehensif tentang topik apa pun dengan pengumpulan sumber, analisis, dan kutipan otomatis." "Conducts multi-source web research with explicit citations, ideal for comparisons, current events, market analysis, and detailed reports
search
tavily-ai
Pencarian web dengan hasil yang dioptimalkan untuk LLM, penilaian relevansi, dan penyaringan fleksibel. Mendukung empat mode kedalaman pencarian (ultra-cepat, cepat, dasar, lanjutan) dengan pengaturan latensi dan tradeoff relevansi yang dapat dikonfigurasi. Termasuk penyaringan domain, batasan rentang waktu, rentang tanggal, penguatan negara, dan ekstraksi konten mentah. Mengembalikan hasil dengan judul, URL, cuplikan konten, dan skor relevansi; hasil gambar opsional dan favicon. Otentikasi OAuth otomatis melalui server Tavily MCP atau konfigurasi kunci API;...
tavily-best-practices
tavily-ai
API pencarian web untuk LLM dengan akses data real-time, ekstraksi konten, perayapan situs, dan riset bertenaga AI. Lima metode inti: search() untuk hasil web, extract() untuk konten URL, crawl() untuk ekstraksi seluruh situs, map() untuk penemuan URL, dan research() untuk sintesis AI ujung-ke-ujung. Mendukung SDK Python dan JavaScript dengan klien asinkron untuk kueri paralel dan kedalaman pencarian yang dapat dikonfigurasi (ultra-cepat/cepat/dasar/lanjutan). Metode crawl menerima instruksi semantik untuk memfokuskan ekstraksi pada...
tavily-cli
tavily-ai
Pencarian web, ekstraksi konten, perayapan situs, dan riset mendalam melalui Tavily CLI. Lima mode perintah yang mencakup pencarian, ekstraksi, penemuan URL, perayapan massal, dan riset multi-sumber dengan kutipan. Semua perintah mendukung output JSON dan penyimpanan file untuk alur kerja terstruktur dan agen. Pola eskalasi memandu Anda dari pencarian sederhana melalui ekstraksi, pemetaan, perayapan, hingga riset komprehensif berdasarkan kebutuhan Anda. Memerlukan instalasi tavily-cli dan autentikasi kunci API melalui tvly login.
tavily-dynamic-search
tavily-ai
Cari web, filter hasil, dan ekstrak konten sehingga data pencarian mentah tidak pernah masuk ke jendela konteks Anda. Hanya keluaran print() yang telah dikurasi yang akan kembali.
tavily-extract
tavily-ai
Mengekstrak markdown atau teks bersih dari hingga 20 URL, dengan dukungan rendering JavaScript dan pemotongan berbasis kueri. Menangani halaman yang dirender JavaScript dengan kedalaman ekstraksi yang dapat dikonfigurasi (dasar untuk halaman sederhana, lanjutan untuk SPA dinamis dan tabel). Mendukung ekstraksi berbasis kueri untuk mengembalikan hanya potongan konten yang relevan, bukan halaman penuh. Mengembalikan markdown yang dioptimalkan untuk LLM secara default, dengan opsi format teks biasa dan output JSON terstruktur. Memproses hingga 20 URL dalam satu panggilan;...
tavily-research
tavily-ai
Penelitian komprehensif bertenaga AI dengan sintesis multi-sumber dan kutipan. Menghasilkan laporan terstruktur yang didasarkan pada sumber web, memakan waktu 30-120 detik tergantung pada pemilihan model (mini untuk kueri tertarget, pro untuk perbandingan kompleks). Mendukung beberapa format keluaran: laporan markdown, JSON dengan skema kustom, dan gaya kutipan yang dapat dikonfigurasi (bernomor, MLA, APA, Chicago). Menyertakan alur kerja asinkron untuk penelitian jangka panjang melalui perintah --no-wait, status, dan poll, plus real-time...
tavily-search
tavily-ai
We need to translate the given English text into Bahasa Indonesia. The text describes a web search skill with LLM-optimized results, content snippets, relevance scores, search depths, configurable result counts, domain filtering, time-range constraints, structured JSON output, specialized search modes for news and finance, optional AI-generated answers, full page content extraction, and integration. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "tavily-search" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary, labels, etc. Translation: "Pencarian web dengan hasil yang dioptimalkan untuk LLM, cuplikan konten, dan skor relevansi. Mendukung empat kedalaman pencarian (sangat cepat, cepat, dasar, lanjutan) dengan jumlah hasil yang dapat dikonfigurasi hingga 20, plus pemfilteran domain dan batasan rentang waktu. Mengembalikan output JSON terstruktur dengan cuplikan konten, sk