Skip to main content
GET
https://api.credprotocol.com
/
api
/
v2
/
score
/
batch
curl -X GET "https://api.credprotocol.com/api/v2/score/batch?addresses=vitalik.eth,0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "results": [
    {
      "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "score": 847,
      "classification": "Excellent",
      "model": "andromeda",
      "cached": true
    },
    {
      "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
      "score": 723,
      "classification": "Good",
      "model": "andromeda",
      "cached": false
    }
  ],
  "total": 2,
  "successful": 2,
  "failed": 0,
  "timestamp": "2024-01-15T10:30:00Z"
}

Overview

Returns credit scores for multiple Ethereum addresses in a single API call. This is more efficient than making individual requests when you need to score multiple addresses.
Maximum of 100 addresses per batch request.

Query Parameters

addresses
string
required
Comma-separated list of Ethereum addresses or ENS names (e.g., address=0x123...,0x456...,vitalik.eth)

Response

results
array
Array of score results for each address
results[].address
string
The resolved Ethereum address (checksummed)
results[].score
integer
Credit score between 300 and 1000
results[].classification
string
Score classification: Low, Fair, Good, Very Good, or Excellent
results[].error
string
Error message if scoring failed for this address (optional)
total
integer
Total number of addresses processed
successful
integer
Number of addresses successfully scored
failed
integer
Number of addresses that failed to score

Use Cases

  • Portfolio Analysis: Score all addresses in a user’s portfolio
  • Batch Verification: Check creditworthiness of multiple counterparties
  • Risk Assessment: Evaluate a list of addresses for lending decisions
curl -X GET "https://api.credprotocol.com/api/v2/score/batch?addresses=vitalik.eth,0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "results": [
    {
      "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "score": 847,
      "classification": "Excellent",
      "model": "andromeda",
      "cached": true
    },
    {
      "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
      "score": 723,
      "classification": "Good",
      "model": "andromeda",
      "cached": false
    }
  ],
  "total": 2,
  "successful": 2,
  "failed": 0,
  "timestamp": "2024-01-15T10:30:00Z"
}

Performance Notes

  • Response Time: Typically 2-5 seconds for 10 addresses, longer for larger batches
  • Caching: Individual address scores are cached for 5 minutes
  • Parallelization: Requests are processed in parallel for optimal performance
Batch requests count as multiple API calls against your quota (one per address).