scrapfly-sdk-typescript

scrapfly-sdk-typescript is a skill for Claude Code, Codex from scrapfly/scrapfly-mcp. It costs 63 tokens per session (974 once invoked), scanned A, original, MIT.

A TypeScript and JavaScript toolkit for collecting content and data from web pages. It can work with pages that need JavaScript to load and can return page content, structured data, or screenshots.

In plain words
What is it for?
Use it in Node.js, Deno, Bun, or supported edge runtimes to scrape URLs, render dynamic pages, capture screenshots, or extract data.
Why use it?
It gives a codebase one way to fetch information from web pages when ordinary requests are not enough, including pages protected by anti-bot systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it in Node.js, Deno, Bun, or supported edge runtimes to scrape URLs, render dynamic pages, capture screenshots, or extract data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scrapfly/scrapfly-mcp --skill scrapfly-sdk-typescript
Clone the repo
git clone --depth 1 https://github.com/scrapfly/scrapfly-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scrapfly-sdk-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript/github.svg)](https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript)
Your own site
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scrapfly-sdk-typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00974
Opus 5.5 $0.00025 $0.00390
Sonnet 5.5 $0.00013 $0.00195
Haiku 4.5 $0.00006 $0.00097

Measured 4d ago against content hash 6b42930604be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scrapfly-sdk-typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pkg/mcpskills/skills/scrapfly-sdk-typescript/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scrapfly TypeScript SDK

Use the scrapfly-sdk package to scrape web pages from TypeScript/JavaScript with proxy rotation, anti-bot bypass (Unblocker), JavaScript rendering, screenshots, and AI extraction. Runs on Node.js, Deno, Bun, and edge runtimes (Cloudflare Workers, AWS Lambda).

When to use

  • Scraping web pages (HTML, JSON, text, markdown) from a TS/JS codebase
  • Bypassing anti-bot protections (Cloudflare, DataDome, PerimeterX, Kasada)
  • Rendering JavaScript-heavy pages with a headless browser
  • Capturing screenshots or extracting structured data
  • Concurrent scraping of many URLs

Setup

npm install scrapfly-sdk
# Deno / JSR: import from 'jsr:@scrapfly/scrapfly-sdk'
export SCRAPFLY_API_KEY="your-api-key"

Get your API key at scrapfly.io.

Basic scrape

import { ScrapflyClient, ScrapeConfig } from 'scrapfly-sdk';

const client = new ScrapflyClient({ key: process.env.SCRAPFLY_API_KEY });

const result = await client.scrape(
    new ScrapeConfig({ url: 'https://web-scraping.dev/products' }),
);

console.log(result.result.content);

Anti-bot bypass, geo-targeting, JS rendering

ScrapeConfig uses snake_case option keys, matching the API.

const result = await client.scrape(
    new ScrapeConfig({
        url: 'https://web-scraping.dev/products',
        unblocker: true,                    // bypass anti-bot
        country: 'us',                      // proxy country (ISO 3166-1 alpha-2)
        proxy_pool: 'public_residential_pool',
        render_js: true,                    // headless browser rendering
        wait_for_selector: 'div.product',   // requires render_js
        rendering_wait: 5000,               // ms, requires render_js
        format: 'markdown',                 // raw | clean_html | json | markdown | text
    }),
);

Screenshots and extraction

import { ScreenshotConfig, ExtractionConfig } from 'scrapfly-sdk';

const shot = await client.screenshot(
    new ScreenshotConfig({ url: 'https://web-scraping.dev/products' }),
);
// shot.image is the binary image data

const html = (await client.scrape(
    new ScrapeConfig({ url: 'https://web-scraping.dev/reviews' }),
)).result.content;

const data = await client.extract(
    new ExtractionConfig({
        body: html,
        content_type: 'text/html',
        extraction_prompt: 'extract the reviews as JSON with fields: review, date, rating, author',
    }),
);
console.log(data.data);

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 120 lines · 63 tokens per session scan A 6b42930604be

Subscribe to this mod's changes

scrapfly-sdk-typescript is a skill published in the GitHub repository scrapfly/scrapfly-mcp (15 stars, last pushed 3d ago), licensed MIT. It adds 63 tokens to every session and 974 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

scrapfly-sdk-typescript compared with skills from other repositories

scrapfly-sdk-typescript next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scrapfly-sdk-typescriptscrapfly/scrapfly-mcpSkill153d agoMITA63Claude Code, Codex
dev-pain-findertinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA160Claude Code, Codex
interview-preptinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA141Claude Code, Codex
tenders-findertinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA139Claude Code, Codex
freelance-gig-findertinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA98Claude Code, Codex
use-tinyfishtinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA77Claude Code, Codex
agenttinyfish-io/tinyfish-cookbookSkill2.3k6d agoMITA170Claude Code