ferroxlabs/wayland/api-data-extraction
Claude Code and agent skill by ferroxlabs/wayland
- community
Checking that the SKILL.md file is still in the repository.
Produces an API data extraction design covering authentication approach, pagination strategy, rate limit handling, response parsing specification, and error handling protocol. Describes the extraction logic without writing executable code. Use when the user asks to plan data extraction from an API, design an API integration for analytics, or document how to pull data from a third-party service into a data warehouse. Do NOT use for building application-level API clients (that is software engineering), designing the full ETL pipeline (use etl-pipeline-design), or setting up API endpoints (use api-design in software development).
Install
npx vskill@latest install ferroxlabs/wayland/api-data-extractionSKILL.md
The same SKILL.md was published earlier as ferroxlabs/wayland/api-data-extraction.
API Data Extraction
When to Use
Use this skill when:
- User asks to plan data extraction from a third-party API (SaaS tool, social media platform, payment processor)
- User needs to design the extraction logic for an API-to-warehouse integration
- User wants to document pagination, rate limiting, and error handling for an API data source
- User asks how to reliably pull data from an API on a recurring schedule
- User needs to evaluate an API's data extraction capabilities before building the pipeline
Do NOT use when:
- User wants to build an application-level API client or SDK (that is software engineering)
- User wants to design the full ETL pipeline including transform and load (use
etl-pipeline-design) - User wants to design API endpoints for others to consume (use API design skills in software development)
- User wants to set up streaming data ingestion from webhooks (use
streaming-data-architecture)
Process
- Assess the API. Gather key information:
- API documentation location: Where is the API reference?
- API type: REST, GraphQL, SOAP, or custom protocol
- Base endpoint: The root URL pattern for data retrieval
- Available endpoints: Which endpoints return the data needed
- Rate limits: Requests per second/minute/hour; burst vs sustained limits
- Data format: JSON, XML, CSV, or other response format
- Authentication method: API key, OAuth 2.0, Basic Auth, JWT, HMAC
- Sandbox/test environment: Is there a test API available for development?
- Design the authentication flow. Based on the auth method:
- API Key: Static key in header or query parameter. Store in secrets manager. Rotation policy.
- OAuth 2.0 (Client Credentials): Token endpoint, client_id/secret, token expiry, refresh logic.
- OAuth 2.0 (Authorization Code): Initial consent flow, access token storage, refresh token handling, token expiry monitoring.
- Basic Auth: Username/password encoded in header. Least secure; note limitations.
- For all methods: Where are credentials stored? How are they rotated? What happens when auth fails?
- Design the data retrieval strategy. Define how data is fetched:
- Full extraction: Pull all records each run. Simple but slow for large datasets.
- Incremental extraction: Pull only new or updated records since the last run.
- By timestamp: filter parameter (e.g., updated_since=2026-02-25T00:00:00Z)
- By ID: retrieve records with ID greater than last known maximum
- By cursor: use the API's cursor/token from the previous page
- Incremental key storage: Where the last extraction point is stored (state table, file, pipeline metadata)
- Backfill strategy: How to handle initial load or catch-up after a failure
- Design the pagination strategy. Based on the API's pagination method:
- Offset-based: page=1&limit=100, page=2&limit=100. Simple but can skip or duplicate records if data changes during extraction.
- Cursor-based: next_cursor=abc123. More reliable for changing data. Store the cursor for resumption.
- Link header: Follow the "next" URL in the response Link header. Cleanest but requires URL parsing.
- Keyset-based: after_id=12345&limit=100. Most reliable for incremental extraction.
- For all methods: What is the page size? How do you detect the last page? What is the total request count estimate?
- Design rate limit handling. Based on the API's rate limits:
- Proactive throttling: Space requests to stay under the limit (e.g., 1 request per 200ms for 5 req/sec limit)
- Reactive throttling: Detect 429 (Too Many Requests) responses and back off
- Backoff strategy: Fixed delay, exponential backoff (1s, 2s, 4s, 8s), or use Retry-After header
- Rate limit budget: If multiple pipelines share the same API key, allocate rate budget across them
- Time-window awareness: Some APIs reset limits at specific intervals (per minute, per hour, per day)
- Design the response parsing specification. Define how responses are processed:
- Response structure: Where is the data array in the response? (root level, data key, results key)
- Field mapping: Which response fields map to which target fields
- Type conversion: What types need conversion (string dates to timestamps, string numbers to decimals)
- Nested data handling: How to flatten nested objects or arrays
- Null handling: How missing or null fields are treated
- Design error handling. Define the response to each error type:
- 4xx client errors: 400 (bad request), 401 (auth expired), 403 (forbidden), 404 (not found), 429 (rate limit)
- 5xx server errors: 500 (internal), 502 (bad gateway), 503 (service unavailable)
- Network errors: Timeout, connection refused, DNS resolution failure
- Data errors: Unexpected response format, missing required fields, schema change
- For each: retry policy, maximum retries, logging, alerting
Output Format
{ "data": [ ... ], "pagination": { "next_cursor": "..." }, "meta": { "total_count": N } }
Rules
- NEVER include actual API keys, tokens, or credentials in the extraction design -- use placeholder references to a secrets manager
- ALWAYS specify the pagination strategy -- without it, the extraction will only retrieve the first page of results
- Rate limit handling must be proactive (throttle before hitting limits), not only reactive (wait after getting a 429) -- proactive throttling is more reliable and does not risk API key suspension
- The incremental extraction state (last timestamp, last ID, last cursor) must be stored durably outside the pipeline execution -- if the state is only in memory, a crash loses the extraction position
- NEVER assume API response schemas are stable -- include a schema change detection strategy (log unexpected fields, alert on missing required fields)
- Error handling must distinguish between retryable errors (429, 5xx, timeout) and non-retryable errors (400, 403, 404) -- retrying a 400 Bad Request wastes rate limit budget
- Estimated extraction time must account for rate limits AND pagination -- the total time = (total pages x page request time) + (total requests / rate limit) whichever is larger
- This skill produces the extraction DESIGN, not executable code -- describe the logic, parameters, and flow, not the implementation
- Backfill strategy must be defined at design time -- every API extraction eventually needs a backfill (initial load, catch-up after downtime, schema migration)
- ALWAYS include an extraction time estimate based on rate limits and data volume -- this determines whether the extraction fits within the pipeline's time window
Edge Cases
- API with no pagination (returns all records at once): If the dataset is small (under 10,000 records), this is acceptable. If large, request from the API provider whether pagination is available but undocumented. If truly no pagination, design the extraction to handle large responses (streaming JSON parser, memory management).
- API with inconsistent rate limits (varies by endpoint or plan): Document rate limits per endpoint. Design the extraction to use the most restrictive limit as the default, with endpoint-specific overrides where documented. Monitor actual 429 responses to calibrate.
- OAuth token expires during a long extraction: Design the token refresh to happen proactively before expiry (refresh when 80% of the token lifetime has elapsed). If a 401 occurs mid-extraction, refresh the token and resume from the last successful page (do not restart from the beginning).
- API returns data in a different timezone than expected: Explicitly specify the timezone assumption in the extraction design. Convert all timestamps to UTC immediately upon extraction. Document the API's timezone behavior (UTC, server-local, or user-configured).
- API deprecation or version change: Include the API version in the extraction design. Monitor the API provider's deprecation notices. Design the extraction to be version-aware: specify the version in the request header or URL, and include a fallback plan for when the version is deprecated (upgrade timeline, breaking change assessment).
Example
Input: "Design data extraction from the HubSpot CRM API to pull contact records into our data warehouse. We have about 50,000 contacts and need daily updates."
Output:
API Data Extraction Design: HubSpot CRM Contacts
API Assessment
| Attribute | Value | |
|---|---|---|
| API type | REST (HubSpot CRM API v3) | |
| Base endpoint | /crm/v3/objects/contacts | |
| Data format | JSON | |
| Rate limit | 100 requests per 10 seconds (private app), 150,000 requests per day | |
| Authentication | Private app access token (Bearer token in Authorization header) | |
| Documentation | HubSpot Developer Docs - CRM API |
Authentication Design
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/process/resources/skills-library/bodies/skills/data-analysis/api-data-extraction/SKILL.md
Popularity
- Repository stars
- 608
- Repository forks
- 113
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ferroxlabs/wayland/api-data-extraction)