apify-rate-limits
Skill by jeremylongshore
Handles Apify API rate limits with backoff, request queuing, batched dataset writes and staggered Actor starts. It is for developers whose Apify integrations hit 429 errors or need higher request throughput.
Install apify-rate-limits
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/apify-rate-limits ~/.claude/skills/apify-rate-limitsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/apify-rate-limits ~/.gemini/antigravity-cli/skills/apify-rate-limitsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide for handling Apify API rate limits. It explains that the apify-client library already retries 429 errors with exponential backoff, up to 8 times by default, so most workloads are not affected. When bulk operations or large fan-outs exceed what the built-in retry absorbs, the skill describes batching, queuing, staggering and monitoring to stay under the limit.
The workflow has five steps. It covers tuning client retry settings, batching dataset pushes, gating custom API calls through p-queue, staggering Actor starts by about 200 ms, and reading X-RateLimit headers to pause until reset. It also covers separate target-website throttling using Crawlee concurrency settings. The skill is aimed at developers building Apify integrations in Claude Code.
Written from the project's SKILL.md and checked against it.
What it can do
- Retry tuningSets maxRetries and minDelayBetweenRetriesMillis on the ApifyClient when defaults do not fit.
- Batched dataset pushesReplaces per-item dataset calls with batched pushItems calls, chunked into 9 MB batches for large data.
- Queued custom callsGates raw API calls through p-queue using concurrency and intervalCap to stay under 60 req/sec.
- Staggered Actor startsAdds about 200 ms between start() calls, then waits for runs to finish in parallel.
- Header-based monitoringReads X-RateLimit-Limit, Remaining and Reset headers and pauses until the limit resets.
- Target site throttlingCaps target-website concurrency with Crawlee maxConcurrency and maxRequestsPerMinute settings.
What you need
- Apify account with API access
- APIFY_TOKEN set in the environment
- apify-client npm package
- p-queue npm package for custom queuing
- crawlee for sleep and crawler concurrency
Try asking
- Add 429 retry with exponential backoff to my Apify client
- Batch my 50,000 rows into Apify dataset pushes under 9 MB each
- Queue my Apify API reads so they stay under 60 requests per second
Good to know
- Default limit is 60 requests per second per resource, per Actor, dataset or KV store.
- Platform-wide limit is higher but the source does not give a number.
- Dataset batch pushes are limited to about 9 MB per call.
- Target-website throttling is separate from the Apify API limit.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/apify-rate-limits/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
-
SKILL.md5 KB -
references/examples.md2 KB -
references/implementation.md5 KB
Alternatives to apify-rate-limits
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
apify-rate-limits: common questions
Does apify-client handle 429 errors automatically?
Yes. The source says apify-client auto-retries 429 and 500+ errors up to 8 times by default with exponential backoff. Developers can tune maxRetries and minDelayBetweenRetriesMillis if the defaults are not right.
What is the Apify API rate limit per resource?
The source gives a default of 60 requests per second per resource. Each Actor, dataset and KV store is counted independently.
How do I avoid rate limits when pushing many items to a dataset?
Batch the items into one pushItems call instead of many single calls. For very large datasets, the source says to chunk the data into batches of up to 9 MB.
How do I install apify-rate-limits?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is apify-rate-limits free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is apify-rate-limits safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to apify-rate-limits?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
