logo
Premium Feature Endpoint
Fact Check Your Docs
POST

/custom/api/v2/blog/fact/check

Headers

Authorizationrequired
string

Input the Authorization Bearer Token to authorize your API request.

Body

claimsrequired
array

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” ]

headlinerequired
string

This input field requires the user to input headline of the blog.

Example: “NerdWallet: What Entrepreneurs Can Learn from this Personal Finance Brand”

languagerequired
Default: "English-US"
string
  1. 1.  English-US: English (United States)
  2. 2.  English-UK: English (United Kingdom)
  3. 3.  Spanish: Spanish / Español
  4. 4.  French: French / Français
  5. 5.  Italian: Italian / Italiano
  6. 6.  Dutch: Dutch / Nederlands
  7. 7.  Portuguese: Portuguese / Português
  8. 8.  German: German / Deutsch
  9. 9.  Polish: Polish / Polski

Response

status
string

Indicates whether the call was successful. It prompts success if working, otherwise not.

fact_check_results
array

This is an array which contains objects with copies and relevant_links

copies
string

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. 1.  factuality: Indicates whether the claim is a factually true or not.
  2. 2.  error: what is not true about the claim.
  3. 3.  correction: correction that needs to be made to the claim.
  4. 4.  reasoning: reasoning behind the assessment.
relevant_links
object

The array of citated facts, links and their scores.

credits
number

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>"
}