Skip to content

Url Parameter

Here we analyze varying url parameters. The usage examples are inspired by Peertube’s usage, see their documentation.

The support table just compares the number of links at the momment. ❌ means failed to parse. ✅ means all links present.

Support Table Preview

Number of links Object Activity
string Object Activity
List with 1 elements Object 🚨 Activity
List with 2 elements Object 🚨 Activity
List with 2 elements Object 🚨 Activity
dict Object 🚨 Activity
dict Object 🚨 Activity
List with 2 elements Object 🚨 Activity
List with 2 elements Object 🚨 Activity
List with 2 elements Object Activity
List with 2 elements Object Activity
List with 2 elements Object Activity
dict Object 🚨 Activity
string Object Activity

Objects

Object 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/Y8oFEUfMO_g",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": "http://remote.example/objects/123"
}

Object 2

❌❌❌ does not obey schema ❌❌❌

'http://remote.example/objects/123' is not of type 'object'

Failed validating 'type' in schema[0]['items']:
    {'additionalProperties': True, 'type': 'object'}

On instance[0]:
    'http://remote.example/objects/123'
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/eaIf4a4PVto",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    "http://remote.example/objects/123"
  ]
}

Object 3

❌❌❌ does not obey schema ❌❌❌

'http://remote.example/objects/123' is not of type 'object'

Failed validating 'type' in schema[0]['items']:
    {'additionalProperties': True, 'type': 'object'}

On instance[0]:
    'http://remote.example/objects/123'
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/rtmELNDnqyA",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    "http://remote.example/objects/123",
    "http://other.example/objects/123"
  ]
}

Object 4

❌❌❌ does not obey schema ❌❌❌

'http://other.example/objects/123' is not of type 'object'

Failed validating 'type' in schema[0]['items']:
    {'additionalProperties': True, 'type': 'object'}

On instance[0]:
    'http://other.example/objects/123'
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/9L9xdmpIhuc",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    "http://other.example/objects/123",
    "http://remote.example/objects/123"
  ]
}

Object 5

❌❌❌ does not obey schema ❌❌❌

{'type': 'Link', 'mediaType': 'text/html', 'href': 'http://html.example/objects/123'} is not valid under any of the given schemas

Failed validating 'oneOf' in schema['properties']['url']:
    {'oneOf': [{'default': [],
                'description': 'A list of urls that expand on the content '
                               'of the object',
                'items': {'additionalProperties': True, 'type': 'object'},
                'type': 'array'},
               {'type': 'string'}]}

On instance['url']:
    {'type': 'Link',
     'mediaType': 'text/html',
     'href': 'http://html.example/objects/123'}
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/BkYYcF-BH9w",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": {
    "href": "http://html.example/objects/123",
    "mediaType": "text/html",
    "type": "Link"
  }
}

Object 6

❌❌❌ does not obey schema ❌❌❌

{'type': 'Link', 'mediaType': 'video/mp4', 'href': 'http://video.example/objects/123'} is not valid under any of the given schemas

Failed validating 'oneOf' in schema['properties']['url']:
    {'oneOf': [{'default': [],
                'description': 'A list of urls that expand on the content '
                               'of the object',
                'items': {'additionalProperties': True, 'type': 'object'},
                'type': 'array'},
               {'type': 'string'}]}

On instance['url']:
    {'type': 'Link',
     'mediaType': 'video/mp4',
     'href': 'http://video.example/objects/123'}
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/TGwAmu6VFtk",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": {
    "href": "http://video.example/objects/123",
    "mediaType": "video/mp4",
    "type": "Link"
  }
}

Object 7

❌❌❌ does not obey schema ❌❌❌

'http://remote.example/objects/123' is not of type 'object'

Failed validating 'type' in schema[0]['items']:
    {'additionalProperties': True, 'type': 'object'}

On instance[0]:
    'http://remote.example/objects/123'
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/3kPiton8Wtk",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    "http://remote.example/objects/123",
    {
      "href": "http://html.example/objects/123",
      "mediaType": "text/html",
      "type": "Link"
    }
  ]
}

Object 8

❌❌❌ does not obey schema ❌❌❌

'http://remote.example/objects/123' is not of type 'object'

Failed validating 'type' in schema[0]['items']:
    {'additionalProperties': True, 'type': 'object'}

On instance[1]:
    'http://remote.example/objects/123'
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/IE9mjvRczwM",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    {
      "href": "http://html.example/objects/123",
      "mediaType": "text/html",
      "type": "Link"
    },
    "http://remote.example/objects/123"
  ]
}

Object 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/qZau_FFYLJs",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    {
      "href": "http://html.example/objects/123",
      "mediaType": "text/html",
      "type": "Link"
    },
    {
      "href": "http://video.example/objects/123",
      "mediaType": "video/mp4",
      "type": "Link"
    }
  ]
}

Object 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/r2L1HDHOSVc",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    {
      "href": "http://video.example/objects/123",
      "mediaType": "video/mp4",
      "type": "Link"
    },
    {
      "href": "http://html.example/objects/123",
      "mediaType": "text/html",
      "type": "Link"
    }
  ]
}

Object 11

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/nDdz2zXOlWY",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": [
    {
      "href": "http://video.example/objects/123",
      "mediaType": "video/mp4",
      "type": "Link"
    },
    {
      "href": "http://html.example/objects/123",
      "mediaType": "text/html",
      "rel": "canonical",
      "type": "Link"
    }
  ]
}

Object 12

❌❌❌ does not obey schema ❌❌❌

{'href': 'https://notype.example/'} is not valid under any of the given schemas

Failed validating 'oneOf' in schema['properties']['url']:
    {'oneOf': [{'default': [],
                'description': 'A list of urls that expand on the content '
                               'of the object',
                'items': {'additionalProperties': True, 'type': 'object'},
                'type': 'array'},
               {'type': 'string'}]}

On instance['url']:
    {'href': 'https://notype.example/'}
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/object/2ghQgd6DyQE",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": {
    "href": "https://notype.example/"
  }
}

Object 13

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "See https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/66",
  "id": "http://actor.example/object/OsMCxxcUOOU",
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note",
  "url": "http://pasture-one-actor/objects/123"
}

Activities

Activity 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/DJSE1ZqbGdQ",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/AsRa5nyTCHw",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": "http://remote.example/objects/123"
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/nDiQwbEkDxc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/azQvZaDYlaI",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      "http://remote.example/objects/123"
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/Ig1jfGgsL-M",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/F6-UmvmtRe4",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      "http://remote.example/objects/123",
      "http://other.example/objects/123"
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/wsjXpgTpPiI",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/DD6ZMbvDjYs",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      "http://other.example/objects/123",
      "http://remote.example/objects/123"
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/MMfvkIbf2G8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/AmKvkwrt3tY",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": {
      "href": "http://html.example/objects/123",
      "mediaType": "text/html",
      "type": "Link"
    }
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/bT8kRveAIHI",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/BMVZhMjOx3Y",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": {
      "href": "http://video.example/objects/123",
      "mediaType": "video/mp4",
      "type": "Link"
    }
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/gopxhSqAe8U",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/U8j6PPIWnh8",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      "http://remote.example/objects/123",
      {
        "href": "http://html.example/objects/123",
        "mediaType": "text/html",
        "type": "Link"
      }
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/JHiWY8QNDt8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/0kdOksye_r8",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      {
        "href": "http://html.example/objects/123",
        "mediaType": "text/html",
        "type": "Link"
      },
      "http://remote.example/objects/123"
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/3bWCziax-GM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/DustchVzx_E",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      {
        "href": "http://html.example/objects/123",
        "mediaType": "text/html",
        "type": "Link"
      },
      {
        "href": "http://video.example/objects/123",
        "mediaType": "video/mp4",
        "type": "Link"
      }
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/arxw5Cm5RF8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/iKrJLlFm2Jo",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      {
        "href": "http://video.example/objects/123",
        "mediaType": "video/mp4",
        "type": "Link"
      },
      {
        "href": "http://html.example/objects/123",
        "mediaType": "text/html",
        "type": "Link"
      }
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 11

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/UGz2EXAzISA",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/gdxmplghDcQ",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": [
      {
        "href": "http://video.example/objects/123",
        "mediaType": "video/mp4",
        "type": "Link"
      },
      {
        "href": "http://html.example/objects/123",
        "mediaType": "text/html",
        "rel": "canonical",
        "type": "Link"
      }
    ]
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 12

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/Nk_b9nnpjbM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/object/zYiNC2q6GRM",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": {
      "href": "https://notype.example/"
    }
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 13

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/yrzz56nvq7o",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "See https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/66",
    "id": "http://actor.example/object/jWQ53Ne8aKA",
    "published": "2025-11-21T12:04:53Z",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note",
    "url": "http://pasture-one-actor/objects/123"
  },
  "published": "2025-11-21T12:04:53Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}