Hive Intelligence

SDKs

Integration Libraries

Integration Libraries

Hive Intelligence provides simple REST API access that works with any programming language.


Integration Options

MethodBest ForComplexity
REST APIAll languages, direct integrationSimple
PythonData analysis, backendsSimple
JavaScriptWeb apps, Node.jsSimple
MCPAI agents, Claude, LangChainSimple

REST API

The REST API works with any HTTP client in any programming language.

Endpoint: POST https://api.hiveintelligence.xyz/api/execute

curl -X POST https://api.hiveintelligence.xyz/api/execute \
  -H "Content-Type: application/json" \
  -d '{"toolName": "get_price", "arguments": {"ids": "bitcoin", "vs_currencies": "usd"}}'

Response:

{
  "data": {
    "bitcoin": {
      "usd": 67234.00
    }
  }
}

Python

Use the requests library for simple integration.

import requests

API_URL = "https://api.hiveintelligence.xyz/api/execute"

def call_hive(tool_name: str, arguments: dict) -> dict:
    """Execute a Hive Intelligence tool."""
    response = requests.post(API_URL, json={
        "toolName": tool_name,
        "arguments": arguments
    })
    return response.json()

# Get Bitcoin price
price = call_hive("get_price", {
    "ids": "bitcoin",
    "vs_currencies": "usd"
})
print(f"Bitcoin: ${price['data']['bitcoin']['usd']}")

# Get top 10 coins by market cap
market = call_hive("get_coins_market_data", {
    "vs_currency": "usd",
    "order": "market_cap_desc",
    "per_page": 10
})

# Check token security
security = call_hive("get_token_security", {
    "contract_addresses": "0x...",
    "chain_id": "1"
})

Full Python Guide →


JavaScript

Use the Fetch API or any HTTP client.

const API_URL = "https://api.hiveintelligence.xyz/api/execute";

async function callHive(toolName, args) {
    const response = await fetch(API_URL, {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ toolName, arguments: args })
    });
    return response.json();
}

// Get Bitcoin price
const price = await callHive("get_price", {
    ids: "bitcoin",
    vs_currencies: "usd"
});
console.log(`Bitcoin: $${price.data.bitcoin.usd}`);

// Get DeFi protocols
const protocols = await callHive("get_protocols", {});

// Check wallet balance
const balance = await callHive("get_wallet_balance", {
    address: "0x..."
});

Full JavaScript Guide →


MCP (for AI Agents)

For AI agents using the Model Context Protocol:

Claude Desktop Configuration:

{
  "mcpServers": {
    "hive-intelligence": {
      "url": "https://hiveintelligence.xyz/mcp"
    }
  }
}

Direct MCP Call:

curl -X POST https://hiveintelligence.xyz/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "get_price",
      "arguments": {"ids": "bitcoin", "vs_currencies": "usd"}
    },
    "id": 1
  }'

Other Languages

The REST API works with any language. Here are quick examples:

Go

package main

import (
    "bytes"
    "encoding/json"
    "net/http"
)

func callHive(toolName string, args map[string]interface{}) (map[string]interface{}, error) {
    payload, _ := json.Marshal(map[string]interface{}{
        "toolName":  toolName,
        "arguments": args,
    })

    resp, err := http.Post(
        "https://api.hiveintelligence.xyz/api/execute",
        "application/json",
        bytes.NewBuffer(payload),
    )
    if err != nil {
        return nil, err
    }
    defer resp.Body.Close()

    var result map[string]interface{}
    json.NewDecoder(resp.Body).Decode(&result)
    return result, nil
}

Rust

use reqwest::Client;
use serde_json::{json, Value};

async fn call_hive(tool_name: &str, args: Value) -> Result<Value, reqwest::Error> {
    let client = Client::new();
    let response = client
        .post("https://api.hiveintelligence.xyz/api/execute")
        .json(&json!({
            "toolName": tool_name,
            "arguments": args
        }))
        .send()
        .await?
        .json()
        .await?;
    Ok(response)
}

Common Features

All integrations provide:

  • Simple Interface - One endpoint, consistent JSON format
  • Error Handling - Structured error responses
  • Rate Limiting - 30 requests/minute (free tier)

Rate Limits

TierRequests/Minute
Free30

Support

Previous
Social Sentiment
Next
Python