blue.microcosm.links.getBacklinksCount

microcosm.blue

Documentation

count records that link to another record

main query

count records that link to another record

Parameters

source string Required

collection and path specification for the primary link

subject string uri Required

the primary target being linked to (at-uri, did, or uri)

Output

Encodingapplication/json
total integer Required

total number of matching links

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
collection and path specification for the primary link
the primary target being linked to (at-uri, did, or uri)
View raw schema
{
  "type": "query",
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "total"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "description": "total number of matching links"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "subject",
      "source"
    ],
    "properties": {
      "source": {
        "type": "string",
        "description": "collection and path specification for the primary link"
      },
      "subject": {
        "type": "string",
        "format": "uri",
        "description": "the primary target being linked to (at-uri, did, or uri)"
      }
    }
  },
  "description": "count records that link to another record"
}

Lexicon Garden

@