Get Educational Resource
get_resourceRetrieve a single piece of content by naddr (preferred — pass a search_content result's naddr), d-tag identifier, or event ID. naddrs of ANY content type from search_content work (resources, articles, wikis, projects, measures, publications); non-resource kinds return the same shape as their search results. Bare identifier/eventId lookups (no naddr) always resolve the full educational-resource metadata (kind 30142), including creator/publisher and educational properties. Lookups are not license-filtered: a learning resource carries openLicense (true for CC0, Public Domain, CC BY, CC BY-SA — the open licenses that search results are currently limited to). When presenting the resource, render a markdown link the user can open: prefer its sourcePage (the original source page); fall back to url (the edufeed viewer) only when sourcePage is absent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| naddr | No | NIP-19 naddr from a search result — the preferred handoff to fetch full metadata. | |
| author | No | Author pubkey (hex) to disambiguate if multiple resources share the same identifier | |
| relays | No | Restrict the lookup to specific relays — pass the relays a search found the result on. Only relays returned by list_relays (default or extra) are accepted, by full URL or short name (e.g. "oersi"). Default: the default relay set. | |
| eventId | No | Nostr event ID (hex) for direct lookup. Alternative to identifier. | |
| language | No | Preferred language for labels (default: "de") | de |
| identifier | No | Resource identifier (d-tag). Use this for stable lookups. |