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

KeyDatatypeRequiredDescription
uriPatternsstring(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.
uriPatternsstring(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.
sourcesstringOptional list of label sources (DIDs) to filter on.
sourcesstringOptional list of label sources (DIDs) to filter on.
limitnumber
cursorstring

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;labels&quot;:[{&quot;src&quot;:&quot;\u003cdid\u003e&quot;,&quot;uri&quot;:&quot;\u003curi\u003e&quot;,&quot;val&quot;:&quot;\u003cstring\u003e&quot;,&quot;cts&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;ver&quot;:&quot;\u003cinteger\u003e&quot;,&quot;cid&quot;:&quot;\u003ccid\u003e&quot;,&quot;neg&quot;:&quot;\u003cboolean\u003e&quot;,&quot;exp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;sig&quot;:&quot;\u003cbyte\u003e&quot;},{&quot;src&quot;:&quot;\u003cdid\u003e&quot;,&quot;uri&quot;:&quot;\u003curi\u003e&quot;,&quot;val&quot;:&quot;\u003cstring\u003e&quot;,&quot;cts&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;ver&quot;:&quot;\u003cinteger\u003e&quot;,&quot;cid&quot;:&quot;\u003ccid\u003e&quot;,&quot;neg&quot;:&quot;\u003cboolean\u003e&quot;,&quot;exp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;sig&quot;:&quot;\u003cbyte\u003e&quot;}],&quot;cursor&quot;:&quot;\u003cstring\u003e&quot;}