P0 API call

API Endpoint package

Text Analytics

API endpoint

https://app.trustservista.com/api/rest/v2/p0

Supported Languages

English (native).

Russian, Arabic, Spanish, French, Chinese (with automated translation).

Description

Given an article URL, the endpoint will return the Patient Zero for the content and the full timeline from given content (back in time) to found Patient Zero. Patient Zero is an article or Twitter status that represents the original source of information for the current article.

API call behavior:

  • It works only if the platform has enough context information for the article (the article contained enough content & useful information). Otherwise, the endpoint will come back with a 404 error.
  • If a Patient Zero was not found, it means the analyzed article did not contain any links or references that were relevant to the story or the article is a Patient Zero.
  • If a suitable Patient Zero is not found, the API call will return article candidates that can be used as P0 substitutes.

This endpoint is used in the TrustServista Web Dashboard when performing a URL verification and determining the P0 and the timeline to it:

Read more on why finding Patient Zero is important for news verification and how TrustServista finds links and similarities between articles.

Sample cURL call

curl -X POST \
    -H "X-TRUS-API-Key: your_api_key" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Cache-Control: no-cache" \
    -d '{"contentUri": "http://www.nydailynews.com/news/world/trump-labels-north-korea-problem-menace-summit-article-1.3311227" }' \
    "https://trust.servista.eu/api/rest/v2/p0"

Sample JSON response

{
"patientZeroId": "c6d91e9ed333b599bd869a8562f42a0f",
"patientZeroUrl": "http://hosted2.ap.org/APDEFAULT/3d281c11a96b4ad082fe88aa0db04305/Article_2017-07-08-EU--Trump/id-810b7d8b029545e28af21d36c99cf85f",
"id": "980b7fd6e88f801fcb3355448167c465",
"url" : "http://www.nydailynews.com/news/world/trump-labels-north-korea-problem-menace-summit-article-1.3311227"
"publishTime": "2017-07-08 15:35:52",
"title": "Trump labels North Korea a 'problem and menace' at summit ",
"source": "NY Daily News",
"timeline": [{
			"id": "54908eef86289b16297feb11a5a0bd57",
"url" : "http://hosted2.ap.org/APDEFAULT/3d281c11a96b4ad082fe88aa0db04305/Article_2017-07-08-EU-Trump/id-cba12047e12a4a2686839df31881118a",
			"publishDate": "2017-07-08 14:43:19",
			"title": "Trump labels North Korea a 'problem and menace' at summit",
			"source": "Associated Press",
			"sourceLogo": "https://www.ap.org/assets/images/framework/favicon-32x32.png",
			"parent": "980b7fd6e88f801fcb3355448167c465"
		}, {
			"id": "c6d91e9ed333b599bd869a8562f42a0f",
			"url": "http://hosted2.ap.org/APDEFAULT/3d281c11a96b4ad082fe88aa0db04305/Article_2017-07-08-EU--Trump/id-810b7d8b029545e28af21d36c99cf85f",
			"publishDate": "2017-07-08 11:14:09",
			"title": "Trump seeks consensus on trade, North Korea at summit",
			"source": "Associated Press",
			"sourceLogo": "https://www.ap.org/assets/images/framework/favicon-32x32.png",
			"parent": "54908eef86289b16297feb11a5a0bd57"
		}
]
}

Try our REST API

Request API key