OpenAffiliate Programs API

The Programs API from OpenAffiliate — 2 operation(s) for programs.

GitHub OpenAPI

Operations 2

GET /api/programs Search affiliate programs #
GET /api/programs/{slug} Get a program by slug #

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/openaffiliate-dev:openaffiliate-dev-programs-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

openaffiliate-dev-programs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenAffiliate REST Programs API
  version: 1.0.0
  description: 'Search the public affiliate program registry and read program terms. No authentication or API key is required. The only write is POST /api/submissions, which queues a program for a maintainer to verify; it never lists or scores anything by itself. Versioning: every response carries an API-Version header, currently 1, and a request may send API-Version: 1 to pin it (any other value returns 400 UNSUPPORTED_API_VERSION). Breaking changes ship only under a new major version; additive changes (new fields, parameters or endpoints) can arrive in the current one. Deprecation: a field, parameter or endpoint is deprecated at least 90 days before it is removed. Its responses then carry a Deprecation header (RFC 9745) with the date it was deprecated and a Sunset header (RFC 8594) with the date it stops working, and the change is listed in the changelog at https://openaffiliate.dev/changelog.'
servers:
- url: https://openaffiliate.dev
tags:
- name: Programs
paths:
  /api/programs:
    get:
      operationId: searchPrograms
      summary: Search affiliate programs
      description: 'Search active programs. Returns a programs array, total before pagination and applied filters. Unverified terms are omitted or empty. Nothing in the query is rejected, so older clients keep working: unknown parameters are ignored (tracking parameters are fine), a repeated parameter uses its first value, an unknown sort falls back to relevance (legacy sort=new means newest), a non-boolean verified does not filter, limit and offset are read as a leading integer (so 1x reads as 1; text with no leading digits or a negative offset counts as 0), and an unknown type or category simply matches nothing.'
      parameters:
      - name: API-Version
        in: header
        required: false
        description: Pin the API major version. Omitted means the current version, 1. Any other value returns 400 UNSUPPORTED_API_VERSION.
        schema:
          type: string
          enum:
          - '1'
          default: '1'
      - name: q
        in: query
        required: false
        description: Search keywords. Empty means all active programs.
        schema:
          type: string
          default: ''
      - name: category
        in: query
        required: false
        description: Category name, matched exactly (case-sensitive). Unknown categories return an empty list.
        schema:
          type: string
      - name: type
        in: query
        required: false
        description: Filter by commission type.
        schema:
          type: string
          enum:
          - recurring
          - one-time
          - tiered
          - hybrid
      - name: verified
        in: query
        required: false
        description: true restricts results to verified entries; false or omission does not filter verification status.
        schema:
          type: boolean
          default: false
      - name: include_description
        in: query
        required: false
        description: Include description text in keyword matching (descriptions are always returned).
        schema:
          type: boolean
          default: false
      - name: sort
        in: query
        required: false
        description: Result order. relevance puts name matches first when q is present, then orders by OAS (programs not scored yet after, by commission).
        schema:
          type: string
          enum:
          - relevance
          - az
          - za
          - commission_desc
          - newest
          default: relevance
      - name: limit
        in: query
        required: false
        description: Maximum results, capped at 500. Zero or omission means all remaining results.
        schema:
          type: integer
          minimum: 0
          maximum: 9007199254740991
          default: 0
      - name: offset
        in: query
        required: false
        description: Skip this many results before applying limit.
        schema:
          type: integer
          minimum: 0
          maximum: 9007199254740991
          default: 0
      responses:
        '200':
          description: Matching active programs (possibly none).
          headers:
            API-Version:
              $ref: '#/components/headers/APIVersion'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProgramSearch'
        '400':
          description: API-Version names a version this API does not serve.
          headers:
            API-Version:
              $ref: '#/components/headers/APIVersion'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Programs
  /api/programs/{slug}:
    get:
      operationId: getProgram
      summary: Get a program by slug
      description: Read a program, including paused entries and brands with no public program. Aliases resolve to the canonical slug in the 200 response. Unverified cookie, approval and payout terms are withheld. no_program and discontinued entries have neutral commission/payout placeholders, answer and alternatives rather than joinable terms.
      parameters:
      - name: slug
        in: path
        required: true
        description: Canonical program slug or a registered alias.
        schema:
          type: string
      - name: API-Version
        in: header
        required: false
        description: Pin the API major version. Omitted means the current version, 1. Any other value returns 400 UNSUPPORTED_API_VERSION.
        schema:
          type: string
          enum:
          - '1'
          default: '1'
      responses:
        '200':
          description: Program details or a no-program answer.
          headers:
            API-Version:
              $ref: '#/components/headers/APIVersion'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Program'
        '400':
          description: API-Version names a version this API does not serve.
          headers:
            API-Version:
              $ref: '#/components/headers/APIVersion'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No program or alias matches the slug.
          headers:
            API-Version:
              $ref: '#/components/headers/APIVersion'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Programs
components:
  schemas:
    ProgramSearch:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    Program:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    Error:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
  headers:
    Deprecation:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    Sunset:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    APIVersion:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true