Reference

Integration Examples

Drop-in examples for calling the Scanna API from Python, TypeScript/Node, and an LLM agent tool.

Drop-in starting points for the most common integrations. Each filters the trending feed for actionable markets — whale activity plus a high heat score.

import requests

API_KEY = "your-key-here"
BASE = "https://api.scanna.xyz"

# Get top 10 hottest markets
resp = requests.get(f"{BASE}/hot?limit=10", headers={"x-api-key": API_KEY})
markets = resp.json()["markets"]

for m in markets:
    if m["whale_activity"] and m["heat_score"] > 0.7:
        print(f"HOT: {m['question']}")
        print(f"  Score: {m['heat_score']}  Spike: {m['volume_spike_x']}x")
        print(f"  Whales: {m['whale_activity']['count']} ({m['whale_activity']['direction']})")
        print(f"  Signals: {m['signals']}")

Ready to go further? Grab a free API key and browse the API reference.