FairScale

Quick Start

Get up and running with FairScale Agent API in minutes

Quick Start

Get up and running with FairScale Agent API in minutes.

Note: You can authenticate with either a fairkey (API key) or x402 pay-per-request. Get a fairkey at sales.fairscale.xyz, or use x402 with no account - see Authentication.

Using cURL

curl "https://agent-api.fairscale.xyz/v1/score?wallet=WALLET_ADDRESS" \
  -H "fairkey: zpka_your_key_here"

Using JavaScript/Node.js

const response = await fetch(
  "https://agent-api.fairscale.xyz/v1/score?wallet=WALLET_ADDRESS",
  {
    headers: {
      fairkey: "zpka_your_key_here",
    },
  }
);

const data = await response.json();
console.log(data);

Using Python

import requests

response = requests.get(
    'https://agent-api.fairscale.xyz/v1/score',
    params={'wallet': 'WALLET_ADDRESS'},
    headers={'fairkey': 'zpka_your_key_here'}
)

data = response.json()
print(data)

Next Steps