Run in Apidog
Overview# The Community Data API provides access to aggregated community statistics including transaction counts, impression counts, and revenue data. Access to the API is rate-limited to ensure fair usage for all clients. Endpoint# Query Parameters# Parameter Required Description Format startDate Yes Start date of the requested period YYYY-MM-DD endDate Yes End date of the requested period YYYY-MM-DD
Rate Limiting# To ensure fair usage, the API implements rate limiting. Current limits are tracked via response headers: X-RateLimit-Remaining
: Number of requests remaining in the current time window
X-RateLimit-Reset
: Unix timestamp when the rate limit resets
X-Daily-Quota-Remaining
: Number of requests remaining for the current day
Constraints# Maximum date range: 31 days
End date must not be before start date
Dates must be in YYYY-MM-DD format
Success Response (200 OK)# {
"status" : "Success" ,
"data" : [
{
"date" : "2024-12-18" ,
"txn_count" : 1000 ,
"impr_count" : 5000 ,
"alkimi_revenue" : 150.75
}
]
}
Response Fields# Field Type Description date string Date in YYYY-MM-DD format txn_count number Number of transactions impr_count number Number of impressions alkimi_revenue number Revenue amount
Error Responses# Invalid Request (400)# Returned when the request parameters are invalid. {
"code" : "ALK1005" ,
"message" :
"Invalid Request Parameter – One or more parameters in the request are invalid." ,
}
Rate Limit Exceeded (429)# Returned when rate limit or daily quota is exceeded. {
"code" : "ALK1010" ,
"message" :
"Rate Limit Exceeded – Too many requests in a given amount of time." ,
}
Example Requests# cURL# JavaScript# Python# Best Practices# 1.
Monitor rate limit headers to avoid hitting limits
2.
Implement exponential backoff when rate limits are hit
3.
Keep date ranges within the 31-day limit
4.
Always use YYYY-MM-DD format for dates
5.
Cache responses when appropriate
Support# For API support or questions, please contact support Request samples curl --location --request GET 'https://api.alkimi.org/api/v1/public/data?startDate=2025-01-11&endDate=2025-01-16'
Responses application/json Generate Code
{
"status" : "string" ,
"data" : [
{
"date" : "string" ,
"txn_count" : 0 ,
"impr_count" : 0 ,
"alkimi_revenue" : 0
}
]
}
Modified at 2025-01-31 10:17:55