import { ParagraphAPI } from "@paragraph-com/sdk"
const api = new ParagraphAPI()
const { items, pagination } = await api.feed.get({ limit: 20 }){
"items": [
{
"post": {
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"imageUrl": "<string>",
"publishedAt": "<string>",
"updatedAt": "<string>",
"subtitle": "<string>",
"staticHtml": "<string>",
"json": "<string>",
"markdown": "<string>",
"coinId": "<string>",
"categories": [
"<string>"
],
"authors": [
{
"id": "<string>",
"publicationId": "<string>",
"walletAddress": "<string>",
"avatarUrl": "<string>",
"name": "<string>",
"bio": "<string>",
"farcaster": {
"username": "<string>",
"displayName": "<string>",
"fid": 123
}
}
],
"authorIds": [
"<string>"
]
},
"publication": {
"id": "<string>",
"name": "<string>",
"ownerUserId": "<string>",
"slug": "<string>",
"customDomain": "<string>",
"summary": "<string>",
"logoUrl": "<string>"
},
"user": {
"id": "<string>",
"publicationId": "<string>",
"walletAddress": "<string>",
"avatarUrl": "<string>",
"name": "<string>",
"bio": "<string>",
"farcaster": {
"username": "<string>",
"displayName": "<string>",
"fid": 123
}
}
}
],
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123
}
}Retrieve a curated, paginated list of posts.
import { ParagraphAPI } from "@paragraph-com/sdk"
const api = new ParagraphAPI()
const { items, pagination } = await api.feed.get({ limit: 20 }){
"items": [
{
"post": {
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"imageUrl": "<string>",
"publishedAt": "<string>",
"updatedAt": "<string>",
"subtitle": "<string>",
"staticHtml": "<string>",
"json": "<string>",
"markdown": "<string>",
"coinId": "<string>",
"categories": [
"<string>"
],
"authors": [
{
"id": "<string>",
"publicationId": "<string>",
"walletAddress": "<string>",
"avatarUrl": "<string>",
"name": "<string>",
"bio": "<string>",
"farcaster": {
"username": "<string>",
"displayName": "<string>",
"fid": 123
}
}
],
"authorIds": [
"<string>"
]
},
"publication": {
"id": "<string>",
"name": "<string>",
"ownerUserId": "<string>",
"slug": "<string>",
"customDomain": "<string>",
"summary": "<string>",
"logoUrl": "<string>"
},
"user": {
"id": "<string>",
"publicationId": "<string>",
"walletAddress": "<string>",
"avatarUrl": "<string>",
"name": "<string>",
"bio": "<string>",
"farcaster": {
"username": "<string>",
"displayName": "<string>",
"fid": 123
}
}
}
],
"pagination": {
"hasMore": true,
"cursor": "<string>",
"total": 123
}
}Cursor for pagination
Maximum number of items to return (1-60, default: 20)
1 <= x <= 60Include full content fields (json, staticHtml, markdown) in the post. Default: false