ActivityPub Viewer

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.

Open in browser →
{ "@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" } ], "id": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244", "type": "Note", "summary": null, "inReplyTo": null, "published": "2024-11-14T10:30:27Z", "url": "https://mathstodon.xyz/@christianp/113480841790670244", "attributedTo": "https://mathstodon.xyz/users/christianp", "to": [ "https://www.w3.org/ns/activitystreams#Public" ], "cc": [ "https://mathstodon.xyz/users/christianp/followers" ], "sensitive": false, "atomUri": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244", "inReplyToAtomUri": null, "conversation": "tag:mathstodon.xyz,2024-11-14:objectId=123703572:objectType=Conversation", "content": "<p>Here&#39;s a programming syntax thing that I&#39;ve just thought I&#39;d like, but I don&#39;t think I&#39;ve seen: a conditional pipe operator.</p><p>Some languages have a conditional property accessor, e.g. `object?.property`, which will return null if the object is null, and otherwise access the property.</p><p>I&#39;d like to apply a function to something that might be null, so I&#39;d like a conditional pipe `x ?|&gt; f`.</p><p>I&#39;m writing Python, so the best I can do is to define a function like `maybe_apply(fn, *args, **kwargs)`, but I&#39;d really like to do something like `f?(*args, **kwargs)`</p>", "contentMap": { "en": "<p>Here&#39;s a programming syntax thing that I&#39;ve just thought I&#39;d like, but I don&#39;t think I&#39;ve seen: a conditional pipe operator.</p><p>Some languages have a conditional property accessor, e.g. `object?.property`, which will return null if the object is null, and otherwise access the property.</p><p>I&#39;d like to apply a function to something that might be null, so I&#39;d like a conditional pipe `x ?|&gt; f`.</p><p>I&#39;m writing Python, so the best I can do is to define a function like `maybe_apply(fn, *args, **kwargs)`, but I&#39;d really like to do something like `f?(*args, **kwargs)`</p>" }, "attachment": [], "tag": [], "replies": { "id": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244/replies", "type": "Collection", "first": { "type": "CollectionPage", "next": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244/replies?only_other_accounts=true&page=true", "partOf": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244/replies", "items": [] } }, "likes": { "id": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244/likes", "type": "Collection", "totalItems": 4 }, "shares": { "id": "https://mathstodon.xyz/users/christianp/statuses/113480841790670244/shares", "type": "Collection", "totalItems": 2 } }