Skip to content

JSON-LD @context

Various examples the @context property can take. See here for the W3C specification, and here for what ActivityStreams says about it.

Examples

Example 1

activity
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/adg05og8rvr00003"
  ],
  "id": "http://pasture-one-actor/activity/T-jlexzhmJI",
  "published": "2025-10-04T15:40:25Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/adg05og8rvr00003"
    ],
    "id": "http://pasture-one-actor/object/tJigOoQD_5A",
    "published": "2025-10-04T15:40:25Z",
    "@context": "https://www.w3.org/ns/activitystreams",
    "content": "@context url as the ActivityStreams URL"
  }
}
sharkey
{
  "id": "adg07lt4l0mw000w",
  "uri": "http://pasture-one-actor/object/tJigOoQD_5A",
  "url": "http://pasture-one-actor/object/tJigOoQD_5A",
  "account": {
    "id": "adg07agxl0mw0004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-10-04T15:40:10.305Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 27,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>@context</span> url as the ActivityStreams URL</p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "@context url as the ActivityStreams URL",
  "created_at": "2025-10-04T15:40:25.000Z",
  "edited_at": null,
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}

Example 2

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams"
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/adg05og8rvr00003"
  ],
  "id": "http://pasture-one-actor/activity/1jnaI-wGy6U",
  "published": "2025-10-04T15:40:26Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/adg05og8rvr00003"
    ],
    "id": "http://pasture-one-actor/object/kZQ1nvjXLIk",
    "published": "2025-10-04T15:40:26Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "content": "@context url is list of ActivityStreams URL"
  }
}
sharkey
{
  "id": "adg07mkwl0mw000x",
  "uri": "http://pasture-one-actor/object/kZQ1nvjXLIk",
  "url": "http://pasture-one-actor/object/kZQ1nvjXLIk",
  "account": {
    "id": "adg07agxl0mw0004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-10-04T15:40:10.305Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 28,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>@context</span> url is list of ActivityStreams URL</p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "@context url is list of ActivityStreams URL",
  "created_at": "2025-10-04T15:40:26.000Z",
  "edited_at": null,
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}

Example 3

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/adg05og8rvr00003"
  ],
  "id": "http://pasture-one-actor/activity/sQneaPVPBbE",
  "published": "2025-10-04T15:40:27Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/adg05og8rvr00003"
    ],
    "id": "http://pasture-one-actor/object/7qZL4FOK5GQ",
    "published": "2025-10-04T15:40:27Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        "Hashtag": "as:Hashtag"
      }
    ],
    "content": "@context url is list of ActivityStreams URL and Hashtag"
  }
}
sharkey
{
  "id": "adg07ncol0mw000y",
  "uri": "http://pasture-one-actor/object/7qZL4FOK5GQ",
  "url": "http://pasture-one-actor/object/7qZL4FOK5GQ",
  "account": {
    "id": "adg07agxl0mw0004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-10-04T15:40:10.305Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 29,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>@context</span> url is list of ActivityStreams URL and Hashtag</p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "@context url is list of ActivityStreams URL and Hashtag",
  "created_at": "2025-10-04T15:40:27.000Z",
  "edited_at": null,
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}

Example 4

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/fep/5711"
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/adg05og8rvr00003"
  ],
  "id": "http://pasture-one-actor/activity/YwcfEp8nCYA",
  "published": "2025-10-04T15:40:27Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/adg05og8rvr00003"
    ],
    "id": "http://pasture-one-actor/object/jIEqf4VGGfU",
    "published": "2025-10-04T15:40:27Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/fep/5711"
    ],
    "content": "@context with ActivityStreams URL + w3id-fep document"
  }
}
sharkey
{
  "id": "adg07ncol0mw000z",
  "uri": "http://pasture-one-actor/object/jIEqf4VGGfU",
  "url": "http://pasture-one-actor/object/jIEqf4VGGfU",
  "account": {
    "id": "adg07agxl0mw0004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-10-04T15:40:10.305Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 30,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>@context</span> with ActivityStreams URL + w3id-fep document</p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "@context with ActivityStreams URL + w3id-fep document",
  "created_at": "2025-10-04T15:40:27.000Z",
  "edited_at": null,
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}

Example 5

activity
{
  "@context": null,
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/adg05og8rvr00003"
  ],
  "id": "http://pasture-one-actor/activity/6dZqd6XuHbs",
  "published": "2025-10-04T15:40:28Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/adg05og8rvr00003"
    ],
    "id": "http://pasture-one-actor/object/jIzr6Ta3aEw",
    "published": "2025-10-04T15:40:28Z",
    "@context": null,
    "content": "no @context"
  }
}
sharkey
{
  "id": "adg07o4gl0mw0010",
  "uri": "http://pasture-one-actor/object/jIzr6Ta3aEw",
  "url": "http://pasture-one-actor/object/jIzr6Ta3aEw",
  "account": {
    "id": "adg07agxl0mw0004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-10-04T15:40:10.305Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 31,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p>no <span>@context</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "no @context",
  "created_at": "2025-10-04T15:40:28.000Z",
  "edited_at": null,
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}

Example 6

activity
{
  "@context": "http://strange.example/context",
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://sharkey/users/adg05og8rvr00003"
  ],
  "id": "http://pasture-one-actor/activity/Am_rhoVxV-I",
  "published": "2025-10-04T15:40:28Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/adg05og8rvr00003"
    ],
    "id": "http://pasture-one-actor/object/sYRS4xcrRaw",
    "published": "2025-10-04T15:40:28Z",
    "@context": "http://strange.example/context",
    "content": "@context is a broken url"
  }
}
sharkey
{
  "id": "adg07o4gl0mw0011",
  "uri": "http://pasture-one-actor/object/sYRS4xcrRaw",
  "url": "http://pasture-one-actor/object/sYRS4xcrRaw",
  "account": {
    "id": "adg07agxl0mw0004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-10-04T15:40:10.305Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 32,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>@context</span> is a broken url</p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "@context is a broken url",
  "created_at": "2025-10-04T15:40:28.000Z",
  "edited_at": null,
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}