ExchangeRebel Toxicity Score API
The Toxicity Score API from ExchangeRebel — 5 operation(s) for toxicity score.
The Toxicity Score API from ExchangeRebel — 5 operation(s) for toxicity score.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/exchangerebel-com:exchangerebel-com-toxicity-score-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ExchangeRebel — pay-per-call APIs for AI agents (x402 on…
version: 1.0.0
contact:
name: 'ExchangeRebel (operator: Rebel Data)'
url: https://exchangerebel.com
email: sound.money.investing@gmail.com
x-guidance: 'All paid operations use x402 on Solana: call without payment to get a 402 challenge (SOL recipient + USDC token account + fresh memo), pay with the memo attached via the Solana Memo program, then retry with header X-Payment-Tx: <signature> and ?toll_memo=<memo>. Challenges are dual-version: the PAYMENT-REQUIRED header carries the x402 v2 PaymentRequired object and the response body carries the same challenge in x402 v1 form for compatibility. Free operations (security: []) include each service''s /health catalog with full response shapes. Prices in x-payment-info are USD per call unless the summary says otherwise (RPC is per 1,000-request block; Telegram provisioning is per bot-month; transcription is per minute of audio).'
description: '67 data and utility APIs behind x402 tolls, settled in SOL or USDC on Solana. Call a paid endpoint without payment to receive a 402 x402 challenge (recipient + fresh memo), pay with the memo attached via the Solana Memo program, then retry with the X-Payment-Tx header and toll_memo query parameter. Free catalog/health endpoints are marked without x-payment-info. Full catalogs: GET /toll/discovery and each service''s /health.'
servers:
- url: https://exchangerebel.com
tags:
- name: Toxicity Score
paths:
/toll/toxicity/analyze:
post:
tags:
- Toxicity Score
summary: Score a comment for toxicity (Perspective-compatible)
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
content:
application/json:
example:
attributeScores:
TOXICITY:
summaryScore:
value: 0.9946797490119934
type: PROBABILITY
SEVERE_TOXICITY:
summaryScore:
value: 0.3166612386703491
type: PROBABILITY
IDENTITY_ATTACK:
summaryScore:
value: 0.024793392047286034
type: PROBABILITY
INSULT:
summaryScore:
value: 0.86378014087677
type: PROBABILITY
THREAT:
summaryScore:
value: 0.4177722632884979
type: PROBABILITY
PROFANITY:
summaryScore:
value: 0.8991979956626892
type: PROBABILITY
disclosures:
- PROFANITY is approximated by Detoxify's obscene-language label (near neighbour, not Perspective's PROFANITY model).
envelope:
v: 1
service: toxicity-score
source: Detoxify open models (Apache-2.0) — Perspective-compatible attribute facade
grade: derived
max_age_seconds: 30
changes:
supported: false
'402':
description: 'Payment Required (x402). The PAYMENT-REQUIRED response header carries the x402 v2 PaymentRequired object (base64 JSON: scheme, CAIP-2 network, amount, asset, payTo, plus the bazaar discovery extension); the response body carries the same challenge in x402 v1 form for compatibility, naming the SOL recipient and USDC token account on Solana plus a fresh memo. To pay on this service''s rail: pay with the memo attached (Solana Memo program), then retry with header ''X-Payment-Tx: <transaction signature>'' and query parameter ''toll_memo=<memo>''.'
requestBody:
content:
application/json:
schema:
type: object
properties:
comment:
type: object
description: 'object (required) - {text: string} comment to score, Perspective comments:analyze body'
requestedAttributes:
type: object
description: object (required) - attribute configs for TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, THREAT, PROFANITY (FLIRTATION unsupported)
languages:
type: array
description: array of strings - optional; en = full attributes, fr/es/it/pt/tr/ru = TOXICITY-only
items:
type: string
doNotStore:
type: boolean
description: boolean - optional; comment text is never stored regardless
clientToken:
type: string
description: string - optional, echoed back in the response
required:
- comment
- requestedAttributes
x-payment-info:
protocols:
- x402
price:
mode: fixed
currency: USD
amount: '0.005'
security:
- x402Payment: []
operationId: postTollToxicityAnalyze
x-operation-id-source: derived
/toll/toxicity/analyze/batch:
post:
tags:
- Toxicity Score
summary: Score up to 100 comments for toxicity in one call
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
content:
application/json:
example:
counts:
total: 100
scored: 100
failed: 0
sample_toxic: 0.9605216383934021
sample_clean: 0.0007300461293198168
'402':
description: 'Payment Required (x402). The PAYMENT-REQUIRED response header carries the x402 v2 PaymentRequired object (base64 JSON: scheme, CAIP-2 network, amount, asset, payTo, plus the bazaar discovery extension); the response body carries the same challenge in x402 v1 form for compatibility, naming the SOL recipient and USDC token account on Solana plus a fresh memo. To pay on this service''s rail: pay with the memo attached (Solana Memo program), then retry with header ''X-Payment-Tx: <transaction signature>'' and query parameter ''toll_memo=<memo>''.'
requestBody:
content:
application/json:
schema:
type: object
properties:
comments:
type: array
description: array (required) - up to 100 comments:analyze requests, each {comment:{text}, requestedAttributes, languages?}
items:
type: string
required:
- comments
x-payment-info:
protocols:
- x402
price:
mode: fixed
currency: USD
amount: '0.25'
security:
- x402Payment: []
operationId: postTollToxicityAnalyzeBatch
x-operation-id-source: derived
/toll/toxicity/catalog:
get:
tags:
- Toxicity Score
summary: 'Toxicity Score catalog: endpoints, prices, disclosures'
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
security: []
operationId: getTollToxicityCatalog
x-operation-id-source: derived
/toll/toxicity/schema:
get:
tags:
- Toxicity Score
summary: Toxicity Score schema + coverage disclosures
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
security: []
operationId: getTollToxicitySchema
x-operation-id-source: derived
/toll/toxicity/health:
get:
tags:
- Toxicity Score
summary: Check the toxicity score service status
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
security: []
operationId: getTollToxicityHealth
x-operation-id-source: derived
components:
securitySchemes:
x402Payment:
type: apiKey
in: header
name: X-Payment-Tx
description: 'x402 toll payment proof: the Solana transaction signature of a payment carrying the memo from the 402 challenge; send together with ?toll_memo=<memo>. Payment itself is made on-chain in SOL or USDC to the recipient named in the challenge.'