{"openapi":"3.1.0","info":{"title":"Mihenk Agent API","version":"1.0.0","description":"Measured crypto KOL (influencer) data for AI agents, paid per call in USDC over x402 (Circle Gateway Nanopayments). Real reach, audience quality and what the market did after each KOL's calls. Only measured data; not investment advice.","x-guidance":"Look up one crypto KOL (influencer) on X with GET /kol/{handle} (handle without @, e.g. CryptoMichNL): Mihenk score, real reach, audience quality and the 90-day record of their calls. See which measured KOLs called a coin with GET /coin/{symbol}/calls?hours=24 (symbol like SOL; hours 1 to 168). Each call costs 0.01 USDC over x402. /kol and /coin are paid with Circle Gateway (gas-free, batched); /pay/kol and /pay/coin are the same data paid with standard x402 exact (USDC on Base). You pay only for a 200 answer: a 404 (not measured) or any error is not charged. Measured data, not investment advice. Heavy users can prepay at the normal price per call: /credits/buy/1 (100 calls, up to 100 a day), /credits/buy/5 (500 calls, up to 200 a day), /credits/buy/20 (2,000 calls, up to 300 a day), valid 90 days; then send the returned key as \"Authorization: Bearer <api_key>\" and the endpoints answer without a 402.","contact":{"email":"hello@mihenkai.com","url":"https://mihenkai.com"}},"servers":[{"url":"https://app.mihenkai.com/x402"}],"paths":{"/kol/{handle}":{"get":{"operationId":"getKol","summary":"Measured record of one crypto KOL on X","description":"Costs 0.01 USDC per call over x402. Without a payment the API answers 402 with the PAYMENT-REQUIRED header. Up to 200 paid calls per wallet per UTC day.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","pattern":"^@?[A-Za-z0-9_]{1,15}$"},"example":"CryptoMichNL"}],"responses":{"200":{"description":"KOL record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Kol"}}}},"400":{"description":"Invalid handle"},"402":{"description":"Payment required (x402). See PAYMENT-REQUIRED header."},"404":{"description":"Not measured by Mihenk; no payment is settled."},"500":{"description":"Internal error; no payment is settled."},"503":{"description":"Busy, try again; no payment is settled."}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/coin/{symbol}/calls":{"get":{"operationId":"getCoinCalls","summary":"Measured KOL calls on a coin in the last N hours","description":"Costs 0.01 USDC per call over x402. Up to 100 calls, newest first. Up to 200 paid calls per wallet per UTC day.","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","pattern":"^\\$?[A-Za-z0-9]{1,15}$"},"example":"SOL"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":168,"default":24}}],"responses":{"200":{"description":"Calls","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoinCalls"}}}},"400":{"description":"Invalid symbol or hours"},"402":{"description":"Payment required (x402). See PAYMENT-REQUIRED header."}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/pay/kol/{handle}":{"get":{"operationId":"getKolExact","summary":"Measured record of one crypto KOL on X","description":"Same as /kol/{handle}, paid with standard x402 (scheme exact, USDC on Base, Coinbase CDP facilitator). 0.01 USDC per call, up to 200 paid calls per wallet per UTC day.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","pattern":"^@?[A-Za-z0-9_]{1,15}$"},"example":"CryptoMichNL"}],"responses":{"200":{"description":"KOL record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Kol"}}}},"400":{"description":"Invalid handle"},"402":{"description":"Payment required (x402). See PAYMENT-REQUIRED header."},"404":{"description":"Not measured by Mihenk; no payment is settled."},"500":{"description":"Internal error; no payment is settled."},"503":{"description":"Busy, try again; no payment is settled."}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/pay/coin/{symbol}/calls":{"get":{"operationId":"getCoinCallsExact","summary":"Measured KOL calls on a coin in the last N hours","description":"Same as /coin/{symbol}/calls, paid with standard x402 (scheme exact, USDC on Base, Coinbase CDP facilitator). 0.01 USDC per call, up to 200 paid calls per wallet per UTC day.","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","pattern":"^\\$?[A-Za-z0-9]{1,15}$"},"example":"SOL"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":168,"default":24}}],"responses":{"200":{"description":"Calls","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoinCalls"}}}},"400":{"description":"Invalid symbol or hours"},"402":{"description":"Payment required (x402). See PAYMENT-REQUIRED header."}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/credits/buy/1":{"get":{"operationId":"buyPack1","summary":"Prepaid pack: 100 calls for 1 USDC, up to 100 a day","description":"Prepaid pack: 100 calls to Mihenk's KOL and coin endpoints for 1 USDC (the normal per-call price, no discount), up to 100 calls a day, valid 90 days. Returns an API key once; send it as \"Authorization: Bearer <key>\" and the endpoints answer without a 402. A 404 (not measured) or any error does not use a call. Paid with Circle Gateway (gas-free).","responses":{"200":{"description":"API key, shown once","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string"},"calls":{"type":"integer"},"daily_limit":{"type":"integer"},"expires_at":{"type":"string"},"pack_usdc":{"type":"number"}}}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"1.00"}}}},"/pay/credits/buy/1":{"get":{"operationId":"buyPack1Exact","summary":"Prepaid pack: 100 calls for 1 USDC, up to 100 a day","description":"Prepaid pack: 100 calls to Mihenk's KOL and coin endpoints for 1 USDC (the normal per-call price, no discount), up to 100 calls a day, valid 90 days. Returns an API key once; send it as \"Authorization: Bearer <key>\" and the endpoints answer without a 402. A 404 (not measured) or any error does not use a call. Paid with standard x402 exact (USDC on Base).","responses":{"200":{"description":"API key, shown once","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string"},"calls":{"type":"integer"},"daily_limit":{"type":"integer"},"expires_at":{"type":"string"},"pack_usdc":{"type":"number"}}}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"1.00"}}}},"/credits/buy/5":{"get":{"operationId":"buyPack5","summary":"Prepaid pack: 500 calls for 5 USDC, up to 200 a day","description":"Prepaid pack: 500 calls to Mihenk's KOL and coin endpoints for 5 USDC (the normal per-call price, no discount), up to 200 calls a day, valid 90 days. Returns an API key once; send it as \"Authorization: Bearer <key>\" and the endpoints answer without a 402. A 404 (not measured) or any error does not use a call. Paid with Circle Gateway (gas-free).","responses":{"200":{"description":"API key, shown once","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string"},"calls":{"type":"integer"},"daily_limit":{"type":"integer"},"expires_at":{"type":"string"},"pack_usdc":{"type":"number"}}}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/pay/credits/buy/5":{"get":{"operationId":"buyPack5Exact","summary":"Prepaid pack: 500 calls for 5 USDC, up to 200 a day","description":"Prepaid pack: 500 calls to Mihenk's KOL and coin endpoints for 5 USDC (the normal per-call price, no discount), up to 200 calls a day, valid 90 days. Returns an API key once; send it as \"Authorization: Bearer <key>\" and the endpoints answer without a 402. A 404 (not measured) or any error does not use a call. Paid with standard x402 exact (USDC on Base).","responses":{"200":{"description":"API key, shown once","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string"},"calls":{"type":"integer"},"daily_limit":{"type":"integer"},"expires_at":{"type":"string"},"pack_usdc":{"type":"number"}}}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/credits/buy/20":{"get":{"operationId":"buyPack20","summary":"Prepaid pack: 2000 calls for 20 USDC, up to 300 a day","description":"Prepaid pack: 2,000 calls to Mihenk's KOL and coin endpoints for 20 USDC (the normal per-call price, no discount), up to 300 calls a day, valid 90 days. Returns an API key once; send it as \"Authorization: Bearer <key>\" and the endpoints answer without a 402. A 404 (not measured) or any error does not use a call. Paid with Circle Gateway (gas-free).","responses":{"200":{"description":"API key, shown once","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string"},"calls":{"type":"integer"},"daily_limit":{"type":"integer"},"expires_at":{"type":"string"},"pack_usdc":{"type":"number"}}}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"20.00"}}}},"/pay/credits/buy/20":{"get":{"operationId":"buyPack20Exact","summary":"Prepaid pack: 2000 calls for 20 USDC, up to 300 a day","description":"Prepaid pack: 2,000 calls to Mihenk's KOL and coin endpoints for 20 USDC (the normal per-call price, no discount), up to 300 calls a day, valid 90 days. Returns an API key once; send it as \"Authorization: Bearer <key>\" and the endpoints answer without a 402. A 404 (not measured) or any error does not use a call. Paid with standard x402 exact (USDC on Base).","responses":{"200":{"description":"API key, shown once","content":{"application/json":{"schema":{"type":"object","properties":{"api_key":{"type":"string"},"calls":{"type":"integer"},"daily_limit":{"type":"integer"},"expires_at":{"type":"string"},"pack_usdc":{"type":"number"}}}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"20.00"}}}},"/credits":{"get":{"operationId":"credits","summary":"Prepaid packs, or what is left on your key","security":[],"description":"Without a key: the packs and their buy links. With \"Authorization: Bearer <api_key>\": calls left and expiry. Free.","responses":{"200":{"description":"Packs or key status"}}}},"/0g":{"get":{"operationId":"zeroG","summary":"Mihenk on 0G: daily 0G Storage archives and their on-chain records (free)","security":[],"description":"Free. Daily 0G Storage archives of the TEE-verified 0G readings and x402 receipts: root hash, transaction, sha256 and counts, the on-chain records of those roots, and 0G Compute reading counts. day=YYYY-MM-DD narrows the list.","parameters":[{"name":"day","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"Overview"},"400":{"description":"Invalid day"}}}}},"components":{"schemas":{"Record90d":{"type":"object","properties":{"measured":{"type":"integer","description":"Measured calls in the last 90 days"},"went_their_way":{"type":"integer","description":"Calls where the price moved in the call's direction within 24h"},"hit_rate_pct":{"type":["number","null"],"description":"Shown with at least 5 measured calls"},"avg_move_pct":{"type":["number","null"],"description":"Average 24h move in the call's direction"}}},"Kol":{"type":"object","properties":{"handle":{"type":"string"},"name":{"type":["string","null"]},"profile_url":{"type":"string"},"followers":{"type":"integer"},"real_reach":{"type":"object","properties":{"median_views_per_post":{"type":"integer"},"views_per_follower":{"type":["number","null"]}}},"impact_class":{"type":["string","null"],"enum":["mega","macro","mid","micro","nano",null]},"audience":{"type":"object","properties":{"authentic_engagement":{"type":["number","null"]},"audience_quality":{"type":["number","null"]},"integrity":{"type":["number","null"]},"scale":{"type":"string"}}},"mihenk_score":{"type":"object","properties":{"value":{"type":["number","null"]},"scale":{"type":"string"},"about":{"type":"string"}}},"smart_followers":{"type":"integer"},"calls_90d":{"$ref":"#/components/schemas/Record90d"},"recent_calls":{"type":"array","items":{"type":"object","properties":{"coin":{"type":"string"},"direction":{"type":"string","enum":["long","short"]},"posted_at":{"type":"string"},"move_24h_pct":{"type":["number","null"]}}}},"measured_at":{"type":["string","null"]},"card_url":{"type":"string"},"methodology_url":{"type":"string"},"note":{"type":"string"}}},"CoinCalls":{"type":"object","properties":{"symbol":{"type":"string"},"hours":{"type":"integer"},"summary":{"type":"object","properties":{"calls":{"type":"integer"},"kols":{"type":"integer"},"long":{"type":"integer"},"short":{"type":"integer"},"verified_on_0g":{"type":"integer"}}},"calls":{"type":"array","items":{"type":"object","properties":{"kol":{"type":"string"},"followers":{"type":"integer"},"median_views_per_post":{"type":"integer"},"direction":{"type":"string"},"posted_at":{"type":"string"},"post_url":{"type":["string","null"]},"price_move_pct":{"type":"object","description":"Keys 5m, 1h, 4h, 24h once measured","additionalProperties":{"type":"number"}},"price_source":{"type":["string","null"]},"kol_record_90d":{"type":"object"},"verification":{"type":"object","description":"Present only when a TEE-attested model on 0G Private Computer read the same coin and direction from the post. Verify with @0gfoundation/0g-compute-ts-sdk broker.inference.processResponse(provider, chat_id).","properties":{"network":{"type":"string"},"method":{"type":"string"},"agrees_with_mihenk":{"type":"boolean"},"model":{"type":"string"},"provider":{"type":"string"},"chat_id":{"type":"string"},"request_id":{"type":"string"},"tee_verified":{"type":"boolean"},"verify_with":{"type":"string"},"archive_0g":{"type":"object","description":"The 0G Storage archive of the reading's UTC day, once uploaded (nightly). See GET /0g.","properties":{"day_utc":{"type":"string"},"storage_root":{"type":"string"},"storage_tx":{"type":"string"},"how_to_check":{"type":"string"}}}}}}}},"note":{"type":"string"}}}}}}