REST API

Endorso API

Convert any product URL into a tracked affiliate link. Built for AI agents, bots, and developers. Register in one API call, start monetizing product recommendations instantly.

Quick Start

Get an API key and match your first link in 30 seconds:

1. Register your bot
curl -X POST https://api.endorso.com/api/v1/partners/register \
  -H "Content-Type: application/json" \
  -d '{"name": "My AI Assistant", "website": "https://myapp.com"}'

# Response:
# { "partner": { "api_key": "na_abc123...", "tag": "my-ai-assistant-x4k2" } }
2. Convert a URL to affiliate link
curl -X POST https://api.endorso.com/api/v1/links/match \
  -H "Authorization: Bearer na_abc123..." \
  -H "Content-Type: application/json" \
  -d '{"url": "https://amazon.com/dp/B0DLRL1G87"}'

# Response:
# { "matched": true,
#   "program": { "name": "Amazon Associates", "commission_rate": "1-10%" },
#   "link": { "endorso_url": "https://api.endorso.com/t/abc123?sub=my-ai-assistant" }
# }
# Share the endorso_url — it tracks clicks and redirects to Amazon
3. Earn commissions
# When someone clicks the endorso_url:
# 1. Click is tracked with your partner tag
# 2. User redirected to Amazon with affiliate tracking
# 3. If they buy, you earn 70% of the commission
# 4. Track your earnings: GET /api/v1/partners/me

Endpoints

POST/api/v1/partners/register

Register as a partner, get an API key instantly. No approval needed.

namestringreqYour bot/app name
websitestringoptYour website URL
descriptionstringoptWhat your bot does
POST/api/v1/links/matchBearer

Convert any product URL to a tracked affiliate link

urlstringreqProduct URL (Amazon, AliExpress, any supported domain)
geostringoptUser country code (US, GB, DE, etc.)
GET/api/v1/products/search

Search products across all feeds

qstringreqSearch query
limitnumberoptResults per page (max 200, default 50)
GET/api/v1/networks

List all 120+ supported affiliate networks

GET/api/v1/feed

AI product feed for smart banners

substringreqYour partner tag for click attribution
nichestringoptelectronics, fashion, home, beauty, sports, books, travel, tech, pets
formatstringoptjson or html (default: json)

Revenue Model

70%
Your share
Of every commission
30%
Platform fee
Network costs + infra
120+
Networks
Amazon, Impact, Awin...

Use Cases

AI Shopping Assistants

Convert product recommendations to affiliate links and earn on every purchase.

Content Generation Bots

Generate product reviews or deal roundups with monetized links built in.

Price Comparison Tools

Show product prices across retailers with tracked affiliate links.

Social Media Bots

Auto-share trending deals on Twitter, Telegram, or Discord with tracked links.

Email Newsletters

Embed smart product banners that update automatically with your tag.

Browser Extensions

Convert any product page into an affiliate link with one click.

Integration Examples

Python
import requests

# Register
r = requests.post("https://api.endorso.com/api/v1/partners/register",
    json={"name": "My Python Bot"})
api_key = r.json()["partner"]["api_key"]

# Match a link
r = requests.post("https://api.endorso.com/api/v1/links/match",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"url": "https://amazon.com/dp/B0DLRL1G87"})
print("Share:", r.json()["link"]["endorso_url"])
JavaScript / Node.js
const reg = await fetch("https://api.endorso.com/api/v1/partners/register", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ name: "My JS Bot" })
});
const { partner } = await reg.json();

const match = await fetch("https://api.endorso.com/api/v1/links/match", {
  method: "POST",
  headers: { "Authorization": `Bearer ${partner.api_key}`, "Content-Type": "application/json" },
  body: JSON.stringify({ url: "https://amazon.com/dp/B0DLRL1G87" })
});
console.log("Share:", (await match.json()).link.endorso_url);

ChatGPT / AI Integration

Use Endorso as a ChatGPT Action

Import our OpenAPI spec into a custom GPT to let ChatGPT generate affiliate links:

https://endorso.com/.well-known/openapi.json

AI Plugin Manifest

For ChatGPT plugins and other AI platforms:

https://endorso.com/.well-known/ai-plugin.json

Ready to monetize?

Register your bot and start earning in 30 seconds.