Retrieves a list of all statements from a given source that match the specified target and statement string.
The API guarantees that all statements with secure source assets, such as HTTPS websites or Android apps, have been made in a secure way by the owner of those assets, as described in the Digital Asset Links technical design specification. Specifically, you should consider that for insecure websites (that is, where the URL starts with http://
instead of https://
), this guarantee cannot be made.
The List
command is most useful in cases where the API client wants to know all the ways in which two assets are related, or enumerate all the relationships from a particular source asset. Example: a feature that helps users navigate to related items. When a mobile app is running on a device, the feature would make it easy to navigate to the corresponding web site or Google+ profile.
HTTP request
GET https://digitalassetlinks.googleapis.com/v1/statements:list
Query parameters
Parameter name | Type | Description |
---|---|---|
source |
object( |
The source hosting the statement list. This is used to direct the List() request to the right source. REQUIRED |
relation |
string |
Use only associations that match the specified relation. See the For a query to match a statement, one of the following must be true:
Example: A query with relation |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response message for the List call.
JSON representation |
---|
{
"statements": [
{
object( |
Field name | Type | Description |
---|---|---|
statements[] |
object( |
A list of all the matching statements that have been found. |
maxAge |
string |
From serving time, how much longer the response should be considered valid barring further updates. REQUIRED A duration in seconds with up to nine fractional digits, terminated by ' |
debugString |
string |
Human-readable message containing information intended to help end users understand, reproduce and debug the result. The message will be in English and we are currently not planning to offer any translations. Please note that no guarantees are made about the contents or format of this string. Any aspect of it may be subject to change without notice. You should not attempt to programmatically parse this data. If you feel that you need to do this because the information you need is not otherwise exposed by the API, please contact us first. |
Statement
Describes a reliable statement that has been made about the relationship between a source asset and a target asset.
Statements are always made by the source asset, either directly or by delegating to a statement list that is stored elsewhere.
For more detailed definitions of statements and assets, please refer to our API documentation landing page.
JSON representation |
---|
{ "source": { object( |
Field name | Type | Description |
---|---|---|
source |
object( |
Every statement has a source asset. REQUIRED |
relation |
string |
The relation identifies the use of the statement as intended by the source asset's owner (that is, the person or entity who issued the statement). Every complete statement has a relation. We identify relations with strings of the format Refer to our API documentation for the current list of supported relations. Example: |
target |
object( |
Every statement has a target asset. REQUIRED |
Try it!
Use the APIs Explorer to call this method on live data and see the response.