curl -X GET "https://api.example.com/api/feed/johndoe?limit=20" \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
{
"Posts": [
{
"PostID": 12345,
"InitiatorID": 67890,
"Caption": "Beautiful sunset today!",
"CreatedAt": "2026-03-04T15:30:00Z",
"LikeCount": 42,
"PostMediasLinks": [
"https://media.example.com/image1.jpg"
],
"Comments": [],
"PostLikes": []
},
{
"PostID": 12344,
"InitiatorID": 11111,
"Caption": "Great day at the beach",
"CreatedAt": "2026-03-04T14:20:00Z",
"LikeCount": 38,
"PostMediasLinks": [
"https://media.example.com/image2.jpg",
"https://media.example.com/image3.jpg"
],
"Comments": [],
"PostLikes": []
}
],
"Cursor": "eyJkYXRlVGltZSI6IjIwMjYtMDMtMDRUMTQ6MjA6MDBaIiwibGFzdElkIjoxMjM0NH0",
"HasMore": true
}
curl -X GET "https://api.example.com/api/feed/johndoe?limit=20" \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
{
"Posts": [
{
"PostID": 12345,
"InitiatorID": 67890,
"Caption": "Beautiful sunset today!",
"CreatedAt": "2026-03-04T15:30:00Z",
"LikeCount": 42,
"PostMediasLinks": [
"https://media.example.com/image1.jpg"
],
"Comments": [],
"PostLikes": []
},
{
"PostID": 12344,
"InitiatorID": 11111,
"Caption": "Great day at the beach",
"CreatedAt": "2026-03-04T14:20:00Z",
"LikeCount": 38,
"PostMediasLinks": [
"https://media.example.com/image2.jpg",
"https://media.example.com/image3.jpg"
],
"Comments": [],
"PostLikes": []
}
],
"Cursor": "eyJkYXRlVGltZSI6IjIwMjYtMDMtMDRUMTQ6MjA6MDBaIiwibGFzdElkIjoxMjM0NH0",
"HasMore": true
}
Retrieve paginated activity feed with cursor-based pagination. Returns posts from accounts that the specified user follows, ordered by creation time.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/0xfelaback/Social-Media-Activity-Feed/llms.txt
Use this file to discover all available pages before exploring further.
dateTime: ISO 8601 timestamp of the last postlastId: PostID of the last postlimit + 1 posts internally to determine if more pages exist.public sealed record Cursor(DateTime dateTime, long lastId)
{
public static string Encode(DateTime dateTime, long lastId)
{
var cursor = new Cursor(dateTime, lastId);
string json = JsonSerializer.Serialize(cursor);
return Base64UrlTextEncoder.Encode(Encoding.UTF8.GetBytes(json));
}
public static Cursor? Decode(string? cursor)
{
if (string.IsNullOrWhiteSpace(cursor))
{
return null;
}
try
{
string json = Encoding.UTF8.GetString(Base64UrlTextEncoder.Decode(cursor));
return JsonSerializer.Deserialize<Cursor>(json);
}
catch
{
return null;
}
}
}
CreatedAt timestamp of the last post on the current pagePostID of the last post on the current pageShow Post Object
null if there are no more pages.query.Where(x => x.CreatedAt < cursorTime || x.CreatedAt == cursorTime && x.PostID <= cursorId)
.OrderByDescending(p => p.CreatedAt)
.ThenByDescending(p => p.PostID)
curl -X GET "https://api.example.com/api/feed/johndoe?limit=20" \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
{
"Posts": [
{
"PostID": 12345,
"InitiatorID": 67890,
"Caption": "Beautiful sunset today!",
"CreatedAt": "2026-03-04T15:30:00Z",
"LikeCount": 42,
"PostMediasLinks": [
"https://media.example.com/image1.jpg"
],
"Comments": [],
"PostLikes": []
},
{
"PostID": 12344,
"InitiatorID": 11111,
"Caption": "Great day at the beach",
"CreatedAt": "2026-03-04T14:20:00Z",
"LikeCount": 38,
"PostMediasLinks": [
"https://media.example.com/image2.jpg",
"https://media.example.com/image3.jpg"
],
"Comments": [],
"PostLikes": []
}
],
"Cursor": "eyJkYXRlVGltZSI6IjIwMjYtMDMtMDRUMTQ6MjA6MDBaIiwibGFzdElkIjoxMjM0NH0",
"HasMore": true
}