ko.ioAPI Documentation

API Reference

Financial intelligence API for AI agents and developers — institutional holdings, insider trades, congress trading, stock fundamentals, and macro indicators. 44 endpoints, sub-10ms latency, dual-region delivery.

https://api.ko.io
Get API KeyPlayground

Quickstart

Get your first API response in 30 seconds. No API key required for demo mode.

1. Try the demo (no key needed)

curl "https://api.ko.io/api/v1/institutions?search=berkshire&demo=true"

2. Get your free API key

Sign up at ko.io/auth → go to Console → API Keys → create a key.

3. Make authenticated requests

curl "https://api.ko.io/api/v1/holdings/102909" \
  -H "Authorization: Bearer ko_live_your_key_here"

Base URL: https://api.ko.io · All endpoints return JSON · Pagination via page and per_page params

Authentication

Include your API key as a Bearer token in the Authorization header. Keys use the format ko_live_*.

terminal
curl https://api.ko.io/api/v1/institutions \
  -H "Authorization: Bearer ko_live_a1b2c3d4e5f6..."

Demo Mode

Add ?demo=true to any endpoint for keyless access. Limited to 100 requests/day. Great for testing and prototyping.

API Key Format

Keys start with ko_live_ followed by a hex string. Create keys in the Console.

Auth Endpoints (Web App)

The following endpoints are used by the ko.io web app and are not intended for API consumers:

POST /api/auth/google · /api/auth/login · /api/auth/register · /api/auth/logout

GET /api/auth/me · /api/auth/profile

Rate Limits

Requests are rate-limited per API key on a daily rolling window.

PlanPriceDaily Limit
Free (demo)$0100 / day
Developer$29 / mo10,000 / day
Team$99 / mo100,000 / day
EnterpriseCustomCustom

Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

Response Format

All responses follow a consistent JSON structure with data and meta fields.

List Response

200 OK
{
  "data": [ ... ],
  "meta": {
    "page": 1,
    "per_page": 50,
    "total_count": 1234,
    "query_time_ms": 3.1
  }
}

Object Response

200 OK
{
  "data": { ... },
  "meta": {
    "query_time_ms": 2.1
  }
}

Error Codes

StatusMeaning
400Bad Request
401Unauthorized
403Forbidden
404Not Found
429Rate Limited
500Server Error
Error Response
{
  "error": "Unauthorized",
  "message": "Invalid or missing API key. Use ?demo=true for keyless access.",
  "status": 401
}

MCP Integration

Connect AI tools like Claude, Cursor, and Windsurf directly to ko.io data via the Model Context Protocol. 19 tools available covering SEC filings, macro data, and market microstructure.

Remote (HTTP transport — Claude.ai, any MCP client)

terminal
claude mcp add ko-sec-data --transport http https://mcp.ko.io/mcp

Local (stdio — Claude Code, Cursor)

terminal
claude mcp add ko-sec-data -- npx -y @ko-io/mcp-sec-data

Environment variables (optional)

.env
KO_API_KEY=ko_live_xxx    # Optional: without key, uses demo mode (100/day)
KO_API_URL=https://api.ko.io

Available Tools (19)

ToolDescription
searchSearch across institutions, stocks, and congress members
get_institution_holdings13F institutional holdings with change analytics
list_institutionsList/search institutional investors
get_stock_profileStock info with ownership summary
get_stock_holdersInstitutional holders for a stock
get_stock_activityStock activity and trading metrics
get_stock_financialsCompany financials from SEC filings
get_stock_priceHistorical daily OHLCV prices
get_insider_tradesForm 4 insider trades with filters
list_insider_tradersTop insider traders by volume
get_congress_tradesCongressional stock trades from STOCK Act
get_congress_memberTrading history for a congress member
get_form144_noticesForm 144 proposed sale notices
get_treasury_yieldsUS Treasury yield curve data
get_fed_ratesFederal Reserve interest rates
get_economic_indicatorsBLS CPI, PPI, NFP, unemployment
get_short_volumeFINRA daily short volume
get_ftd_dataSEC Failures to Deliver
get_financial_stressOFR Financial Stress Index

Institutions

3 endpoints

Holdings

1 endpoint

Stocks & Companies

7 endpoints

Stock Analysis

2 endpoints

Insider Trades

2 endpoints

Congress Trades

4 endpoints

SEC Extensions

6 endpoints

Treasury

3 endpoints

Federal Reserve

3 endpoints

Economic

1 endpoint

Market Microstructure

3 endpoints

Energy

1 endpoint

Banking

3 endpoints

Financial Stress

1 endpoint

Bulk Export

1 endpoint

Dashboard

2 endpoints