Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.factagora.com/llms.txt

Use this file to discover all available pages before exploring further.

This page walks through each of the 6 Search APIs end-to-end, request, response, and how to read the result. For full parameter specs, head to the API Reference.
All endpoints use the same auth: Authorization: Bearer fag_your_api_key. Replace fag_your_api_key with your key from the Factagora dashboard.
GET /api/v1/news/search · 1 credit · Real-time semantic news search. Search news by meaning rather than keywords. Returns articles with publication date, source domain, and relevance score.
curl -G "https://api.factagora.com/api/v1/news/search" \
  -H "Authorization: Bearer fag_your_api_key" \
  --data-urlencode "q=ECB interest rate decision" \
  --data-urlencode "limit=5" \
  --data-urlencode "timespan=7d"

Response

{
  "query": "ECB interest rate decision",
  "results": [
    {
      "title": "ECB raises rates by 25bp, signals pause",
      "url": "https://example.com/ecb-rate-hike",
      "publishedAt": "2024-06-15T08:00:00Z",
      "source": "reuters.com",
      "language": "english"
    }
  ],
  "meta": { "executionTimeMs": 412 }
}
Use timespan to keep results fresh. Combine with sortBy=date when you want the absolute latest articles rather than the most relevant ones.

2. Fact Checker

POST /api/v1/fact-checker · 2 credits · Claim verification. Sends a claim, returns a TRUE / FALSE / UNCERTAIN verdict with a confidence score and supporting sources from the Factagora knowledge base.
curl -X POST "https://api.factagora.com/api/v1/fact-checker" \
  -H "Authorization: Bearer fag_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"claim": "The ECB raised interest rates in June 2024."}'

Response

{
  "claim": "The ECB raised interest rates in June 2024.",
  "verdict": "TRUE",
  "confidence": 0.92,
  "summary": "Multiple verified sources confirm the ECB raised its deposit rate by 25bp on June 6, 2024.",
  "sources": [
    {
      "title": "ECB June 2024 monetary policy decision",
      "url": "https://factagora.com/claims/abc-123"
    }
  ]
}
Treat confidence < 0.5 as UNCERTAIN even when the verdict is TRUE or FALSE. The verdict reflects the AI’s best guess; confidence reflects how strongly the evidence supports it.

3. Evidence Hunter

POST /api/v1/evidence-finder · 2 credits · Evidence expansion and source discovery. Given a claim, surfaces multi-angle evidence, each result is typed (DATA, EXPERT, NEWS, FACT_CHECK), credibility-scored, and tagged with a stance (supports / contradicts / neutral).
curl -X POST "https://api.factagora.com/api/v1/evidence-finder" \
  -H "Authorization: Bearer fag_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"claim": "Carbon pricing reduces industrial emissions.", "limit": 5}'

Response

{
  "claim": "Carbon pricing reduces industrial emissions.",
  "results": [
    {
      "summary": "OECD study finds a 5–15% reduction in covered-sector emissions following carbon-pricing introduction.",
      "source": "https://oecd.org/...",
      "type": "DATA",
      "credibility": 0.91,
      "stance": "supports"
    },
    {
      "summary": "Industry economist argues short-term emissions decline is offset by carbon leakage.",
      "source": "https://example.com/...",
      "type": "EXPERT",
      "credibility": 0.74,
      "stance": "contradicts"
    }
  ]
}
Use stance to balance perspectives. A claim that returns only supports-stance evidence may be under-explored, pull more results or refine the claim to surface counter-evidence.

4. Deep Research

POST /api/v1/deep-research · 2 credits · Cross-source research synthesis. Aggregates verified claims, news, and time-series events on a topic, then generates a structured report with sections and citations.
curl -X POST "https://api.factagora.com/api/v1/deep-research" \
  -H "Authorization: Bearer fag_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"query": "Impact of US tariffs on global semiconductor supply chains"}'

Response

{
  "query": "Impact of US tariffs on global semiconductor supply chains",
  "summary": "US tariffs on advanced chips have accelerated supply-chain regionalization, with notable shifts in Taiwan, Korea, and ASEAN fab investments.",
  "sections": [
    { "title": "Background", "content": "..." },
    { "title": "Current State", "content": "..." },
    { "title": "Key Debates", "content": "..." },
    { "title": "Conclusion", "content": "..." }
  ],
  "timeseries": {
    "title": "Major tariff and policy events",
    "dataPoints": [
      { "date": "2022-10-07", "event": "US export controls on advanced chips to China" }
    ]
  },
  "sources": [
    { "title": "...", "url": "..." }
  ]
}
Treat the summary as a draft, not a final answer. Deep Research synthesizes from multiple sources but does not replace human judgment for high-stakes decisions, always review the cited sources.

5. Timeseries

POST /api/v1/timeseries · 3 credits · Time-based information flow. Extracts a chronological sequence of events from a URL or uploaded document (PDF/Markdown).
curl -X POST "https://api.factagora.com/api/v1/timeseries" \
  -H "Authorization: Bearer fag_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/ai-act-history"}'

Response

{
  "title": "EU AI Act timeline",
  "dataPoints": [
    { "date": "2021-04-21", "event": "European Commission proposes AI Act" },
    { "date": "2023-12-08", "event": "Provisional political agreement reached" },
    { "date": "2024-03-13", "event": "European Parliament adopts the AI Act" }
  ]
}
Use /timeseries/file for PDFs and Markdown that aren’t reachable by URL, for example, internal reports or whitepapers stored on your servers.

6. Causality Graph

POST /api/v1/causality-graph · 3 credits · Cause-and-effect analysis. Extracts a directed graph of causes and effects from a URL or document. Nodes are concepts/events; edges are causal relationships.
curl -X POST "https://api.factagora.com/api/v1/causality-graph" \
  -H "Authorization: Bearer fag_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/economic-analysis"}'

Response

{
  "nodes": [
    { "id": "n1", "label": "Rate hike" },
    { "id": "n2", "label": "Mortgage demand drop" },
    { "id": "n3", "label": "Housing price decline" }
  ],
  "edges": [
    { "from": "n1", "to": "n2", "relation": "causes" },
    { "from": "n2", "to": "n3", "relation": "causes" }
  ]
}
Pair with Timeseries for full picture. Timeseries tells you when; Causality Graph tells you why, together they reconstruct an event chain end-to-end.

Summary

APIEndpointWhat it doesCredits
News SearchGET /news/searchReal-time semantic news search1
Fact CheckerPOST /fact-checkerVerify a claim with verdict + confidence2
Evidence HunterPOST /evidence-finderMulti-angle credibility-scored evidence2
Deep ResearchPOST /deep-researchCross-source synthesis with sections2
TimeseriesPOST /timeseriesChronological event extraction3
Causality GraphPOST /causality-graphCause-and-effect graph3