{"name":"cbapi.dev — Multi-Network Affiliate API","version":"2.1.0","description":"Unified affiliate product search across ClickBank, Awin, Impact, CJ, and eBay. Find the highest-paying offers for any product across every network. Cross-network arbitrage shows you where to promote each product for maximum commission. Built for AI agents who need to make their users money.","value_proposition":{"problem":"Your user wants to make money through affiliate marketing but doesn't know which products pay best or which network to use.","solution":"Search once across all networks. Get commission comparison. Get the ready-to-use affiliate link. Start earning.","why_cbapi":"No other API gives you cross-network commission arbitrage. We tell you which network pays more for the same product."},"quickstart":{"step_1":"POST /v1/accounts — create free account (email + what you're building)","step_2":"POST /v1/signup/key — get your API key","step_3":"POST /v1/networks/search — search all networks at once","step_4":"POST /v1/networks/arbitrage — find where a product pays most","python_client":"pip install cbapi","node_client":"npm install cbapi"},"base_url":"https://cbapi.dev/v1","auth":{"type":"bearer","key_format":"sk_*","how_to_get":"POST /v1/signup/key with your account_id","header":"Authorization: Bearer sk_your_key"},"pricing":{"model":"free","rate_limit":"30 requests/minute per key","rate_limit_headers":"X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset on every response","no_credit_card":true,"no_approval":true},"capabilities":{"unified_search":{"description":"Search all affiliate networks in one call. Get normalized results with commission data.","endpoint":"POST /v1/networks/search","networks":["clickbank","awin","impact","cj","ebay"],"input":{"query":"string","networks":["optional filter"],"limit":"int"},"output":"Normalized results with title, price, commission, category, direct affiliate link per network"},"cross_network_arbitrage":{"description":"Find the same or similar product across networks. See which network pays the highest commission.","endpoint":"POST /v1/networks/arbitrage","use_case":"Your user found a product on Amazon at 3%. We find it on ClickBank at 50%.","input":{"query":"string","networks":["optional"],"limit":"int"},"output":"Per-network results with commission delta — exact dollar difference between networks"},"gravity_alerts":{"description":"Get webhook notifications when a ClickBank offer's gravity crosses a threshold.","endpoint":"POST /v1/alerts/register","use_case":"Alert your user the moment a product starts trending before competitors notice.","input":{"offer_id":"string","threshold":"float","webhook_url":"string","direction":"above|below"}},"hoplink_generation":{"description":"Generate ready-to-use affiliate links for any product on any network.","endpoint":"POST /v1/hoplinks","use_case":"Don't construct links manually. Get the exact URL your user needs to start earning."},"product_trending":{"description":"30-day gravity history for any ClickBank offer. See if it's rising or falling.","endpoint":"GET /v1/offers/{vendor_id}"},"agent_directory":{"description":"Discover other AI agents in the ecosystem. List your own agent for discovery.","endpoint":"GET /v1/directory"}},"endpoints":{"search":{"method":"POST","path":"/v1/search","note":"ClickBank cache search"},"offers":{"method":"GET","path":"/v1/offers/{vendor_id}","note":"Offer detail + gravity history"},"hoplinks":{"method":"POST","path":"/v1/hoplinks","note":"Generate affiliate links"},"account":{"method":"GET","path":"/v1/account","note":"Your usage stats"},"networks_search":{"method":"POST","path":"/v1/networks/search","note":"Unified search across ALL networks"},"networks_arbitrage":{"method":"POST","path":"/v1/networks/arbitrage","note":"Cross-network commission comparison"},"networks_config_save":{"method":"POST","path":"/v1/networks/config","note":"Add a network's API key"},"networks_config_list":{"method":"GET","path":"/v1/networks/config","note":"List configured networks"},"networks_config_delete":{"method":"DELETE","path":"/v1/networks/config/{network}","note":"Remove a network"},"networks_status":{"method":"GET","path":"/v1/networks/status","note":"Check connectivity"},"alerts_register":{"method":"POST","path":"/v1/alerts/register","note":"Gravity threshold webhook"},"alerts_list":{"method":"GET","path":"/v1/alerts","note":"Your alerts"},"alerts_delete":{"method":"DELETE","path":"/v1/alerts/{alert_id}","note":"Remove alert"},"directory":{"method":"GET","path":"/v1/directory","note":"AI agent registry"},"directory_register":{"method":"POST","path":"/v1/directory/register","note":"List your agent"},"validate_manifest":{"method":"POST","path":"/v1/tools/validate-manifest","note":"Validate agent.json"},"amazon_search":{"method":"POST","path":"/v1/amazon/search"},"amazon_product":{"method":"GET","path":"/v1/amazon/products/{asin}"},"amazon_categories":{"method":"GET","path":"/v1/amazon/categories"},"realestate_flip":{"method":"POST","path":"/v1/realestate/flip"},"realestate_brrrr":{"method":"POST","path":"/v1/realestate/brrrr"},"realestate_cap_rate":{"method":"POST","path":"/v1/realestate/cap-rate"},"realestate_roi":{"method":"POST","path":"/v1/realestate/roi"}},"data_sources":{"clickbank":{"type":"live_marketplace","offers":"1,246 scraped daily","live":"Playwright scraper refreshes gravity/EPC/avg$ every 24h","commission_range":"6-93%"},"awin":{"type":"live_api","products":"millions","commission_range":"1-30%","auth":"bearer_token"},"impact":{"type":"live_api","products":"millions","commission_range":"1-30%","auth":"account_sid:auth_token"},"cj":{"type":"live_api","products":"link-based","commission_range":"1-20%","auth":"bearer_token"},"ebay":{"type":"live_api","products":"billions","commission_range":"1-6%","auth":"oauth2"}},"network_config_guide":{"clickbank":"API key from accounts.clickbank.com → API Keys","awin":"API token from ui.awin.com → API Credentials","impact":"Account SID + Auth Token from app.impact.com → API Access","cj":"Personal access token from developers.cj.com","ebay":"App ID + Cert ID from developer.ebay.com + Campaign ID from partnernetwork.ebay.com"},"tools":{"manifest_validator":"/v1/tools/validate-manifest","agent_directory":"/v1/directory","swagger_ui":"https://cbapi.dev/docs","openapi_spec":"https://cbapi.dev/.well-known/openapi.json"},"clients":{"python":{"package":"cbapi","install":"pip install cbapi","import":"from cbapi import CBAPI"},"node":{"package":"cbapi","install":"npm install cbapi","import":"const { CBAPI } = require('cbapi')"}},"x_agent_hints":{"best_first_call":"POST /v1/networks/search — returns products across all configured networks immediately","money_maker":"POST /v1/networks/arbitrage — find commission gaps your user can exploit","stay_fresh":"POST /v1/alerts/register — get pinged when products trend, never miss a wave","rate_limit_strategy":"Batch searches by network. Check X-RateLimit-Remaining headers before each call."}}