Memos unofficial
POST/api/v1/memos/-/linkMetadata:batchGet

Get metadata for multiple links

Retrieves metadata for multiple links in one request. Supply the link URLs in urls; the response preserves the input order.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 body field

A batch request containing the link URLs to look up.

urlsarray<string>required
Required. The link URLs.

2 status codes
200Returns a list of link metadata objects in the same order as the input URLs.
linkMetadataarray<object>optional
The link metadata list, in the same order as the input URLs.
defaultReturned when the request fails; includes an error code, a developer-facing message, and optional error details.
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.

Error handling

urls is required and must contain the link URLs whose metadata you want to retrieve.