API Documentation
Access prediction market data and cosmic analysis through our RESTful API
https://api.predicttian.comAuthentication
All API requests require an API key. Include your key in the Authorization header:
Get your API key from the API Pricing page.
/api/oracle/:marketIdGet cosmic analysis for a specific market
Parameters
marketIdUnique market identifier
Headers
AuthorizationBearer YOUR_API_KEYrequiredExample Request (cURL)
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"marketId": "poly_12345",
"title": "Will Donald Trump win the 2024 US Presidential Election?",
"probability": 0.65,
"cosmicAnalysis": {
"recommendation": "YES",
"confidence": 85,
"summary": "The celestial forces align strongly in favor of this outcome.",
"methods": ["I Ching", "Tarot", "Qimen Dunjia"]
}
}/api/oracleGet cosmic analysis for multiple markets with filters
Parameters
categoryFilter by category (politics, crypto, sports, etc.)
sourceFilter by source (polymarket, kalshi, etc.)
limitNumber of results (default: 20, max: 100)
Headers
AuthorizationBearer YOUR_API_KEYrequiredExample Request (cURL)
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"markets": [
{
"marketId": "poly_12345",
"title": "...",
"probability": 0.65,
"cosmicRecommendation": "YES",
"cosmicConfidence": 85
}
],
"total": 435,
"page": 1
}/api/cosmic/:marketIdGet detailed cosmic readings (I Ching, Tarot, Qimen Dunjia) for a market
Parameters
marketIdUnique market identifier
Headers
AuthorizationBearer YOUR_API_KEYrequiredExample Request (cURL)
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"marketId": "poly_12345",
"readings": [
{
"method": "i_ching",
"data": {
"hexagram": 14,
"name": "Possession in Great Measure",
"interpretation": "..."
}
}
]
}/api/marketsGet raw market data without cosmic analysis
Parameters
categoryFilter by category
sourceFilter by source
statusFilter by status (open, closed, resolved)
limitNumber of results (default: 20, max: 100)
Headers
AuthorizationBearer YOUR_API_KEYrequiredExample Request (cURL)
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"markets": [
{
"id": 123,
"externalId": "poly_12345",
"title": "...",
"probability": "0.65",
"volume": "$2.4M",
"category": "politics",
"source": "polymarket",
"status": "open"
}
],
"total": 435
}Rate Limits
Rate limits are enforced per API key and reset every minute. Exceeding your limit will result in a 429 response.
Interactive API Playground
Test API endpoints directly in your browser. Enter your API key to make live requests.
TIAN Prediction API 1.0.0
OAS 3.0
/openapi.jsonAccess TIAN's cosmic intelligence predictions for prediction markets. Get AI-powered insights combining 8 ancient divination methods.
SDKs & Libraries
Official SDKs for popular languages are coming soon. For now, use standard HTTP clients to interact with the API.