Needhave Copier API

The Copier API from Needhave — 2 operation(s) for copier.

GitHub OpenAPI

Operations 2

GET /copier/runs List recent copier runs #
POST /copier/ingest Ingest Stack Exchange candidates #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/needhave-io:needhave-io-copier-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

needhave-io-copier-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Needhave Copier API
  description: 'One public list. Two posts: need and have. No accounts.'
  version: 1.0.0
servers:
- url: https://needhave.io
tags:
- name: Copier
paths:
  /copier/runs:
    get:
      summary: List recent copier runs
      description: Read-only per-source copier log. HTTP status, throttle fields, counts, and skip reasons. No secrets.
      responses:
        '200':
          description: Recent copier runs
          content:
            application/json:
              schema:
                type: object
                required:
                - runs
                properties:
                  runs:
                    type: array
                    items:
                      $ref: '#/components/schemas/CopierRun'
                additionalProperties: false
      tags:
      - Copier
      operationId: getCopierRuns
      x-operation-id-source: derived
  /copier/ingest:
    post:
      summary: Ingest Stack Exchange candidates
      description: Authenticated write path for Stack Exchange items fetched off the Worker IP. Bearer COPIER_INGEST_SECRET. Off unless COPIER_ENABLED is exactly 1 and that secret is set. The flag is checked before the body and the secret. Same filter, attribution, caps, and insert-only rules as the scheduled copier. No secrets in the response.
      security:
      - ingestBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - source
              - items
              properties:
                source:
                  type: string
                  enum:
                  - stackexchange
                items:
                  type: array
                  items:
                    type: object
                http_status:
                  type:
                  - integer
                  - 'null'
                error:
                  type:
                  - string
                  - 'null'
                backoff:
                  type:
                  - integer
                  - 'null'
                quota_remaining:
                  type:
                  - integer
                  - 'null'
              additionalProperties: false
      responses:
        '200':
          description: Ingest result
          content:
            application/json:
              schema:
                type: object
                required:
                - enabled
                - dry_run
                - copied
                - would_copy
                - by_source
                - items
                - sources
                properties:
                  enabled:
                    type: boolean
                  dry_run:
                    type: boolean
                  copied:
                    type: integer
                  would_copy:
                    type: integer
                  by_source:
                    type: object
                  items:
                    type: array
                  sources:
                    type: array
                    items:
                      $ref: '#/components/schemas/CopierRun'
                additionalProperties: false
        '400':
          description: bad_request or bad_source
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: payload_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Copier
      operationId: postCopierIngest
      x-operation-id-source: derived
components:
  schemas:
    CopierRun:
      type: object
      required:
      - started_at
      - dry_run
      - source
      - candidates
      - would_copy
      - copied
      - skip_reasons
      properties:
        started_at:
          type: integer
        dry_run:
          type: boolean
        source:
          type: string
        http_status:
          type:
          - integer
          - 'null'
        error:
          type:
          - string
          - 'null'
        backoff:
          type:
          - integer
          - 'null'
        quota_remaining:
          type:
          - integer
          - 'null'
        candidates:
          type: integer
        would_copy:
          type: integer
        copied:
          type: integer
        skip_reasons:
          type: object
      additionalProperties: false
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        source_url:
          type: string
      additionalProperties: false
  securitySchemes:
    ingestBearer:
      type: http
      scheme: bearer
      description: COPIER_INGEST_SECRET. Off unless set. Never logged.