Put the verified entity record inside pipelines you already run. Each integration is a small, dependency-light pattern over the signed Entity Knowledge Statement — verified facts, corrections to common AI claims, and provenance on every observation. The Knowledge Statement read is keyless; nothing here requires a paid plan.
Every sample on this page was executed against production before it shipped.
Documents with provenance metadata, composable into any chain or LangGraph node.# Output guardrail: block drafts that contradict the verified record.
# Standard library only — no API key needed. Full sample: docs/integrations.
import json, re, urllib.request
def check_entity_grounding(slug: str, draft: str):
url = f"https://entidex.com/entity/{slug}/knowledge?format=json"
with urllib.request.urlopen(url, timeout=30) as r:
statement = json.load(r)
violations = []
draft_l = draft.lower()
# 1 — known wrong-claim patterns from the corrections delta
for c in statement.get("corrections", []):
wrong, right = c.get("commonAiClaim", ""), c.get("verifiedValue", "")
if wrong and wrong.lower() in draft_l and right.lower() not in draft_l:
violations.append({"field": c["field"], "verified": right})
# 2 — year contradictions on year-valued verified facts (e.g. Founded)
years = set(re.findall(r"\b(?:19|20)\d{2}\b", draft))
for f in statement.get("verifiedFacts", []):
v = str(f.get("value", ""))
if re.fullmatch(r"(?:19|20)\d{2}", v) and f["field"].lower() in draft_l \
and years and v not in years:
violations.append({"field": f["field"], "verified": v})
return {"grounded": not violations, "violations": violations,
"citation": statement["provenance"]["statementUrl"]}
# check_entity_grounding("tesla", "Tesla, founded in 2010, ...")
# -> grounded: False, violations: [{"field": "Founded", "verified": "2003"}]Full runnable samples with execution transcripts live in the repo under docs/integrations/. With a free API key, free-form names resolve to canonical entities first via GET /api/v1/entities/resolve?q=….
/entity/{slug}/knowledge?format=json — the signed Knowledge Statement, keyless. Also md and jsonld (schema.org ClaimReview)./api/v1/entities/resolve?q=… — free-form name to canonical entity with a confidence band. Free tier./api/v1/entities/{id}/ground-truth — the authenticated structured form of the same record, for CI and agents. Starter+.entity_verify_fact — in-flight verification for MCP-native agents; see the MCP server page.Dedicated Grounding Packet and Grounding Check endpoints are on the roadmap; when they ship, these recipes swap their fetch internals and keep the same document shapes and verdict semantics.
Create a free account to get an API key (1,000 monthly credits, 1,500 with a verified email + phone), then resolve, read and ground in minutes. Or try the keyless scan first.