---
title: "List what links to a location"
method: GET
path: "/api/v2/location/{id}/backlinks"
tags: ["Location"]
---

# List what links to a location

`GET /api/v2/location/{id}/backlinks`

## Request

- Base URL: `https://www.onlyworlds.com`
- URL: `https://www.onlyworlds.com/api/v2/location/{id}/backlinks`
- Auth: one of:
  - API key in header `API-Key`
  - API key in header `API-Key` and API key in header `API-Pin`
  - HTTP bearer
  - none

The elements you can read that link to this location, across every type, each as a short row that says through which field it links (`via`), never a whole body: read one with its own route. Types come in the registry's order, each type's elements by change_seq then id, the list route's order. The first page also says how many link from each type and through each field (`counts`, `total`). An element that names the id in a field your view of it leaves empty (a field a known-of element does not show) is not among them. Reads the schema's link fields and a Pin's element. An id kept in an extension key or in text is not found. It serves what the list routes serve you, a parlor's room lines, reading aids and proposed elements included. A location you cannot read answers as its own GET does (404, or 410 for one deleted). A tool that signs you in with OnlyWorlds may read with that sign-in instead of a key: send its account token as `Authorization: Bearer ow_a_...` with `world=<id>`, and the read answers as your own access in that world.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `source_type` 'ability' | 'character' | 'construct' | 'creature' | 'event' | 'family' | 'language' | 'law' | 'location' | 'map' | 'narrative' | 'object' | 'phenomenon' | 'pin' | 'relation' | 'species' | 'title'
- `field` 'birthplace' | 'element' | 'environments' | 'estates' | 'extraction_markets' | 'industry_markets' | 'location' | 'locations' | 'locus' | 'parent_location' | 'partner' | 'rival' | 'spread'
- `fields` string[]
- `limit` integer
- `cursor` string
- `as` string
- `world` string, uuid

## Response `200`

A page of what links here.

- Backlinks: A page of what links to an element. Reads the schema's link fields and a Pin's element. An id kept in an extension key or in text is not found.
  - `data` BacklinkRow[], required
    - `id` string, uuid, required
    - `type` string, required
    - `name` string, required
    - `supertype` string, required
    - `subtype` string, required
    - `via` string[], required: The fields of its body, as you are served it, that carry the id: a link field's name, or `element` for a Pin's.
    - `known_of` boolean
    - `hidden` boolean
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required: Pass back as `cursor`, with the same `source_type` and `field`, for the next page; null on the last.
  - `counts` object: First page only: for every type that can link here (one, with `source_type`), how many of its elements do, and how many through each field (an element in two fields counts under each, once in `elements`).
  - `total` integer: First page only: how many elements link here, all pages.

## Other responses

- `400`: Both an API-Key and an account token were sent (one_credential): send one.
- `401`: Missing, invalid or revoked credential, or a wrong PIN (authentication_error; code key_revoked for a revoked key, invalid_credentials otherwise).
- `403`: A member key sent `as`: view as is the owner's (view_as_owner_only).
- `404`: No such location, or one this key cannot see (not_found). Keyless or with an account token and `world`: a world that is not open to the public and no access there, or no such world (one answer for both).
- `410`: Deleted: this world once held the element and deleted it (code gone, type not_found). The body carries the envelope and, beside it, the deletion's `change_seq` and `deleted_at`. An id never seen here, or deleted in another world, is a 404.
- `422`: An unknown query parameter, a bad value, a malformed id, a source_type or field that holds no link here, field or fields without source_type, or a cursor that does not decode or names another element or a type this call does not read (invalid_request; `param` names it).
- `429`: Too many failed PIN attempts; see the Retry-After header (rate_limited). Or too many requests: over the request budget (code too_many_requests, type rate_limited): 300 requests a minute per key or account token, 60 a minute per address for a request with neither. Retry after the Retry-After header's seconds.
- `503`: The server is busy: every request slot stayed full for 10 s (code server_busy, type api_error). Retry after the Retry-After header's seconds.

## Changes

- **2026-12-06** `6c819f2e4bbd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/changes/api/v2/location/:id/backlinks/get.md)

---

[API](https://skmtc.dev/onlyworlds/apis/onlyworlds-api.md) - [All operations](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/revisions/6c819f2e4bbd?raw)
