Getting Started

Quick Start

Get up and running in 30 seconds with the CLI, MCP, or REST API.

CLI

No install required. Run directly with npx.

terminal
npx openaffiliate search "database"
terminal
npx openaffiliate info stripe

Append --json to any command for machine-readable output. Full CLI reference →

MCP

Add OpenAffiliate to any MCP-compatible AI client (Claude, ChatGPT, Cursor) with a single config block.

mcp config
{
  "mcpServers": {
    "openaffiliate": {
      "url": "https://openaffiliate.dev/api/mcp"
    }
  }
}

MCP server reference →

REST API

Public JSON API. No authentication required.

curl
curl https://openaffiliate.dev/api/programs?q=database

REST API reference →

Next steps