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://mastodon.social/users/amason/statuses/112763843296614344/activity",
"type": "Create",
"actor": "https://mastodon.social/users/amason",
"published": "2024-07-10T19:28:18Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://mastodon.social/users/amason/followers"
],
"object": {
"id": "https://mastodon.social/users/amason/statuses/112763843296614344",
"type": "Note",
"summary": null,
"inReplyTo": null,
"published": "2024-07-10T19:28:18Z",
"url": "https://mastodon.social/@amason/112763843296614344",
"attributedTo": "https://mastodon.social/users/amason",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://mastodon.social/users/amason/followers"
],
"sensitive": false,
"atomUri": "https://mastodon.social/users/amason/statuses/112763843296614344",
"inReplyToAtomUri": null,
"conversation": "tag:mastodon.social,2024-07-10:objectId=749144512:objectType=Conversation",
"content": "<p>Whilst messing around with local LLMs I needed a quick way to grab the content of a webpage and convert it into Markdown. There's some great browser plugins and services, but I thought it'd be a good opportunity to learn some Deno.</p><p>The result is a TypeScript edge function that scrapes a URL, extracts the main text and converts it into lovely Markdown.</p><p>Might be useful to others too.</p><p><a href=\"https://url-to-markdown.deno.dev/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">url-to-markdown.deno.dev/</span><span class=\"invisible\"></span></a></p><p><a href=\"https://mastodon.social/tags/typescript\" class=\"mention hashtag\" rel=\"tag\">#<span>typescript</span></a> <a href=\"https://mastodon.social/tags/deno\" class=\"mention hashtag\" rel=\"tag\">#<span>deno</span></a> <a href=\"https://mastodon.social/tags/markdown\" class=\"mention hashtag\" rel=\"tag\">#<span>markdown</span></a></p>",
"contentMap": {
"en": "<p>Whilst messing around with local LLMs I needed a quick way to grab the content of a webpage and convert it into Markdown. There's some great browser plugins and services, but I thought it'd be a good opportunity to learn some Deno.</p><p>The result is a TypeScript edge function that scrapes a URL, extracts the main text and converts it into lovely Markdown.</p><p>Might be useful to others too.</p><p><a href=\"https://url-to-markdown.deno.dev/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">url-to-markdown.deno.dev/</span><span class=\"invisible\"></span></a></p><p><a href=\"https://mastodon.social/tags/typescript\" class=\"mention hashtag\" rel=\"tag\">#<span>typescript</span></a> <a href=\"https://mastodon.social/tags/deno\" class=\"mention hashtag\" rel=\"tag\">#<span>deno</span></a> <a href=\"https://mastodon.social/tags/markdown\" class=\"mention hashtag\" rel=\"tag\">#<span>markdown</span></a></p>"
},
"attachment": [],
"tag": [
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/typescript",
"name": "#typescript"
},
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/deno",
"name": "#deno"
},
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/markdown",
"name": "#markdown"
}
],
"replies": {
"id": "https://mastodon.social/users/amason/statuses/112763843296614344/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://mastodon.social/users/amason/statuses/112763843296614344/replies?only_other_accounts=true&page=true",
"partOf": "https://mastodon.social/users/amason/statuses/112763843296614344/replies",
"items": []
}
},
"likes": {
"id": "https://mastodon.social/users/amason/statuses/112763843296614344/likes",
"type": "Collection",
"totalItems": 2
},
"shares": {
"id": "https://mastodon.social/users/amason/statuses/112763843296614344/shares",
"type": "Collection",
"totalItems": 1
}
}
}