API Documentation
The repository now exposes a separate FastAPI service for creating verifications, polling report state, reading fact-check evidence, reading narrative analysis, and minting developer keys.
FeedAI uses a primary fact-check engine and multiple narrative lenses over the same evidence summary. If external engine keys are missing, the API falls back to local pipeline mode and records that assumption inside each report.
/api/v1/verificationsCreate a fact-check job with optional multi-model narrative analysis.
/api/v1/verifications/:idRead the full verification record, including factCheck, retrieval, and compatibility fields.
/api/v1/verifications/:id/narrativesRead narrative views generated from the shared evidence summary.
/api/v1/verifications/:id/sourcesRead only fact-check sources and citations gathered by the retrieval orchestrator.
/api/v1/api-keysList API keys created by the current logged-in user.
/api/v1/api-keysMint a developer API key.
/api/v1/api-keys/:idDelete one of the current user's API keys.
/api/v1/usageRead usage counters and engine availability.
Code Examples
import requests
API_KEY = "feedai_your_api_key"
response = requests.post(
"http://127.0.0.1:8000/api/v1/verifications",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"query": "Did the IMF confirm that a country's GDP dropped by 10% in 2023?",
"mode": "fact_check",
"includeNarratives": True,
},
)
job = response.json()
verification_id = job["verificationId"]
report = requests.get(
f"http://127.0.0.1:8000/api/v1/verifications/{verification_id}",
headers={"Authorization": f"Bearer {API_KEY}"},
).json()
print(report)Signed in as Current user
Your API keys: 0
Your API Keys
