{"uid":"cap_LKzmpVTZ5H71CuZzGG2zu","slug":"ai-answer-hallucination-entity-checker-wikidata-7a61156e","name":"AI Answer Hallucination Entity Checker (Wikidata)","description":"Checks the named entities in an AI answer (up to 5 capitalised names) against Wikidata: each name is marked found or not found, with its Wikidata ID and description, and sentences containing a year are listed for review. It checks that entities exist, not that claims about them are true, so a found entity can still have a wrong fact.","url":"https://api.fadeandco.workers.dev/api/agent-intel/hallucination-claim-checker?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The model answer to check, 10 to 5000 characters"}}},"responseSchema":{"type":"json","example":{"note":"Existence check only: a found entity can still carry a wrong date or fact. Review the sentences with years yourself.","source":"https://www.wikidata.org/w/api.php","entities":[{"name":"Marie Curie","status":"found","wikidataId":"Q7186","description":"Polish-born French physicist and chemist (1867–1934)"},{"name":"Nobel Prize","status":"found","wikidataId":"Q7191","description":"set of annual international awards, primarily 5 established in 1895 by Alfred Nobel"}],"checkedAt":"2026-10-23T09:35:21.542Z","notFoundCount":0,"sentencesWithYears":["Marie Curie won the Nobel Prize in 1903.","She later moved to Mars in 1921."]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ImLKH0x6uydwqM2Cx5Rg3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks up to 5 capitalised named entities in an AI-generated text against Wikidata to verify their existence, returning found/not-found status, Wikidata IDs, descriptions, and sentences containing years for manual review.","exampleAgentPrompt":"Can you check this AI-generated paragraph for hallucinated entity names — verify whether the capitalised names actually exist in Wikidata and flag any sentences that mention specific years? Here's the text: 'Albert Einstein received the Nobel Prize in Physics in 1921 for his discovery of the photoelectric effect, later collaborating with Niels Bohr at the Solvay Institute in Geneva.'","exampleUseCases":[{"title":"LLM response quality gate","prompt":"Before I publish this AI-written bio, check whether all the named people and organisations in it actually exist — here's the text: 'Ada Lovelace worked alongside Charles Babbage at the Royal Society of London and published her famous notes in 1843.'"},{"title":"RAG pipeline hallucination audit","prompt":"My RAG system generated this answer about historical figures — can you verify which of the capitalised names are real Wikidata entries and list any sentences that include years so I can review them manually? Text: 'Isaac Newton was mentored by Gottfried Leibniz at Cambridge University, publishing Principia Mathematica in 1687.'"},{"title":"Chatbot output moderation","prompt":"I need to check this chatbot response for made-up entity names before showing it to users — please look up each capitalised name in Wikidata and tell me which ones aren't found: 'The treaty was signed by President Marlowe Hendricks and ratified by the United Nations in 2019.'"}],"resultDescription":"A JSON object listing each detected named entity with its Wikidata existence status ('found' or 'not found'), its Wikidata ID and short description when found, plus a list of sentences from the input that contain a year for human review. Also includes a timestamp, a count of not-found entities, and a note reminding that existence does not verify factual accuracy of claims.","failureModes":["Text shorter than 10 or longer than 5000 characters returns a validation error","No capitalised names detected results in an empty entity list","Wikidata API unavailability causes lookup failure","Ambiguous or very common capitalised words (e.g. 'The', 'A') may not resolve to meaningful entities","More than 5 capitalised names causes only the first 5 to be checked","Non-English entity names may have lower Wikidata match rates"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, fast existence-check on named entities in an AI-generated text without running a full semantic fact-verification pipeline. It is ideal for post-generation quality gates in LLM pipelines, RAG audits, or chatbot moderation where you want to quickly surface potentially hallucinated proper nouns and flag date-bearing sentences for human review. Prefer this over general web-search fact-checkers when you specifically want structured Wikidata provenance (IDs and descriptions) for each entity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:34:21.238Z","isFirstParty":false,"canonicalSlug":"ai-answer-hallucination-entity-checker-wikidata-7a61156e"}