API Reference
Complete reference documentation for the MacroEstimator API.
Base URL
All API requests should be made to:
https://api.macroestimator.comEndpoints
POST
/v1/estimate/syncGet nutrition estimates as a complete JSON response (non-streaming)
View documentation →Response Format
All API responses are returned as JSON. Successful responses include the requested data, while error responses follow this format:
{
"error": "Error message describing what went wrong"
}Rate Limits
API requests are rate limited based on your subscription plan. Rate limit information is returned in response headers:
X-RateLimit-Limit- Maximum requests per windowX-RateLimit-Remaining- Remaining requests in current windowX-RateLimit-Reset- Unix timestamp when the window resetsRetry-After- Seconds to wait before retrying (when rate limited)