{"openapi":"3.1.0","info":{"title":"Crypto Market Sentiment API","version":"1.0.0","description":"Published crypto Fear and Greed index and a global market-cap snapshot from public no-account APIs. Not a ticker price product. Paid with x402 exact USDC on Base. No account is required.","contact":{"email":"support@brainiac.software"},"x-guidance":"BRAINIAC.software is a pay-per-call API for software agents. No account or API key is required.\nThis root OpenAPI is a token-light discovery index. Full request/response schemas and examples are at /api/{group}/openapi.json; x-api-groups lists every group URL.\nPayment uses x402 with exact USDC on Base (8453). Unpaid GET/HEAD/POST return 402 payment terms for discovery.\nHow to call: POST JSON → verify payTo/asset/network against /api/v1/catalog and /.well-known/x402 → pay and retry with payment-signature. Settlement only on HTTP 2xx.\nIdempotency-Key: 64 hex chars. Coverage HTTP 2xx with status complete|partial and real data is charged; failed or empty results are not charged. Free lookup: GET /api/v1/results/{result_id}.\nOutputs are drafts for human review — not official determinations or legal advice."},"servers":[{"url":"https://www.brainiac.software"}],"paths":{"/api/v1/crypto-market-sentiment/fear-greed":{"post":{"operationId":"crypto_market_sentiment_fear_greed","summary":"Crypto Fear and Greed index","description":"Published crypto Fear and Greed index (0-100 and classification) from the public alternative.me API. Docs: https://www.brainiac.software/api/crypto-market-sentiment/fear-greed","externalDocs":{"url":"https://www.brainiac.software/api/crypto-market-sentiment/fear-greed"},"tags":["crypto-market-sentiment","fear and greed","crypto sentiment","market sentiment","index","alternative.me","extreme fear","extreme greed","0-100 index","published index","daily history","contrarian signal","crypto index","classification","not trading advice"],"x-keywords":["fear and greed","crypto sentiment","extreme fear","extreme greed","market sentiment","0-100 index","alternative.me","published index","daily history","contrarian signal","crypto index","classification","not trading advice"],"x-empty-json-probe":true,"x-probe-body":{"limit":1},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":30}},"additionalProperties":false},"example":{"limit":1}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"JSON result. A settled 2xx includes payment-response. Settlement is only for HTTP 2xx with status complete or partial and real data; status failed or empty payloads return non-2xx and are not charged.","headers":{"payment-response":{"$ref":"#/components/headers/PaymentResponse"}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"asOf":{"type":"string"},"value":{"type":"string"},"classification":{"type":"string"},"timestamp":{"type":"string"},"source":{"type":"string"},"limitation":{"type":"string"},"missing_items":{"type":"array","items":{}}},"additionalProperties":true},"example":{"status":"complete","asOf":"2026-11-20T00:00:00.000Z","value":"12","classification":"Extreme Fear","timestamp":"1795132800","source":"https://api.alternative.me/fng/","limitation":"Published index, not our model, not trading advice.","missing_items":[]}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"413":{"$ref":"#/components/responses/RequestTooLarge"},"500":{"$ref":"#/components/responses/OperationFailed"},"502":{"$ref":"#/components/responses/SettlementUnknown"},"503":{"$ref":"#/components/responses/PaymentsUnavailable"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/crypto-market-sentiment/global-snapshot":{"post":{"operationId":"crypto_market_sentiment_global_snapshot","summary":"Crypto market global snapshot","description":"Global crypto market snapshot from Coinlore: market cap, 24h volume, BTC/ETH dominance, market-cap change, and coin/market counts. Docs: https://www.brainiac.software/api/crypto-market-sentiment/global-snapshot","externalDocs":{"url":"https://www.brainiac.software/api/crypto-market-sentiment/global-snapshot"},"tags":["crypto-market-sentiment","crypto market cap","btc dominance","market overview","global snapshot","volume","bitcoin dominance","ethereum dominance","24h volume","coins count","market cap change","aggregate market","Coinlore","not a ticker"],"x-keywords":["crypto market cap","bitcoin dominance","ethereum dominance","24h volume","market overview","global snapshot","coins count","market cap change","aggregate market","Coinlore","not a ticker"],"x-empty-json-probe":true,"x-probe-body":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"example":{}}}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"JSON result. A settled 2xx includes payment-response. Settlement is only for HTTP 2xx with status complete or partial and real data; status failed or empty payloads return non-2xx and are not charged.","headers":{"payment-response":{"$ref":"#/components/headers/PaymentResponse"}},"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"asOf":{"type":"string"},"marketCapUsd":{"type":"string"},"volume24hUsd":{"type":"string"},"btcDominancePct":{"type":"string"},"ethDominancePct":{"type":"string"},"marketCapChange24hPct":{"type":"string"},"coinsCount":{"type":"number"},"marketsCount":{"type":"number"},"source":{"type":"string"},"missing_items":{"type":"array","items":{}}},"additionalProperties":true},"example":{"status":"complete","asOf":"2026-11-20T21:40:00.000Z","marketCapUsd":"2042150781633.1777","volume24hUsd":"302083740460.5537","btcDominancePct":"57.77","ethDominancePct":"9.72","marketCapChange24hPct":"-3.84","coinsCount":14992,"marketsCount":25067,"source":"https://api.coinlore.net/api/global/","missing_items":[]}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"402":{"$ref":"#/components/responses/PaymentRequired"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"413":{"$ref":"#/components/responses/RequestTooLarge"},"500":{"$ref":"#/components/responses/OperationFailed"},"502":{"$ref":"#/components/responses/SettlementUnknown"},"503":{"$ref":"#/components/responses/PaymentsUnavailable"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}}},"components":{"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}},"headers":{"PaymentResponse":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"responses":{"InvalidRequest":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"PaymentRequired":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"IdempotencyConflict":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"RequestTooLarge":{"description":"Request body exceeds the 24 MB limit. Not charged."},"SettlementUnknown":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"PaymentsUnavailable":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."},"OperationFailed":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."}},"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}}}}}