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 |
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 |
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 |
Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set. |
pageToken |
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 |
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 ( |
Fields | |
---|---|
results[] |
The list of claims and all of their associated information. |
nextPageToken |
The next pagination token in the Search response. It should be used as the |
Result
A claim and its associated information.
JSON representation |
---|
{
"claim": {
object ( |
Fields | |
---|---|
claim |
A claim which matched the query. |