Skip to main content

Common Properties

Properties that appear across multiple ActivityStreams types.

Identity

PropertyTypeDescription
@contextString/ArrayJSON-LD context
idURLGlobally unique identifier
typeString/ArrayObject type(s)
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://example.com/notes/123",
"type": "Note"
}

Naming

PropertyTypeDescription
nameStringDisplay name
nameMapObjectLocalized names
summaryStringShort description (HTML)
summaryMapObjectLocalized summaries
{
"name": "My Post",
"nameMap": {
"en": "My Post",
"es": "Mi Publicación"
},
"summary": "<p>A brief description</p>"
}

Content

PropertyTypeDescription
contentStringMain content (HTML)
contentMapObjectLocalized content
mediaTypeStringMIME type of content
sourceObjectOriginal source format
{
"content": "<p>Hello <strong>world</strong>!</p>",
"mediaType": "text/html",
"source": {
"content": "Hello **world**!",
"mediaType": "text/markdown"
}
}

Timestamps

PropertyTypeDescription
publishedDateTimeCreation time
updatedDateTimeLast modification
startTimeDateTimeEvent start
endTimeDateTimeEvent end
durationDurationTime span
{
"published": "2024-01-15T10:00:00Z",
"updated": "2024-01-15T12:30:00Z"
}

Attribution

PropertyTypeDescription
attributedToActor/URLCreator/author
generatorObjectCreating application
audienceActor/URLIntended audience
{
"attributedTo": "https://example.com/users/alice",
"generator": {
"type": "Application",
"name": "My App"
}
}

Addressing

PropertyTypeDescription
toArrayPrimary recipients
ccArraySecondary recipients
btoArrayPrivate primary
bccArrayPrivate secondary
{
"to": ["https://www.w3.org/ns/activitystreams#Public"],
"cc": ["https://example.com/users/alice/followers"]
}

Special Addresses

AddressMeaning
https://www.w3.org/ns/activitystreams#PublicPublic post
{actor}/followersAll followers

Media Attachments

PropertyTypeDescription
attachmentArrayAttached media
iconImageThumbnail/avatar
imageImageRepresentative image
previewLink/ObjectPreview version
{
"attachment": [
{
"type": "Image",
"mediaType": "image/png",
"url": "https://example.com/image.png",
"name": "Description for accessibility"
}
]
}
PropertyTypeDescription
urlURL/LinkWeb page
hrefURLLink target
relStringLink relation
tagArrayHashtags/mentions
inReplyToURLReply target
{
"tag": [
{
"type": "Hashtag",
"name": "#fediverse",
"href": "https://example.com/tags/fediverse"
},
{
"type": "Mention",
"name": "@bob@other.example",
"href": "https://other.example/users/bob"
}
]
}

Location

PropertyTypeDescription
locationPlaceGeographic location
latitudeFloatLatitude
longitudeFloatLongitude
altitudeFloatAltitude
radiusFloatAccuracy radius
{
"location": {
"type": "Place",
"name": "San Francisco",
"latitude": 37.7749,
"longitude": -122.4194
}
}

See Also