A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"ostatus": "http://ostatus.org#",
"atomUri": "ostatus:atomUri",
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
"conversation": "ostatus:conversation",
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
"votersCount": "toot:votersCount",
"Hashtag": "as:Hashtag"
}
],
"id": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502",
"type": "Note",
"summary": null,
"inReplyTo": null,
"published": "2023-01-06T04:10:38Z",
"url": "https://fosstodon.org/@jonocarroll/109640301838924502",
"attributedTo": "https://fosstodon.org/users/jonocarroll",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://fosstodon.org/users/jonocarroll/followers"
],
"sensitive": false,
"atomUri": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502",
"inReplyToAtomUri": null,
"conversation": "tag:fosstodon.org,2023-01-06:objectId=76908998:objectType=Conversation",
"content": "<p><a href=\"https://fosstodon.org/tags/rstats\" class=\"mention hashtag\" rel=\"tag\">#<span>rstats</span></a> hivemind: is there a good reason to use one of these vs the other when wrapping an API?</p><p>A: <br />get_this(x, ...) # GET<br />get_that(x, ...) # GET<br />set_this(x, y, ...) # SET<br />set_that(x, y, ...) # SET</p><p>with something like this within each of these</p><p>greedy_con <- .connect(Sys.getenv(implicit_api_vars), ...)</p><p>OR</p><p>B:<br />lazy_con <- .connect(explicit_api_vars, ...)</p><p>this(lazy_con, x, ...) # GET<br />that(lazy_con, x, ...) # GET<br />this(lazy_con, x) <- y # SET<br />that(lazy_con, x) <- y # SET</p><p>(Or some third option)?</p>",
"contentMap": {
"en": "<p><a href=\"https://fosstodon.org/tags/rstats\" class=\"mention hashtag\" rel=\"tag\">#<span>rstats</span></a> hivemind: is there a good reason to use one of these vs the other when wrapping an API?</p><p>A: <br />get_this(x, ...) # GET<br />get_that(x, ...) # GET<br />set_this(x, y, ...) # SET<br />set_that(x, y, ...) # SET</p><p>with something like this within each of these</p><p>greedy_con <- .connect(Sys.getenv(implicit_api_vars), ...)</p><p>OR</p><p>B:<br />lazy_con <- .connect(explicit_api_vars, ...)</p><p>this(lazy_con, x, ...) # GET<br />that(lazy_con, x, ...) # GET<br />this(lazy_con, x) <- y # SET<br />that(lazy_con, x) <- y # SET</p><p>(Or some third option)?</p>"
},
"attachment": [],
"tag": [
{
"type": "Hashtag",
"href": "https://fosstodon.org/tags/rstats",
"name": "#rstats"
}
],
"replies": {
"id": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502/replies?only_other_accounts=true&page=true",
"partOf": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502/replies",
"items": []
}
},
"likes": {
"id": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502/likes",
"type": "Collection",
"totalItems": 1
},
"shares": {
"id": "https://fosstodon.org/users/jonocarroll/statuses/109640301838924502/shares",
"type": "Collection",
"totalItems": 1
}
}