Skip to content

Discover

GET/api/v1/discover/posts

Get suggested posts

Pixelfed only User token Scope read

Query parameters

limitinteger

Returns

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/landing/v1/directory

Get the profile directory

Pixelfed only No token

Query parameters

cursorstring

Returns

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

skstringrequired

Returns

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"
}
Pixelfed is free and open source software. Edit this page Report a docs issue