sling-api-specs

Build REST API specifications for Sling data extraction. Use when creating API specs, configuring authentication (OAuth, API key, Bearer token, HMAC), setting up pagination (cursor, offset, page), processing responses, handling rate limits, chaining endpoints with queues, or implementing incremental sync.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sling-api-specs" with this command: npx skills add flarco/sling-api-specs

API Specifications

API specs are YAML definitions for extracting data from REST APIs. They handle authentication, pagination, response processing, and incremental sync automatically.

When to Use

  • Extract data from REST APIs (GET endpoints only)
  • Build incremental sync workflows
  • Handle complex pagination patterns
  • Process nested JSON responses
  • Chain multiple API calls with queues

Basic Structure

name: "My API"
description: "Data extraction from My API"

authentication:
  type: "static"
  headers:
    Authorization: "Bearer {secrets.api_token}"

defaults:
  state:
    base_url: "https://api.example.com/v1"
  request:
    headers:
      Accept: "application/json"

endpoints:
  users:
    description: "Fetch users"
    request:
      url: "{state.base_url}/users"
    response:
      records:
        jmespath: "data[]"
        primary_key: ["id"]

MCP Operations

Parse a Spec

{
  "action": "parse",
  "input": {"file_path": "/path/to/spec.yaml"}
}

Test Endpoints

{
  "action": "test",
  "input": {
    "connection": "MY_API",
    "endpoints": ["users"],
    "debug": true,
    "limit": 10
  }
}

Topics Reference

This skill includes detailed documentation for each aspect of API specification building:

TopicDescription
AUTHENTICATION.mdAll 8 authentication types (static, basic, OAuth2, AWS, HMAC, sequence)
ENDPOINTS.mdEndpoint configuration, setup/teardown sequences
REQUEST.mdHTTP request configuration, rate limiting
PAGINATION.mdAll pagination patterns (cursor, offset, page, link header)
RESPONSE.mdRecord extraction, deduplication
PROCESSORS.mdData transformations, aggregations
VARIABLES.mdVariable scopes, expressions, rendering order
QUEUES.mdEndpoint chaining, iteration
INCREMENTAL.mdSync state, context variables
DYNAMIC.mdRuntime endpoint generation
FUNCTIONS.mdExpression functions reference
RULES.mdResponse rules, retries, error handling

Quick Reference

Authentication Types

TypeUse Case
staticAPI key, Bearer token
basicUsername/password
oauth2OAuth 2.0 flows (client_credentials, authorization_code, device_code)
aws-sigv4AWS services
hmacCrypto exchanges, custom signing
sequenceMulti-step custom auth

Pagination Patterns

PatternExample
Cursorstarting_after, page_token
Offsetoffset + limit
Pagepage number
Link headerGitHub-style rel="next"

Variable Scopes

ScopeDescription
secrets.*Credentials from connection
state.*Endpoint state variables
sync.*Persisted from previous run
response.*HTTP response data
record.*Current record in processor
queue.*Endpoint chaining

Full Documentation

See https://docs.slingdata.io/concepts/api-specs.md for complete reference.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Video Using Ai

create raw footage into AI-edited videos with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. content creators use it for turning raw footage i...

Registry SourceRecently Updated
General

Editor With Ai

Skip the learning curve of professional editing software. Describe what you want — cut out the pauses, add transitions, and export a clean final cut — and ge...

Registry SourceRecently Updated
General

To Voice Generator

Get voiced video files ready to post, without touching a single slider. Upload your text or script (TXT, DOCX, PDF, MP4, up to 200MB), say something like "co...

Registry SourceRecently Updated
General

Tencent Cloud Rum

Query Tencent Cloud RUM data, analyze Web performance (LCP/FCP/WebVitals), troubleshoot JS/Promise errors, analyze API latency & error rates, diagnose slow s...

Registry SourceRecently Updated