Fact Check Your Docs
This endpoint enables you to verify the factual accuracy of the content. In addition, you'll also find the reasoning supporting the said claim.
/custom/api/v2/blog/fact/check
Headers
Input the Authorization Bearer Token to authorize your API request.
Body
This input field requires the user to input the claims in a list that needs to be verified.
Example: [ “The second investments were over $100 million from capital venturers”, “Annual revenue was over $100 million” ]
This input field requires the user to input headline of the blog.
Example: “NerdWallet: What Entrepreneurs Can Learn from this Personal Finance Brand”
- 1. English-US: English (United States)
- 2. English-UK: English (United Kingdom)
- 3. Spanish: Spanish / Español
- 4. French: French / Français
- 5. Italian: Italian / Italiano
- 6. Dutch: Dutch / Nederlands
- 7. Portuguese: Portuguese / Português
- 8. German: German / Deutsch
- 9. Polish: Polish / Polski
Response
Indicates whether the call was successful. It prompts success if working, otherwise not.
This is an array which contains objects with copies and relevant_links
This field answers in detail whether the claim is a fact or not. This string can be parsed into an object which will have the following keys:
- 1. factuality: Indicates whether the claim is a factually true or not.
- 2. error: what is not true about the claim.
- 3. correction: correction that needs to be made to the claim.
- 4. reasoning: reasoning behind the assessment.
The array of citated facts, links and their scores.
This field informs you about the credits consumed for this particular request. It varies on the generated content.
curl --location --request POST 'https://api-az.longshot.ai/custom/api/blog/fact/check'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer <token>'
--data-raw '{
"claims": [],
"headline": "",
"language": "en"
}'
{
"status": "Success",
"fact_check_results": [
{
"copies": "",
"relevant_links": [
{
"fact": "<Citated Fact>",
"link": "<url to source of fact>",
"score": "<Calculated score>"
},
{
"fact": "<Citated Fact>",
"link": "<url to source of fact>",
"score": "<Calculated score>"
}
]
}
],
"credits": "<Credits>"
}