Skip to main content

No Key Required

Most Market Motion endpoints work without authentication. This lets you explore the API and prototype quickly. Anonymous rate limit: 30 requests/minute

API Keys

For production use, get an API key to increase your rate limits.

Getting a Key

  1. Visit marketmotion.xyz/developer
  2. Sign in with your account
  3. Click “Create API Key”
  4. Choose key type (Test or Live)

Key Types

TypeRate LimitUse Case
Test Key100 req/minDevelopment and testing
Live Key300 req/minProduction applications

Using Your Key

Include the API key in the X-API-Key header:
curl -H "X-API-Key: your_api_key_here" \
  "https://api.marketmotion.xyz/api/entities"

Rate Limiting

When you exceed your rate limit, you’ll receive a 429 response:
{
  "success": false,
  "error": "Rate limit exceeded. Please try again later."
}

Rate Limit Headers

Every response includes rate limit information:
HeaderDescription
X-RateLimit-LimitYour requests per minute limit
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when limit resets

Best Practices

Entity data doesn’t change frequently. Cache responses for 5-15 minutes to reduce API calls.
Fetch multiple entities at once using list endpoints with filters rather than individual lookups.
If rate limited, wait before retrying. Double the wait time on each retry.

Error Responses

All errors follow a consistent format:
{
  "success": false,
  "error": "Description of what went wrong"
}

HTTP Status Codes

CodeMeaning
200Success
400Bad request (invalid parameters)
401Invalid API key
404Entity or market not found
429Rate limit exceeded
500Server error

Security

Keep your API keys secret. Never commit them to version control or expose them in client-side code.
Best practices:
  • Store keys in environment variables
  • Use server-side code to make API calls
  • Rotate keys if compromised
  • Use Test keys for development, Live keys for production