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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/activity/k1rU3qPfVuE",
  "published": "2025-08-30T17:35:15Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/object/8nc9sNNSh_s",
    "published": "2025-08-30T17:35:15Z",
    "@context": "https://www.w3.org/ns/activitystreams",
    "content": "@context url as the ActivityStreams URL"
  }
}
mitra
{
  "id": "0198fc0c-3c48-1665-de11-f431a377c0e0",
  "uri": "http://pasture-one-actor/object/8nc9sNNSh_s",
  "url": "http://pasture-one-actor/object/8nc9sNNSh_s",
  "created_at": "2025-08-30T17:35:15.000Z",
  "edited_at": null,
  "account": {
    "id": "0198fc0b-d02e-8afc-35ec-e315741d92c7",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-08-30T17:34:49.389Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 19,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "@context url as the ActivityStreams URL",
  "language": null,
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "quote": null,
  "mentions": [
    {
      "id": "0198fc0a-6f0d-ee21-7099-2614ad913244",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": true
  },
  "hidden": false,
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/activity/mnQlLRwHt4A",
  "published": "2025-08-30T17:35:17Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/object/UG6u64eQbdI",
    "published": "2025-08-30T17:35:17Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams"
    ],
    "content": "@context url is list of ActivityStreams URL"
  }
}
mitra
{
  "id": "0198fc0c-4224-fa75-f8e5-1768cee24d1e",
  "uri": "http://pasture-one-actor/object/UG6u64eQbdI",
  "url": "http://pasture-one-actor/object/UG6u64eQbdI",
  "created_at": "2025-08-30T17:35:17.000Z",
  "edited_at": null,
  "account": {
    "id": "0198fc0b-d02e-8afc-35ec-e315741d92c7",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-08-30T17:34:49.389Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 20,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "@context url is list of ActivityStreams URL",
  "language": null,
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "quote": null,
  "mentions": [
    {
      "id": "0198fc0a-6f0d-ee21-7099-2614ad913244",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": true
  },
  "hidden": false,
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/activity/AjaVzUAsg-k",
  "published": "2025-08-30T17:35:18Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/object/uved7TgBGpU",
    "published": "2025-08-30T17:35:18Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      {
        "Hashtag": "as:Hashtag"
      }
    ],
    "content": "@context url is list of ActivityStreams URL and Hashtag"
  }
}
mitra
{
  "id": "0198fc0c-47fe-14fa-56e2-7fa7a7be5b8b",
  "uri": "http://pasture-one-actor/object/uved7TgBGpU",
  "url": "http://pasture-one-actor/object/uved7TgBGpU",
  "created_at": "2025-08-30T17:35:18.000Z",
  "edited_at": null,
  "account": {
    "id": "0198fc0b-d02e-8afc-35ec-e315741d92c7",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-08-30T17:34:49.389Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 21,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "@context url is list of ActivityStreams URL and Hashtag",
  "language": null,
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "quote": null,
  "mentions": [
    {
      "id": "0198fc0a-6f0d-ee21-7099-2614ad913244",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": true
  },
  "hidden": false,
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/activity/bV5FVtuse_s",
  "published": "2025-08-30T17:35:20Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/object/QDSjO5C4Tgo",
    "published": "2025-08-30T17:35:20Z",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/fep/5711"
    ],
    "content": "@context with ActivityStreams URL + w3id-fep document"
  }
}
mitra
{
  "id": "0198fc0c-4ddc-46a7-9d4e-f3a51fab3637",
  "uri": "http://pasture-one-actor/object/QDSjO5C4Tgo",
  "url": "http://pasture-one-actor/object/QDSjO5C4Tgo",
  "created_at": "2025-08-30T17:35:20.000Z",
  "edited_at": null,
  "account": {
    "id": "0198fc0b-d02e-8afc-35ec-e315741d92c7",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-08-30T17:34:49.389Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 22,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "@context with ActivityStreams URL + w3id-fep document",
  "language": null,
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "quote": null,
  "mentions": [
    {
      "id": "0198fc0a-6f0d-ee21-7099-2614ad913244",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": true
  },
  "hidden": false,
  "ipfs_cid": null,
  "links": []
}

Example 5

activity
{
  "@context": null,
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/activity/_UZxSSNpfQU",
  "published": "2025-08-30T17:35:21Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/object/jPWskOZANmU",
    "published": "2025-08-30T17:35:21Z",
    "@context": null,
    "content": "no @context"
  }
}
mitra
{
  "id": "0198fc0c-53b7-a3b1-aa3c-d4fe8631e344",
  "uri": "http://pasture-one-actor/object/jPWskOZANmU",
  "url": "http://pasture-one-actor/object/jPWskOZANmU",
  "created_at": "2025-08-30T17:35:21.000Z",
  "edited_at": null,
  "account": {
    "id": "0198fc0b-d02e-8afc-35ec-e315741d92c7",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-08-30T17:34:49.389Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 23,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "no @context",
  "language": null,
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "quote": null,
  "mentions": [
    {
      "id": "0198fc0a-6f0d-ee21-7099-2614ad913244",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": true
  },
  "hidden": false,
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/activity/DKun_u756N0",
  "published": "2025-08-30T17:35:23Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/object/6RTA6rk-d8k",
    "published": "2025-08-30T17:35:23Z",
    "@context": "http://strange.example/context",
    "content": "@context is a broken url"
  }
}
mitra
{
  "id": "0198fc0c-5994-cd3e-ff8f-4a6fae02581a",
  "uri": "http://pasture-one-actor/object/6RTA6rk-d8k",
  "url": "http://pasture-one-actor/object/6RTA6rk-d8k",
  "created_at": "2025-08-30T17:35:23.000Z",
  "edited_at": null,
  "account": {
    "id": "0198fc0b-d02e-8afc-35ec-e315741d92c7",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-08-30T17:34:49.389Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 24,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "@context is a broken url",
  "language": null,
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "quote": null,
  "mentions": [
    {
      "id": "0198fc0a-6f0d-ee21-7099-2614ad913244",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": true
  },
  "hidden": false,
  "ipfs_cid": null,
  "links": []
}