Method: claims.imageSearch

Search through fact-checked claims using an image as the query.

HTTP request

GET https://factchecktools.googleapis.com/v1alpha1/claims:imageSearch

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
imageUri

string

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.

languageCode

string

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.

pageSize

integer

Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set.

pageToken

string

Optional. The pagination token. You may provide the nextPageToken returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.

offset

integer

Optional. An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if pageToken is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.

Request body

The request body must be empty.

Response body

Response from searching fact-checked claims by image.

If successful, the response body contains data with the following structure:

JSON representation
{
  "results": [
    {
      object (Result)
    }
  ],
  "nextPageToken": string
}
Fields
results[]

object (Result)

The list of claims and all of their associated information.

nextPageToken

string

The next pagination token in the Search response. It should be used as the pageToken for the following request. An empty value means no more results.

Result

A claim and its associated information.

JSON representation
{
  "claim": {
    object (Claim)
  }
}
Fields
claim

object (Claim)

A claim which matched the query.