[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78X4SF87E50F4JA24SA3S7J":3,"skill-same:01M78X4SF87E50F4JA24SA3S7J":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M78X4SF87E50F4JA24SA3S7J","apify-rate-limits",null,"Handle Apify API rate limits with proper backoff and request queuing.\nUse when hitting 429 errors, optimizing API request throughput,\nor implementing rate-aware client wrappers.\nTrigger: \"apify rate limit\", \"apify throttling\", \"apify 429\",\n\"apify retry\", \"apify backoff\", \"too many requests apify\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--apify-pack--apify-rate-limits\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: apify-rate-limits\ndescription: |\n  Handle Apify API rate limits with proper backoff and request queuing.\n  Use when hitting 429 errors, optimizing API request throughput,\n  or implementing rate-aware client wrappers.\n  Trigger: \"apify rate limit\", \"apify throttling\", \"apify 429\",\n  \"apify retry\", \"apify backoff\", \"too many requests apify\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, scraping, automation, apify]\ncompatible-with: claude-code\n---\n\n# Apify Rate Limits\n\n## Overview\n\nThe Apify API enforces rate limits per resource. The `apify-client` library auto-retries 429s (up to 8 times with exponential backoff), but you need to understand the limits for bulk operations and custom API calls.\n\n## Apify Rate Limit Rules\n\n| Scope | Limit | Notes |\n|-------|-------|-------|\n| Per resource (default) | 60 req\u002Fsec | Applies to each Actor, dataset, KV store independently |\n| Dataset push | 60 req\u002Fsec per dataset | Batch items to reduce call count |\n| Actor runs | 60 req\u002Fsec per Actor | Start runs in sequence or with delays |\n| Platform-wide | Higher limit | Aggregate across all resources |\n\n**\"Per resource\" means:** calls to dataset A and dataset B each get 60 req\u002Fsec independently.\n\nRate limit headers returned:\n- `X-RateLimit-Limit` — max requests per interval\n- `X-RateLimit-Remaining` — remaining requests\n- `X-RateLimit-Reset` — epoch seconds when limit resets\n\n## Instructions\n\n### Step 1: Understand Built-in Retries\n\nThe `apify-client` package handles rate limits automatically:\n\n```typescript\nimport { ApifyClient } from 'apify-client';\n\n\u002F\u002F Default: retries up to 8 times on 429 and 500+ errors\nconst client = new ApifyClient({ token: process.env.APIFY_TOKEN });\n\n\u002F\u002F Customize retry behavior\nconst client = new ApifyClient({\n  token: process.env.APIFY_TOKEN,\n  maxRetries: 5,         \u002F\u002F Default: 8\n  minDelayBetweenRetriesMillis: 500,  \u002F\u002F Default: 500\n});\n```\n\n### Step 2: Batch Operations to Reduce API Calls\n\n```typescript\n\u002F\u002F BAD: 1000 API calls (easily rate limited)\nfor (const item of items) {\n  await client.dataset(dsId).pushItems([item]);\n}\n\n\u002F\u002F GOOD: 1 API call (up to 9MB payload)\nawait client.dataset(dsId).pushItems(items);\n\n\u002F\u002F GOOD: Chunked for very large datasets\nfunction chunkArray\u003CT>(arr: T[], size: number): T[][] {\n  const chunks: T[][] = [];\n  for (let i = 0; i \u003C arr.length; i += size) {\n    chunks.push(arr.slice(i, i + size));\n  }\n  return chunks;\n}\n\nfor (const chunk of chunkArray(items, 1000)) {\n  await client.dataset(dsId).pushItems(chunk);\n}\n```\n\n### Step 3: Queue-Based Rate Limiting for Custom Calls\n\n```typescript\nimport PQueue from 'p-queue';\n\n\u002F\u002F 50 requests per second with max 10 concurrent\nconst apiQueue = new PQueue({\n  concurrency: 10,\n  interval: 1000,\n  intervalCap: 50,\n});\n\n\u002F\u002F All API calls go through the queue\nasync function rateLimitedCall\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n  return apiQueue.add(fn) as Promise\u003CT>;\n}\n\n\u002F\u002F Usage\nconst results = await Promise.all(\n  actorIds.map(id =>\n    rateLimitedCall(() => client.actor(id).get())\n  )\n);\n```\n\n### Step 4: Stagger Actor Starts\n\n```typescript\nimport { sleep } from 'crawlee';\n\n\u002F\u002F Start multiple Actor runs with delays to avoid 429 on the runs endpoint\nasync function staggeredRuns(\n  actorId: string,\n  inputs: Record\u003Cstring, unknown>[],\n  delayMs = 200,\n) {\n  const runs = [];\n  for (const input of inputs) {\n    const run = await client.actor(actorId).start(input);\n    runs.push(run);\n    await sleep(delayMs);\n  }\n\n  \u002F\u002F Wait for all to finish\n  const finished = await Promise.all(\n    runs.map(run => client.run(run.id).waitForFinish())\n  );\n  return finished;\n}\n```\n\n### Step 5: Rate Limit Monitor\n\n```typescript\nclass ApifyRateLimitMonitor {\n  private remaining = 60;\n  private resetAt = Date.now();\n  private warningThreshold: number;\n\n  constructor(warningThreshold = 10) {\n    this.warningThreshold = warningThreshold;\n  }\n\n  updateFromHeaders(headers: Record\u003Cstring, string>) {\n    if (headers['x-ratelimit-remaining']) {\n      this.remaining = parseInt(headers['x-ratelimit-remaining']);\n    }\n    if (headers['x-ratelimit-reset']) {\n      this.resetAt = parseInt(headers['x-ratelimit-reset']) * 1000;\n    }\n\n    if (this.remaining \u003C this.warningThreshold) {\n      const waitMs = Math.max(0, this.resetAt - Date.now());\n      console.warn(\n        `Rate limit warning: ${this.remaining} requests remaining. ` +\n        `Resets in ${waitMs}ms.`\n      );\n    }\n  }\n\n  shouldPause(): boolean {\n    return this.remaining \u003C= 1 && Date.now() \u003C this.resetAt;\n  }\n\n  getWaitMs(): number {\n    return Math.max(0, this.resetAt - Date.now());\n  }\n}\n```\n\n## Crawlee-Level Concurrency (Target Website Rate Limits)\n\nSeparate from API rate limits, you must also respect the target website:\n\n```typescript\nconst crawler = new CheerioCrawler({\n  \u002F\u002F Limit concurrent requests to the target site\n  maxConcurrency: 10,           \u002F\u002F Max parallel requests\n  minConcurrency: 1,            \u002F\u002F Min parallel requests\n  maxRequestsPerMinute: 120,    \u002F\u002F Hard cap per minute\n\n  \u002F\u002F Auto-scale based on system resources\n  autoscaledPoolOptions: {\n    desiredConcurrency: 5,\n    maxConcurrency: 20,\n  },\n\n  \u002F\u002F Delay between requests\n  requestHandlerTimeoutSecs: 30,\n});\n```\n\n## Error Handling\n\n| Scenario | Detection | Response |\n|----------|-----------|----------|\n| API 429 | `apify-client` auto-retries | Usually transparent; increase delays if persistent |\n| Target site 429 | `statusCode === 429` in handler | Reduce `maxConcurrency`, add proxy rotation |\n| Burst of starts | Starting 100+ runs at once | Stagger with 200ms delays |\n| Large data push | Single 50MB dataset push | Chunk into 9MB batches |\n\n## Resources\n\n- [Apify API Rate Limits](https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fv2)\n- [p-queue Documentation](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue)\n- [Crawlee Auto-scaling](https:\u002F\u002Fcrawlee.dev\u002Fjs\u002Fdocs\u002Fguides\u002Fconfiguration)\n\n## Next Steps\n\nFor security configuration, see `apify-security-basics`.\n","# Apify Rate Limits\n\n## Overview\n\nThe Apify API enforces rate limits per resource. The `apify-client` library auto-retries 429s (up to 8 times with exponential backoff), but you need to understand the limits for bulk operations and custom API calls.\n\n## Apify Rate Limit Rules\n\n| Scope | Limit | Notes |\n|-------|-------|-------|\n| Per resource (default) | 60 req\u002Fsec | Applies to each Actor, dataset, KV store independently |\n| Dataset push | 60 req\u002Fsec per dataset | Batch items to reduce call count |\n| Actor runs | 60 req\u002Fsec per Actor | Start runs in sequence or with delays |\n| Platform-wide | Higher limit | Aggregate across all resources |\n\n**\"Per resource\" means:** calls to dataset A and dataset B each get 60 req\u002Fsec independently.\n\nRate limit headers returned:\n- `X-RateLimit-Limit` — max requests per interval\n- `X-RateLimit-Remaining` — remaining requests\n- `X-RateLimit-Reset` — epoch seconds when limit resets\n\n## Instructions\n\n### Step 1: Understand Built-in Retries\n\nThe `apify-client` package handles rate limits automatically:\n\n```typescript\nimport { ApifyClient } from 'apify-client';\n\n\u002F\u002F Default: retries up to 8 times on 429 and 500+ errors\nconst client = new ApifyClient({ token: process.env.APIFY_TOKEN });\n\n\u002F\u002F Customize retry behavior\nconst client = new ApifyClient({\n  token: process.env.APIFY_TOKEN,\n  maxRetries: 5,         \u002F\u002F Default: 8\n  minDelayBetweenRetriesMillis: 500,  \u002F\u002F Default: 500\n});\n```\n\n### Step 2: Batch Operations to Reduce API Calls\n\n```typescript\n\u002F\u002F BAD: 1000 API calls (easily rate limited)\nfor (const item of items) {\n  await client.dataset(dsId).pushItems([item]);\n}\n\n\u002F\u002F GOOD: 1 API call (up to 9MB payload)\nawait client.dataset(dsId).pushItems(items);\n\n\u002F\u002F GOOD: Chunked for very large datasets\nfunction chunkArray\u003CT>(arr: T[], size: number): T[][] {\n  const chunks: T[][] = [];\n  for (let i = 0; i \u003C arr.length; i += size) {\n    chunks.push(arr.slice(i, i + size));\n  }\n  return chunks;\n}\n\nfor (const chunk of chunkArray(items, 1000)) {\n  await client.dataset(dsId).pushItems(chunk);\n}\n```\n\n### Step 3: Queue-Based Rate Limiting for Custom Calls\n\n```typescript\nimport PQueue from 'p-queue';\n\n\u002F\u002F 50 requests per second with max 10 concurrent\nconst apiQueue = new PQueue({\n  concurrency: 10,\n  interval: 1000,\n  intervalCap: 50,\n});\n\n\u002F\u002F All API calls go through the queue\nasync function rateLimitedCall\u003CT>(fn: () => Promise\u003CT>): Promise\u003CT> {\n  return apiQueue.add(fn) as Promise\u003CT>;\n}\n\n\u002F\u002F Usage\nconst results = await Promise.all(\n  actorIds.map(id =>\n    rateLimitedCall(() => client.actor(id).get())\n  )\n);\n```\n\n### Step 4: Stagger Actor Starts\n\n```typescript\nimport { sleep } from 'crawlee';\n\n\u002F\u002F Start multiple Actor runs with delays to avoid 429 on the runs endpoint\nasync function staggeredRuns(\n  actorId: string,\n  inputs: Record\u003Cstring, unknown>[],\n  delayMs = 200,\n) {\n  const runs = [];\n  for (const input of inputs) {\n    const run = await client.actor(actorId).start(input);\n    runs.push(run);\n    await sleep(delayMs);\n  }\n\n  \u002F\u002F Wait for all to finish\n  const finished = await Promise.all(\n    runs.map(run => client.run(run.id).waitForFinish())\n  );\n  return finished;\n}\n```\n\n### Step 5: Rate Limit Monitor\n\n```typescript\nclass ApifyRateLimitMonitor {\n  private remaining = 60;\n  private resetAt = Date.now();\n  private warningThreshold: number;\n\n  constructor(warningThreshold = 10) {\n    this.warningThreshold = warningThreshold;\n  }\n\n  updateFromHeaders(headers: Record\u003Cstring, string>) {\n    if (headers['x-ratelimit-remaining']) {\n      this.remaining = parseInt(headers['x-ratelimit-remaining']);\n    }\n    if (headers['x-ratelimit-reset']) {\n      this.resetAt = parseInt(headers['x-ratelimit-reset']) * 1000;\n    }\n\n    if (this.remaining \u003C this.warningThreshold) {\n      const waitMs = Math.max(0, this.resetAt - Date.now());\n      console.warn(\n        `Rate limit warning: ${this.remaining} requests remaining. ` +\n        `Resets in ${waitMs}ms.`\n      );\n    }\n  }\n\n  shouldPause(): boolean {\n    return this.remaining \u003C= 1 && Date.now() \u003C this.resetAt;\n  }\n\n  getWaitMs(): number {\n    return Math.max(0, this.resetAt - Date.now());\n  }\n}\n```\n\n## Crawlee-Level Concurrency (Target Website Rate Limits)\n\nSeparate from API rate limits, you must also respect the target website:\n\n```typescript\nconst crawler = new CheerioCrawler({\n  \u002F\u002F Limit concurrent requests to the target site\n  maxConcurrency: 10,           \u002F\u002F Max parallel requests\n  minConcurrency: 1,            \u002F\u002F Min parallel requests\n  maxRequestsPerMinute: 120,    \u002F\u002F Hard cap per minute\n\n  \u002F\u002F Auto-scale based on system resources\n  autoscaledPoolOptions: {\n    desiredConcurrency: 5,\n    maxConcurrency: 20,\n  },\n\n  \u002F\u002F Delay between requests\n  requestHandlerTimeoutSecs: 30,\n});\n```\n\n## Error Handling\n\n| Scenario | Detection | Response |\n|----------|-----------|----------|\n| API 429 | `apify-client` auto-retries | Usually transparent; increase delays if persistent |\n| Target site 429 | `statusCode === 429` in handler | Reduce `maxConcurrency`, add proxy rotation |\n| Burst of starts | Starting 100+ runs at once | Stagger with 200ms delays |\n| Large data push | Single 50MB dataset push | Chunk into 9MB batches |\n\n## Resources\n\n- [Apify API Rate Limits](https:\u002F\u002Fdocs.apify.com\u002Fapi\u002Fv2)\n- [p-queue Documentation](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fp-queue)\n- [Crawlee Auto-scaling](https:\u002F\u002Fcrawlee.dev\u002Fjs\u002Fdocs\u002Fguides\u002Fconfiguration)\n\n## Next Steps\n\nFor security configuration, see `apify-security-basics`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","scraping","automation","apify","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Handle Apify API rate limits with proper backoff and request queuing.\nUse when hitting 429 errors, optimizing API request throughput,\nor implementing rate-aware client wrappers.\nTrigger: \"apify rate limit\", \"apify throttling\", \"apify 429\",\n\"apify retry\", \"apify backoff\", \"too many requests apify\".\n","Read, Write, Edit","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--apify-pack--apify-rate-limits",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill apify-rate-limits",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill apify-rate-limits",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill apify-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--apify-pack--apify-rate-limits\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]