{
  "id": 6936155,
  "title": "9 Free Endpoints I Built Into a Financial Data API — With Curl/Python Examples",
  "url": "https://urgent.news/2026/09/12/9-free-endpoints-i-built-into-a-financial-data-api-with-curl-python",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-12T13:54:06.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/xfinlab/9-free-endpoints-i-built-into-a-financial-data-api-with-curlpython-examples-280i"
  },
  "original_language": "en",
  "account": "Here are 9 free endpoints built into a financial data API, along with examples using curl and Python:\n\n1. Official Intelligence API: versioned, requires X-API-Key auth, documented, part of the paid product. Safe to build a production integration on.\n\n2. 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.\n\n3. AI Chart Analysis (also has a free web version):\n- Free web tool: `curl https://api.xfinlab.com/api/chart-search/AAPL?period=6mo&interval=1d`\n- Official API: `curl https://api.xfinlab.com/api/intelligence/v1/technical/AAPL -H \"X-API-Key: YOUR_KEY\"`\n- Python example using requests:\n```python\nimport requests\nr = requests.get(\"https://api.xfinlab.com/api/intelligence/v1/technical/AAPL\", headers={\"X-API-Key\": \"YOUR_KEY\"})\ndata = r.json()\nprint(data[\"confluence\"][\"direction\"], data[\"confluence\"][\"confidence_pct\"])\nprint(data[\"support\"], data[\"resistance\"])\n```\n\n4. Stress Lab (also has a free web version):\n- 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}'`\n- Official API (Python example):\n```python\nimport requests\nr = 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})\nd = r.json()[\"data\"]\nprint(f\"Median outcome: ${d['ending_value_p50']:,}\")\nprint(f\"5th percentile (bad case): ${d['ending_value_p5']:,}\")\nprint(f\"Median max drawdown: {d['max_drawdown_p50_pct']}%\")\n```\n\n5. Free Signals (no key, no official API equivalent):\n- `curl https://api.xfinlab.com/api/free-signals`\n- Returns today's top confluence-ranked signals across stocks, futures, and crypto.\n\n6. Opportunity Radar (official API has a free web version):\n- Free web tool: `curl https://api.xfinlab.com/api/free-tools-demo/opportunity-radar`\n- Official API: `curl https://api.xfinlab.com/api/intelligence/v1/opportunity-radar -H \"X-API-Key: YOUR_KEY\"`\n- Returns real % change per indicator across various sectors and economic indicators.\n\n7. Stock Screener (free web version, no key):\n- `curl -X POST https://api.xfinlab.com/api/ai-analysis -H \"Content-Type: application/json\" -d '{\"filters\": {\"sector\": \"Technology\", \"growth\": \"high\"}}`\n- AI-generated commentary grounded in specified filter criteria, but lacks a structured list of tickers with scores.\n\n8. Pairs Statistical Arbitrage Scanner (free web version, no key):\n- `curl -X POST https://api.xfinlab.com/api/pairs-scan -H \"Content-Type: application/json\" -d '{\"symbol_a\": \"KO\", \"symbol_b\": \"PEP\", \"period\": \"6mo\"}`\n- Returns z_score, correlation, divergence, and which side of the pair is richer or cheaper, explicitly not a formal cointegration test.\n\n9. Probability Scan (free web version, no key):\n- `curl https://api.xfinlab.com/api/pipeline/AAPL`\n- Combines market data, technicals, and news sentiment into bullish/bearish probabilities, but should be treated as a reference number rather than a calibrated probability.",
  "summary": "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…",
  "key_points": [
    "Official Intelligence API offers versioned endpoints with X-API-Key authentication",
    "Free website tool lacks versioning guarantee and SLA, suitable for personal scripts",
    "Python examples demonstrate API usage for technical analysis, stress testing, and more"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}