Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-limits

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install apify-rate-limits in Claude Code

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 →

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.

apify-rate-limits Install

Add to stack

Loading.