com.atproto.label.query Labels
GET {{baseUrl}}/xrpc/com.atproto.label.queryLabels?uriPatterns=<string>&uriPatterns=<string>&sources=<did>&sources=<did>&limit=50&cursor=<string>
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
uriPatterns | string | (Required) List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with ''; will match inclusive of the string leading to ''), or a full URI. | |
uriPatterns | string | (Required) List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with ''; will match inclusive of the string leading to ''), or a full URI. | |
sources | string | Optional list of label sources (DIDs) to filter on. | |
sources | string | Optional list of label sources (DIDs) to filter on. | |
limit | number | ||
cursor | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"labels":[{"src":"\u003cdid\u003e","uri":"\u003curi\u003e","val":"\u003cstring\u003e","cts":"\u003cdateTime\u003e","ver":"\u003cinteger\u003e","cid":"\u003ccid\u003e","neg":"\u003cboolean\u003e","exp":"\u003cdateTime\u003e","sig":"\u003cbyte\u003e"},{"src":"\u003cdid\u003e","uri":"\u003curi\u003e","val":"\u003cstring\u003e","cts":"\u003cdateTime\u003e","ver":"\u003cinteger\u003e","cid":"\u003ccid\u003e","neg":"\u003cboolean\u003e","exp":"\u003cdateTime\u003e","sig":"\u003cbyte\u003e"}],"cursor":"\u003cstring\u003e"}