9 Free Endpoints I Built Into a Financial Data API — With Curl/Python Examples
9 Free Endpoints I Built Into a Financial Data API — With Curl/Python Examples I've been building XFINLAB, a financial intelligence API — market events, sentiment, technical analysis, macro data — with an MCP server for AI agents on top. Along the way I also built a handful of free, no-key tools directly into the site. Sharing the actual working requests here, labeled honestly by which ones you…
Here are 9 free endpoints built into a financial data API, along with examples using curl and Python:
1. Official Intelligence API: versioned, requires X-API-Key auth, documented, part of the paid product. Safe to build a production integration on.
2. Free website tool: no key, no versioning guarantee, no SLA. Suitable for personal scripts, quick lookups, or prototyping, but not recommended for anything that depends on stability.
3. AI Chart Analysis (also has a free web version):
- Free web tool: `curl https://api.xfinlab.com/api/chart-search/AAPL?period=6mo&interval=1d`
- Official API: `curl https://api.xfinlab.com/api/intelligence/v1/technical/AAPL -H "X-API-Key: YOUR_KEY"`
- Python example using requests:
```python
import requests
r = requests.get("https://api.xfinlab.com/api/intelligence/v1/technical/AAPL", headers={"X-API-Key": "YOUR_KEY"})
data = r.json()
print(data["confluence"]["direction"], data["confluence"]["confidence_pct"])
print(data["support"], data["resistance"])
```
4. Stress Lab (also has a free web version):
- Free web tool: `curl -X POST https://api.xfinlab.com/api/stress-lab -H "Content-Type: application/json" -d '{"symbol": "Stocks/Bonds 60/40", "amount": 100000, "horizon_days": 252}'`
- Official API (Python example):
```python
import requests
r = requests.post("https://api.xfinlab.com/api/intelligence/v1/stress-test", headers={"X-API-Key": "YOUR_KEY"}, json={"symbol": "AAPL", "amount": 100000, "horizon_days": 252})
d = r.json()["data"]
print(f"Median outcome: ${d['ending_value_p50']:,}")
print(f"5th percentile (bad case): ${d['ending_value_p5']:,}")
print(f"Median max drawdown: {d['max_drawdown_p50_pct']}%")
```
5. Free Signals (no key, no official API equivalent):
- `curl https://api.xfinlab.com/api/free-signals`
- Returns today's top confluence-ranked signals across stocks, futures, and crypto.
6. Opportunity Radar (official API has a free web version):
- Free web tool: `curl https://api.xfinlab.com/api/free-tools-demo/opportunity-radar`
- Official API: `curl https://api.xfinlab.com/api/intelligence/v1/opportunity-radar -H "X-API-Key: YOUR_KEY"`
- Returns real % change per indicator across various sectors and economic indicators.
7. Stock Screener (free web version, no key):
- `curl -X POST https://api.xfinlab.com/api/ai-analysis -H "Content-Type: application/json" -d '{"filters": {"sector": "Technology", "growth": "high"}}`
- AI-generated commentary grounded in specified filter criteria, but lacks a structured list of tickers with scores.
8. Pairs Statistical Arbitrage Scanner (free web version, no key):
- `curl -X POST https://api.xfinlab.com/api/pairs-scan -H "Content-Type: application/json" -d '{"symbol_a": "KO", "symbol_b": "PEP", "period": "6mo"}`
- Returns z_score, correlation, divergence, and which side of the pair is richer or cheaper, explicitly not a formal cointegration test.
9. Probability Scan (free web version, no key):
- `curl https://api.xfinlab.com/api/pipeline/AAPL`
- Combines market data, technicals, and news sentiment into bullish/bearish probabilities, but should be treated as a reference number rather than a calibrated probability.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.