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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/jvC42ceGxpY",
  "published": "2025-09-09T12:42:00Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/-mC6Pf8k1lY",
    "published": "2025-09-09T12:42:00Z",
    "@context": "https://www.w3.org/ns/activitystreams",
    "content": "@context url as the ActivityStreams URL"
  }
}
pyfedi
{
  "id": 18,
  "user_id": 2,
  "community_id": 1,
  "title": "@context url as the ActivityStreams URL",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:25:52.941875Z",
  "ap_id": "http://pasture-one-actor/object/YTaL8VxPC6o",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "@context url as the ActivityStreams URL"
}
sharkey
{
  "id": "acg3tv40tn88000o",
  "uri": "http://pasture-one-actor/object/-mC6Pf8k1lY",
  "url": "http://pasture-one-actor/object/-mC6Pf8k1lY",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 19,
    "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-09-09T12:42:00.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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/Bu6tb9MTL-4",
  "published": "2025-09-09T12:42:01Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/ckpYdXpO4xY",
    "published": "2025-09-09T12:42:01Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "content": "@context url is list of ActivityStreams URL"
  }
}
pyfedi
{
  "id": 19,
  "user_id": 2,
  "community_id": 1,
  "title": "@context url is list of ActivityStreams URL",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:25:53.720782Z",
  "ap_id": "http://pasture-one-actor/object/8VjyEqLOxR8",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "@context url is list of ActivityStreams URL"
}
sharkey
{
  "id": "acg3tvvstn88000p",
  "uri": "http://pasture-one-actor/object/ckpYdXpO4xY",
  "url": "http://pasture-one-actor/object/ckpYdXpO4xY",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 20,
    "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-09-09T12:42:01.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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/7x5-tdhlcoc",
  "published": "2025-09-09T12:42:02Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/6q5JYo0THq4",
    "published": "2025-09-09T12:42:02Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        "Hashtag": "as:Hashtag"
      }
    ],
    "content": "@context url is list of ActivityStreams URL and Hashtag"
  }
}
pyfedi
{
  "id": 20,
  "user_id": 2,
  "community_id": 1,
  "title": "@context url is list of ActivityStreams URL and Hashtag",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:25:54.529763Z",
  "ap_id": "http://pasture-one-actor/object/HLznKUMbP6A",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "@context url is list of ActivityStreams URL and Hashtag"
}
sharkey
{
  "id": "acg3twnktn88000q",
  "uri": "http://pasture-one-actor/object/6q5JYo0THq4",
  "url": "http://pasture-one-actor/object/6q5JYo0THq4",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 21,
    "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-09-09T12:42:02.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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/H3IbzmPvBoM",
  "published": "2025-09-09T12:42:02Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/wksbnptbzLI",
    "published": "2025-09-09T12:42:02Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/fep/5711"
    ],
    "content": "@context with ActivityStreams URL + w3id-fep document"
  }
}
pyfedi
{
  "id": 21,
  "user_id": 2,
  "community_id": 1,
  "title": "@context with ActivityStreams URL + w3id-fep document",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:25:55.284996Z",
  "ap_id": "http://pasture-one-actor/object/YxTGQw3io44",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "@context with ActivityStreams URL + w3id-fep document"
}
sharkey
{
  "id": "acg3twnktn88000r",
  "uri": "http://pasture-one-actor/object/wksbnptbzLI",
  "url": "http://pasture-one-actor/object/wksbnptbzLI",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 22,
    "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-09-09T12:42:02.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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/LFFd0T2n914",
  "published": "2025-09-09T12:42:03Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/F5BbED-Ktow",
    "published": "2025-09-09T12:42:03Z",
    "@context": null,
    "content": "no @context"
  }
}
pyfedi
{
  "id": 22,
  "user_id": 2,
  "community_id": 1,
  "title": "[Microblog] no @context",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:25:56.047492Z",
  "ap_id": "http://pasture-one-actor/object/3BjMIWt6Liw",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "no @context"
}
sharkey
{
  "id": "acg3txfctn88000s",
  "uri": "http://pasture-one-actor/object/F5BbED-Ktow",
  "url": "http://pasture-one-actor/object/F5BbED-Ktow",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 23,
    "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-09-09T12:42:03.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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/nEBnjRJ9ur0",
  "published": "2025-09-09T12:42:04Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/0M_uHQMkTUI",
    "published": "2025-09-09T12:42:04Z",
    "@context": "http://strange.example/context",
    "content": "@context is a broken url"
  }
}
pyfedi
{
  "id": 23,
  "user_id": 2,
  "community_id": 1,
  "title": "@context is a broken url",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:25:56.833600Z",
  "ap_id": "http://pasture-one-actor/object/fU-zXj7tVfA",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "@context is a broken url"
}
sharkey
{
  "id": "acg3ty74tn88000t",
  "uri": "http://pasture-one-actor/object/0M_uHQMkTUI",
  "url": "http://pasture-one-actor/object/0M_uHQMkTUI",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 24,
    "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-09-09T12:42:04.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": []
}