Discover
GET/api/v1.1/discover/posts/trending
Get trending posts
Pixelfed only User token
Query parameters
rangestringReturns
curl "https://pixelfed.social/api/v1.1/discover/posts/trending?range=daily" \
-H "Accept: application/json" \
-H "Authorization: Bearer $TOKEN"Response
[{
"id": "728341901556629504",
"shortcode": "kG7vQ2pX",
"url": "https://pixelfed.social/p/dansup/728341901556629504",
"content": "Golden hour at the pier",
"content_text": "Golden hour at the pier",
"created_at": "2026-09-14T17:42:10.000Z",
"favourites_count": 212,
"reblogs_count": 18,
"reply_count": 9,
"sensitive": false,
"visibility": "public",
"pf_type": "photo",
"local": true,
"media_attachments": [{
"id": "728341067224219648",
"type": "image",
"url": "https://pixelfed.social/storage/m/_v2/2/pier.jpg",
"preview_url": "https://pixelfed.social/storage/m/_v2/2/pier_thumb.jpg",
"description": "Wooden pier at sunset, two people fishing at the far end"
}],
"account": {
"id": "2",
"username": "dansup",
"acct": "dansup",
"display_name": "dansup",
"avatar": "https://pixelfed.social/storage/avatars/2/avatar.jpg"
}
}]GET/api/v1.1/discover/posts/network/trending
Get network trending posts
Pixelfed only User token
Returns
curl "https://pixelfed.social/api/v1.1/discover/posts/network/trending" \
-H "Accept: application/json" \
-H "Authorization: Bearer $TOKEN"Response
[{
"id": "731012004466233344",
"url": "https://photog.example/p/ines/731012004466233344",
"content": "First snow on the ridge",
"created_at": "2026-10-16T19:03:51.000Z",
"favourites_count": 1208,
"sensitive": false,
"visibility": "public",
"pf_type": "photo",
"local": false,
"media_attachments": [{
"id": "731012009113522176",
"type": "image",
"url": "https://photog.example/storage/m/_v2/ridge.jpg"
}],
"account": {
"id": "509981120334872576",
"username": "ines",
"acct": "ines@photog.example",
"display_name": "Ines"
}
}]GET/api/v1/discover/posts
Get suggested posts
Pixelfed only User token Scope read
Query parameters
limitintegerReturns
curl "https://pixelfed.social/api/v1/discover/posts" \
-H "Accept: application/json" \
-H "Authorization: Bearer $TOKEN"Response
{
"posts": [{
"id": "728341901556629504",
"created_at": "2026-09-14T17:42:10.000Z",
"url": "https://pixelfed.social/p/dansup/728341901556629504",
"content": "Golden hour at the pier",
"visibility": "public",
"sensitive": false,
"favourites_count": 212,
"media_attachments": [{
"id": "728341067224219648",
"type": "image",
"url": "https://pixelfed.social/storage/m/_v2/2/pier.jpg"
}],
"account": {
"id": "2",
"username": "dansup",
"acct": "dansup"
}
}]
}GET/api/v1.2/discover/accounts/popular
Get popular accounts
Pixelfed only User token Scope read
Query parameters
limitintegercursorstringReturns
curl "https://pixelfed.social/api/v1.2/discover/accounts/popular?limit=2" \
-H "Accept: application/json" \
-H "Authorization: Bearer $TOKEN"Response
[{
"id": "412760184563377",
"username": "jonas",
"acct": "jonas",
"display_name": "Jonas Berg",
"locked": false,
"followers_count": 9310,
"following_count": 204,
"statuses_count": 96,
"note_text": "Ferries, fog and 35mm.",
"url": "https://pixelfed.social/jonas",
"avatar": "https://pixelfed.social/storage/avatars/412760184563377/avatar.jpg",
"local": true
}, {
"id": "498812004377211904",
"username": "tove",
"acct": "tove@photog.example",
"display_name": "Tove",
"locked": false,
"followers_count": 8122,
"url": "https://photog.example/tove",
"avatar": "https://photog.example/storage/avatars/tove.jpg",
"local": false
}]GET/api/v1.1/discover/accounts/popular
Get popular accounts (v1.1)
Pixelfed only User token Scope read
Returns
curl "https://pixelfed.social/api/v1.1/discover/accounts/popular" \
-H "Accept: application/json" \
-H "Authorization: Bearer $TOKEN"Response
[{
"id": "412760184563377",
"username": "jonas",
"acct": "jonas",
"display_name": "Jonas Berg",
"followers_count": 9310,
"url": "https://pixelfed.social/jonas",
"avatar": "https://pixelfed.social/storage/avatars/412760184563377/avatar.jpg",
"local": true
}]GET/api/landing/v1/directory
Get the profile directory
Pixelfed only No token
Query parameters
cursorstringReturns
curl "https://pixelfed.social/api/landing/v1/directory" \
-H "Accept: application/json"Response
{
"data": [{
"id": 2,
"name": "dansup",
"username": "dansup",
"url": "https://pixelfed.social/dansup",
"avatar": "https://pixelfed.social/storage/avatars/2/avatar.jpg",
"following_count": 187,
"followers_count": 1294,
"statuses_count": 342,
"bio": "Harbour walks before work. Tallinn."
}],
"links": {
"first": null,
"last": null,
"prev": null,
"next": "https://pixelfed.social/api/landing/v1/directory?cursor=eyJwcm9maWxlcy51cGRhdGVkX2F0IjoiMjAyNi0xMC0xNSJ9"
},
"meta": {
"path": "https://pixelfed.social/api/landing/v1/directory",
"per_page": 20,
"next_cursor": "eyJwcm9maWxlcy51cGRhdGVkX2F0IjoiMjAyNi0xMC0xNSJ9",
"prev_cursor": null
}
}GET/api/v1.1/directory/listing
Get the server directory listing
Pixelfed only No token
Query parameters
skstringrequiredReturns
curl "https://pixelfed.social/api/v1.1/directory/listing?sk=3f9a1c7e5b2d48a6" \
-H "Accept: application/json"Response
{
"_domain": "pixelfed.social",
"_hash": "9b1f6c2e0d7a4e58b3c1f2a9d8e7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9",
"_sk": "3f9a1c7e5b2d48a6",
"_ts": 1792118400,
"activitypub_enabled": true,
"admin": {
"id": "2",
"username": "dansup",
"display_name": "dansup"
},
"contact_email": "admin@pixelfed.social",
"curated_onboarding": false,
"feature_config": {
"media_types": ["image/jpeg", "image/png", "video/mp4"],
"max_photo_size": 15000,
"max_caption_length": 500,
"max_album_length": 10,
"account_deletion": true
},
"features_enabled": {
"stories": true
},
"is_eligible": true,
"oauth_enabled": true,
"open_registration": true,
"primary_locale": "en",
"stats": {
"user_count": 41822,
"post_count": 2298114
},
"summary": "Photo sharing for everyone.",
"version": "0.12.6"
}