Skill scraperapi-research-agent
scriptsMelakukan riset web secara otonom dengan melakukan scraping sumber melalui ScraperAPI dan menyusunnya menjadi laporan markdown yang dilengkapi sitasi menggunakan Claude.
- Bintang GitHub
- 10
- File
- 3
- Commit terakhir
- 7 Agu 2026
- Lisensi
- MIT
- Tool yang diizinkan
- —
Apa fungsi skill scraperapi-research-agent?
scraperapi-research-agent adalah agent skill. Melakukan riset web secara otonom dengan melakukan scraping sumber melalui ScraperAPI dan menyusunnya menjadi laporan markdown yang dilengkapi sitasi menggunakan Claude.
Ringkasan dibuat dari SKILL.md skill ini.
Tentang skill scraperapi-research-agent
Melakukan investigasi web yang mendalam dan menghasilkan laporan dengan sitasi adalah kemampuan yang ditawarkan agent ini bagi para peneliti dan developer. Ketika sebuah agent perlu melampaui data pelatihan internalnya untuk menemukan informasi real-time, ia dapat memuat skill ini untuk menjalankan loop riset secara otonom. Prosesnya dimulai dengan memecah pertanyaan pengguna menjadi kueri pencarian, menggunakan ScraperAPI untuk menemukan dan mengambil konten web dalam format markdown, lalu mengunggah halaman-halaman tersebut ke Anthropic Files API sebagai artefak teks.
Claude kemudian menyintesis dokumen yang diunggah tersebut menjadi laporan markdown terstruktur yang mencakup ringkasan eksekutif, temuan yang terorganisir, dan sitasi inline. Tool ini mengandalkan ScraperAPI untuk penemuan web dan Anthropic Files API untuk ingest dokumen. Anda dapat mengontrol cakupan riset menggunakan parameter seperti max-sources untuk mengelola konsumsi kredit ScraperAPI dan flag output untuk menyimpan laporan akhir ke dalam sebuah file.
Apa yang bisa dilakukan agent dengannya
- 1Melakukan deep dive pada topik webMinta investigasi pada subjek yang kompleks menggunakan sumber web asli alih-alih hanya mengandalkan memori model.
Ditulis dari SKILL.md milik skill tersebut. Setiap use case diverifikasi dengan kutipan darinya.
Cara install skill scraperapi-research-agent
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill scraperapi-research-agent di Claude Code
~/.claude/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.claude/skills/scraperapi-research-agentInstall skill scraperapi-research-agent di Claude Code (project)
.claude/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent .claude/skills/scraperapi-research-agentInstall skill scraperapi-research-agent di Codex
~/.agents/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.agents/skills/scraperapi-research-agentInstall skill scraperapi-research-agent di Gemini CLI
~/.gemini/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.gemini/skills/scraperapi-research-agentInstall skill scraperapi-research-agent di Claude.ai
npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent scraperapi-research-agent && zip -r scraperapi-research-agent.zip scraperapi-research-agent # claude.ai → Customize → Skills → + → Create skill → Upload a skill → scraperapi-research-agent.zip
SKILL.md
Lihat di GitHubScraperAPI Research Agent
End-to-end autonomous research: ScraperAPI finds and fetches sources → Anthropic Files API ingests them as cited documents → Claude synthesizes a report.
Run it:
# Install dependencies
pip install requests anthropic
# Set env vars
export SCRAPERAPI_API_KEY=your-key
export ANTHROPIC_API_KEY=your-key
# Run
python skills/scraperapi-research-agent/scripts/research_agent.py \
--question "What are the best practices for rate limiting in web APIs?" \
--max-sources 5 \
--output report.md
See scripts/research_agent.py for the full implementation.
Planning Checklist
Before starting a research run, establish:
- Question clarity — Is the question specific enough to produce useful search queries? Vague questions like "tell me about AI" produce noise. Better: "What are the tradeoffs between RAG and fine-tuning for domain-specific LLMs?"
- Source count — How many sources are needed? 3–5 is usually sufficient for a factual summary; 8–10 for a comparative analysis. More sources = more ScraperAPI credits.
- Recency — Does the answer depend on recent events? Search queries will use recent date filters.
- Credit budget — Each source costs ~1 credit to scrape (more with JS rendering). 5 sources = ~5–10 credits total.
- Stop condition — Define when to stop. The default stop is
--max-sources(5). Do not loop indefinitely.
Research Loop
1. PLAN
↓ Claude decomposes the question into 2–3 targeted search queries
2. DISCOVER
↓ ScraperAPI google/search structured endpoint → list of (url, title, snippet)
3. DEDUPLICATE
↓ Filter to top N unique URLs (default: 5), skipping PDFs and low-quality domains
4. FETCH
↓ ScraperAPI scrape each URL as markdown (output_format=markdown)
↓ Skip pages returning < 200 characters (blocked, error pages)
5. UPLOAD
↓ Upload each scraped page to Anthropic Files API as a text/plain artifact
↓ Store file_id for each source
6. SYNTHESIZE
↓ Claude (claude-opus-4-8, adaptive thinking) reads all document artifacts
↓ Returns structured report with inline citations [1], [2]...
7. CLEAN UP
↓ Delete uploaded file artifacts from Anthropic
↓ Write or print the final report
STOP when: max_sources reached, or all queries exhausted (whichever comes first).
Stop Conditions
The agent stops when any of the following is true:
--max-sourcesreached (default: 5) — limits credit spend- All search queries exhausted — no more URLs to explore
--max-creditsexceeded — hard cap on ScraperAPI credit use (optional)
Without stop conditions, a research loop will keep fetching until credits are gone.
Key Parameters
| Flag | Default | Description |
|---|---|---|
--question |
(required) | Research question |
--max-sources |
5 | Max pages to scrape (credit budget) |
--output |
stdout | Write report to file |
--country |
us |
ScraperAPI country code for geo-targeted results |
--model |
claude-opus-4-8 |
Anthropic model for synthesis |
Output Format
See assets/report_template.md for the report structure.
The report is a markdown document with:
- Title derived from the research question
- Summary — 2–3 sentence executive summary
- Findings — structured sections with inline
[N]citations - Sources — numbered bibliography with URLs and titles
Credit Cost Estimate
| Sources | Scraping credits | Anthropic tokens | Total estimate |
|---|---|---|---|
| 3 | ~3 | ~15K in / ~2K out | Low |
| 5 | ~5 | ~25K in / ~3K out | Medium |
| 10 | ~10 | ~50K in / ~5K out | Higher |
Prompt caching applies to the scraped content on repeated runs for the same question.
ScraperAPI Endpoints Used
- Google Search —
GET https://api.scraperapi.com/structured/google/search— finds source URLs - Scrape —
GET https://api.scraperapi.com/?output_format=markdown— fetches page content
See ScraperAPI docs for rate limits and credit costs.
Anthropic APIs Used
- Files API (beta) — uploads scraped pages as document artifacts
- Messages API — Claude synthesizes the report with citations
Requires ANTHROPIC_API_KEY with access to claude-opus-4-8 and the Files API beta.
Berkas dalam skill ini
3Pertanyaan seputar skill scraperapi-research-agent
Bagaimana cara install skill scraperapi-research-agent di Claude Code?
Jalankan npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.claude/skills/scraperapi-research-agent. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill scraperapi-research-agent?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.
Apa yang dihasilkan oleh research agent ini?
Agent ini menghasilkan laporan markdown terstruktur yang mencakup judul, ringkasan eksekutif, temuan dengan sitasi inline, dan bibliografi bernomor.
Bagaimana agent mengontrol penggunaan resource-nya?
Agent menggunakan kondisi stop seperti mencapai jumlah sumber maksimum, menghabiskan kueri pencarian, atau mencapai batas kredit untuk mencegah loop tak terbatas.
API apa saja yang dibutuhkan untuk menjalankan skill ini?
Skill ini membutuhkan ScraperAPI key untuk web scraping dan Anthropic API key untuk sintesis dokumen.