Method: claims.imageSearch
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-08 UTC."],[[["\u003cp\u003eSearch for fact-checked claims related to an image using the \u003ccode\u003eimageSearch\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the image using the \u003ccode\u003eimageUri\u003c/code\u003e parameter in the request.\u003c/p\u003e\n"],["\u003cp\u003eRefine your search with optional parameters like \u003ccode\u003elanguageCode\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003eoffset\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of relevant claims and a token for pagination.\u003c/p\u003e\n"],["\u003cp\u003eEach result contains detailed information about the claim, including its review and rating.\u003c/p\u003e\n"]]],[],null,["# Method: claims.imageSearch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.FactCheckedClaimImageSearchResponse.SCHEMA_REPRESENTATION)\n- [Result](#Result)\n - [JSON representation](#Result.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nSearch through fact-checked claims using an image as the query.\n\n### HTTP request\n\n`GET https://factchecktools.googleapis.com/v1alpha1/claims:imageSearch`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `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. |\n| `pageSize` | `integer` Optional. The pagination size. We will return up to that many results. Defaults to 10 if not set. |\n| `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. |\n| `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. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse from searching fact-checked claims by image.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"results\": [ { object (/fact-check/tools/api/reference/rest/v1alpha1/claims/imageSearch#Result) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `results[]` | `object (`[Result](/fact-check/tools/api/reference/rest/v1alpha1/claims/imageSearch#Result)`)` The list of claims and all of their associated information. |\n| `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. |\n\nResult\n------\n\nA claim and its associated information.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------|\n| ``` { \"claim\": { object (/fact-check/tools/api/reference/rest/v1alpha1/claims#Claim) } } ``` |\n\n| Fields ||\n|---------|-------------------------------------------------------------------------------------------------------------------|\n| `claim` | `object (`[Claim](/fact-check/tools/api/reference/rest/v1alpha1/claims#Claim)`)` A claim which matched the query. |"]]