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:
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" } }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# 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/meEndpoints
/api/v1/partners/registerRegister as a partner, get an API key instantly. No approval needed.
namestringreq — Your bot/app namewebsitestringopt — Your website URLdescriptionstringopt — What your bot does/api/v1/links/matchBearerConvert any product URL to a tracked affiliate link
urlstringreq — Product URL (Amazon, AliExpress, any supported domain)geostringopt — User country code (US, GB, DE, etc.)/api/v1/products/searchSearch products across all feeds
qstringreq — Search querylimitnumberopt — Results per page (max 200, default 50)/api/v1/networksList all 120+ supported affiliate networks
/api/v1/feedAI product feed for smart banners
substringreq — Your partner tag for click attributionnichestringopt — electronics, fashion, home, beauty, sports, books, travel, tech, petsformatstringopt — json or html (default: json)Revenue Model
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
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"])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.jsonAI Plugin Manifest
For ChatGPT plugins and other AI platforms:
https://endorso.com/.well-known/ai-plugin.jsonReady to monetize?
Register your bot and start earning in 30 seconds.