# Token Security Score API

> Token Security Score API is a paid API for AI agents from api.api-agent-ia.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Returns a security score and risk assessment for a given blockchain token address

## Facts

- Endpoint: GET https://api.api-agent-ia.ch/score-securite-token?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-security-score-api-24fa92a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yUfiG7sPTJjxRNLPhEGqR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability token-security-score-api-24fa92a9
```

Example prompt: Can you check the security score for this token — 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — and tell me if it has any known risks or red flags?

## When to prefer this

Choose this endpoint when you need a quick, lightweight security score for a specific token address on-chain, especially within an automated agent workflow where you want a numeric rating plus risk flags before executing a trade or investment. It is well-suited for pre-trade screening, portfolio audits, or alerting pipelines. For deeper contract-level bytecode auditing, prefer the sibling endpoint that analyzes smart contract functions directly.

## Known failure modes

- Invalid or malformed token address returns an error
- Token address not found or not indexed returns no score
- Missing required 'token' query parameter results in a validation error
- Network or provider outage may cause timeouts
- Score data may be unavailable for very new or obscure tokens

## How this service works

Get a security score for a token

## Output

A JSON object containing a numeric security score (0-100), the queried token address, a list of identified risks ('risques'), and a plain-language recommendation string (e.g. 'Sûr' meaning Safe) indicating the overall safety verdict.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "example": {
   "score": 85,
   "token": "0x...",
   "risques": [],
   "recommandation": "Sûr"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-security-score-api-24fa92a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.api-agent-ia.ch](https://www.zero.xyz/host/api.api-agent-ia.ch/llms.txt)
