Index
FactCheckToolsService
(interface)Claim
(message)ClaimAuthor
(message)ClaimRating
(message)ClaimReview
(message)ClaimReviewAuthor
(message)ClaimReviewMarkup
(message)ClaimReviewMarkupPage
(message)CreateClaimReviewMarkupPageRequest
(message)DeleteClaimReviewMarkupPageRequest
(message)FactCheckedClaimImageSearchRequest
(message)FactCheckedClaimImageSearchResponse
(message)FactCheckedClaimImageSearchResponse.Result
(message)FactCheckedClaimSearchRequest
(message)FactCheckedClaimSearchResponse
(message)GetClaimReviewMarkupPageRequest
(message)ListClaimReviewMarkupPagesRequest
(message)ListClaimReviewMarkupPagesResponse
(message)Publisher
(message)UpdateClaimReviewMarkupPageRequest
(message)
FactCheckToolsService
Fact Check Tools API
The Fact Check Tools API provides programmatic access to the functionality provided through the Google Fact Check Tools frontend at https://g.co/factchecktools.
The current APIs available are:
- Fact Checked Claim Search (provided through the Fact Check Explorer frontend).
- Fact Checked Claim Search by Image (provided through the Fact Check Explorer frontend).
CRUD interface for
ClaimReview
markup on a page (provided through the Fact Check Markup Tool frontend).
CreateClaimReviewMarkupPage |
---|
Create
|
DeleteClaimReviewMarkupPage |
---|
Delete all
|
FactCheckedClaimImageSearch |
---|
Search through fact-checked claims using an image as the query. |
FactCheckedClaimSearch |
---|
Search through fact-checked claims. |
GetClaimReviewMarkupPage |
---|
Get all
|
ListClaimReviewMarkupPages |
---|
List the
|
UpdateClaimReviewMarkupPage |
---|
Update for all Note that this is a full update. To retain the existing
|
Claim
Information about the claim.
Fields | |
---|---|
text |
The claim text. For instance, "Crime has doubled in the last 2 years." |
claimant |
A person or organization stating the claim. For instance, "John Doe". |
claim_date |
The date that the claim was made. |
claim_review[] |
One or more reviews of this claim (namely, a fact-checking article). |
ClaimAuthor
Information about the claim author.
Fields | |
---|---|
name |
A person or organization stating the claim. For instance, "John Doe". |
job_title |
Corresponds to |
image_url |
Corresponds to |
same_as |
Corresponds to |
ClaimRating
Information about the claim rating.
Fields | |
---|---|
textual_rating |
The truthfulness rating as a human-readible short word or phrase. |
rating_value |
A numeric rating of this claim, in the range worstRating — bestRating inclusive. |
worst_rating |
For numeric ratings, the worst value possible in the scale from worst to best. |
best_rating |
For numeric ratings, the best value possible in the scale from worst to best. |
rating_explanation |
Corresponds to |
image_url |
Corresponds to |
ClaimReview
Information about a claim review.
Fields | |
---|---|
publisher |
The publisher of this claim review. |
url |
The URL of this claim review. |
title |
The title of this claim review, if it can be determined. |
review_date |
The date the claim was reviewed. |
textual_rating |
Textual rating. For instance, "Mostly false". |
language_code |
The language this review was written in. For instance, "en" or "de". |
ClaimReviewAuthor
Information about the claim review author.
Fields | |
---|---|
name |
Name of the organization that is publishing the fact check. |
image_url |
Corresponds to |
ClaimReviewMarkup
Fields for an individual ClaimReview
element. Except for sub-messages that group fields together, each of these fields correspond those in https://schema.org/ClaimReview. We list the precise mapping for each field.
Fields | |
---|---|
url |
This field is optional, and will default to the page URL. We provide this field to allow you the override the default value, but the only permitted override is the page URL plus an optional anchor link ("page jump"). |
claim_reviewed |
A short summary of the claim being evaluated. |
claim_date |
The date when the claim was made or entered public discourse. |
claim_location |
The location where this claim was made. |
claim_first_appearance |
A link to a work in which this claim first appears. |
claim_appearances[] |
A list of links to works in which this claim appears, aside from the one specified in |
claim_author |
Info about the author of this claim. |
rating |
Info about the rating of this claim review. |
ClaimReviewMarkupPage
Holds one or more instances of ClaimReview
markup for a webpage.
Fields | |
---|---|
name |
The name of this |
page_url |
The URL of the page associated with this |
publish_date |
The date when the fact check was published. Similar to the URL, semantically this is a page-level field, and each |
claim_review_author |
Info about the author of this claim review. Similar to the above, semantically these are page-level fields, and each |
claim_review_markups[] |
A list of individual claim reviews for this page. Each item in the list corresponds to one |
version_id |
The version ID for this markup. Except for update requests, this field is output-only and should not be set by the user. |
CreateClaimReviewMarkupPageRequest
Request for creating ClaimReview
markup on a page.
Fields | |
---|---|
claim_review_markup_page |
The |
DeleteClaimReviewMarkupPageRequest
Request for deleting all ClaimReview
markup on a page.
Fields | |
---|---|
name |
The name of the resource to delete, in the form of |
FactCheckedClaimImageSearchRequest
Request for searching through fact-checked claims by image.
Fields | |
---|---|
image_uri |
Required. The URI of the source image. This must be a publicly-accessible image HTTP/HTTPS URL. When fetching images from HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed. Your request may fail if the specified host denies the request (e.g. due to request throttling or DOS prevention), or if Google throttles requests to the site for abuse prevention. You should not depend on externally-hosted images for production applications. |
language_code |
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by language, though we do not currently consider the region. |
page_size |
Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set. |
page_token |
Optional. The pagination token. You may provide the |
offset |
Optional. An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if |
FactCheckedClaimImageSearchResponse
Response from searching fact-checked claims by image.
Fields | |
---|---|
results[] |
The list of claims and all of their associated information. |
next_page_token |
The next pagination token in the Search response. It should be used as the |
Result
A claim and its associated information.
Fields | |
---|---|
claim |
A claim which matched the query. |
FactCheckedClaimSearchRequest
Request for searching through fact-checked claims.
Fields | |
---|---|
query |
Textual query string. Required unless |
language_code |
The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to restrict results by language, though we do not currently consider the region. |
review_publisher_site_filter |
The review publisher site to filter results by, e.g. nytimes.com. |
max_age_days |
The maximum age of the returned search results, in days. Age is determined by either claim date or review date, whichever is newer. |
page_size |
The pagination size. We will return up to that many results. Defaults to 10 if not set. |
page_token |
The pagination token. You may provide the |
offset |
An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if |
FactCheckedClaimSearchResponse
Response from searching fact-checked claims.
Fields | |
---|---|
claims[] |
The list of claims and all of their associated information. |
next_page_token |
The next pagination token in the Search response. It should be used as the |
GetClaimReviewMarkupPageRequest
Request for getting the ClaimReview
markup on a page.
Fields | |
---|---|
name |
The name of the resource to get, in the form of |
ListClaimReviewMarkupPagesRequest
Request for listing ClaimReview
markup.
Fields | |
---|---|
url |
The URL from which to get |
organization |
The organization for which we want to fetch markups for. For instance, "site.com". Cannot be specified along with an URL. |
page_size |
The pagination size. We will return up to that many results. Defaults to 10 if not set. Has no effect if a URL is requested. |
page_token |
The pagination token. You may provide the |
offset |
An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if |
ListClaimReviewMarkupPagesResponse
Response from listing ClaimReview
markup.
Fields | |
---|---|
claim_review_markup_pages[] |
The result list of pages of |
next_page_token |
The next pagination token in the Search response. It should be used as the |
Publisher
Information about the publisher.
Fields | |
---|---|
name |
The name of this publisher. For instance, "Awesome Fact Checks". |
site |
Host-level site name, without the protocol or "www" prefix. For instance, "awesomefactchecks.com". This value of this field is based purely on the claim review URL. |
UpdateClaimReviewMarkupPageRequest
Request for updating all ClaimReview
markup on a page.
Fields | |
---|---|
claim_review_markup_page |
The updated |