Endpoints
Analyze Message
Analyze a user message for affiliate opportunities
POST
Analyzes a user message to extract product keywords and return relevant affiliate links.
Using the API Explorer: Click “Try It” on the right to test this endpoint interactively. Enter your API key from app.getchatads.com/api/keys in the Authorization header field.
Request Body
The user message to analyze. Required, max 10,000 characters. Min 10 words.
IP address (IPv4 or IPv6) for country detection. Anything identified as non-US will be skipped.
Country code (e.g., ‘US’). If provided, skips IP-based country detection.
Controls how product keywords are extracted from the message:
none— skips product extraction and all filters (country, language, keyword, IP); finds an offer on the provided stringstandard— default full extraction
Controls how extracted keywords are resolved to affiliate URLs:
none— doesn’t look for offers; returns extracted product onlystandard— default full resolution
Max distinct keyterms with offers extracted (1-3). Defaults to 1.
Max product offers per keyterm (1-3). Defaults to 1.
Arbitrary JSON key-value pairs to attach to the request. Passed through and returned in the response for your own tracking purposes. Example:
{"session_id": "abc123", "user_id": "u_456"}.Response
Error details when request fails. Null for successful requests. Check
error == null to determine success.