Overview
The Run endpoint allows you to track and monitor what AI providers say about your brand, products, or any topic across various regions. This endpoint processes your prompts through AI models and returns their responses for analysis.Authentication
This endpoint requires authentication using a Bearer token in the Authorization header.Request Body
The prompt to send to the AI model. Must be between 1 and 10,000 characters.
The AI provider to monitor. Currently supported:
CHATGPT
: OpenAI’s ChatGPT
Optional country code for localized monitoring using ISO 3166-1 alpha-2 format (e.g., “US”, “GB”, “JP”, “AU”, “DE”). Defaults to “US”. The API supports 254 countries and territories. See the complete list of supported country codes below.
Response
Indicates whether the request was successful
The AI provider’s response to your prompt
Additional information about the response
Error message if the request failed (only present when success is false)
Error Responses
The API returns standard HTTP status codes to indicate the success or failure of requests:200
- Success400
- Bad Request (validation error)401
- Unauthorized (invalid API key)429
- Too Many Requests (rate limit exceeded)500
- Internal Server Error
Error Response
Rate Limiting
This endpoint is subject to rate limiting:- 1,000 requests per hour
X-RateLimit-Limit
: Total number of requests allowedX-RateLimit-Remaining
: Number of requests remainingX-RateLimit-Reset
: Unix timestamp when the rate limit resets
Supported Country Codes
The API accepts ISO 3166-1 alpha-2 country codes for thecountry
parameter. All 254 standard country codes are supported.
Common Examples:
US
- United StatesGB
- United KingdomCA
- CanadaAU
- AustraliaDE
- GermanyFR
- FranceJP
- JapanCN
- ChinaIN
- IndiaBR
- Brazil
Best Practices
- Craft Specific Prompts: Be specific about what you want to monitor for more accurate tracking
- Monitor Consistently: Set up regular monitoring intervals to track changes over time
- Compare Providers: Monitor the same prompt across different AI providers to identify variations
- Track Regions: Monitor responses across different regions to understand geographical variations
- Implement Caching: Cache responses when appropriate to reduce API calls and costs
- Error Handling: Implement robust error handling and retry logic for failed requests
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Request parameters for monitoring AI responses
The body is of type object
.
Response
Successful monitoring response
The response is of type object
.