CLOBr Logo

Code Examples

Sample code demonstrating how to use the CLOBr API in various programming languages.

Replace YOUR_API_KEY with your actual API key from your account settings.

Interactive Examples

Select an endpoint:

Select a language:

# Request score for a single token
curl -X GET "https://clobr.io/api/v1/score/9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump" \
  -H "x-api-key: YOUR_API_KEY"

Best Practices

  • Batch requests using POST /score to query up to 50 tokens at once for maximum efficiency.
  • Cache responses when appropriate to minimize API usage.
  • Implement error handling to gracefully handle rate limits and errors.
  • Use delayed data when real-time precision isn't required.
  • Keep API keys secure - never expose them in client-side code.
  • Monitor your usage via rate limit headers.