octokit-rest-v21

Handle pagination, rate limits, and concurrency for GitHub API calls with @octokit/rest v21.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill octokit-rest-v21
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: octokit-rest-v21
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/octokit-rest-v21
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill octokit-rest-v21

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GitHub API integrations often struggle with large data sets due to pagination, rate limits, and concurrency constraints. This skill provides patterns and references for using @octokit/rest v21 to perform robust, scalable API calls in Node.js/TypeScript, including authentication, pagination, and error handling.

Core Features & Use Cases

  • Authoritative reference for @octokit/rest v21 covering pagination, rate limits, and concurrency control.
  • Practical patterns for building data-fetching scripts, dashboards, and CI jobs that rely on GitHub endpoints (repos, issues, milestones).
  • Guidance on constructing resilient requests with iterator/paginate, and on using throttling/retry plugins.

Quick Start

Create an Octokit instance with authentication and demonstrate a paginated fetch with proper rate-limit handling.

Frequently Asked Questions about octokit-rest-v21

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle GitHub REST API rate limits in Node.js when fetching large datasets?

Handle GitHub REST API rate limits in Node.js by configuring the @octokit/rest v21 constructor with optional throttling and retry plugins. These plugins automatically manage request concurrency and pause calls when you hit rate limit boundaries.

What is the best way to paginate GitHub API responses for issues and milestones in TypeScript?

Paginate GitHub API responses in TypeScript using the built-in pagination utilities provided by @octokit/rest v21. You can use the paginate iterator to automatically fetch all pages of issues or milestones without manually tracking page URLs or headers.

Can I use @octokit/rest v21 with authentication patterns in CI jobs and data pipelines?

You can use @octokit/rest v21 with authentication patterns in CI jobs and data pipelines by passing tokens directly to the Octokit constructor. This setup allows your scripts to securely fetch repository data and execute automated tasks at scale.

Why does my GitHub API integration fail when fetching multiple repositories concurrently?

GitHub API integrations fail during concurrent repository fetches due to secondary rate limits. Using @octokit/rest v21 with throttling plugins controls concurrency and spaces out requests, preventing failed fetches in your data pipelines.

Does @octokit/rest v21 support TypeScript for building GitHub dashboards?

@octokit/rest v21 supports TypeScript natively for building GitHub dashboards. It provides typed interfaces for endpoints, allowing you to safely fetch repos, issues, and milestones while benefiting from autocompletion and type safety.