Read the public or following feed
curl --request GET \
--url https://api.sharedgraph.com/api/feedconst options = {method: 'GET'};
fetch('https://api.sharedgraph.com/api/feed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sharedgraph.com/api/feed"
response = requests.get(url)
print(response.text){
"posts": [
{
"id": "<string>",
"authorActorId": "<string>",
"author": {
"actorId": "<string>",
"handle": "<string>",
"displayName": "<string>"
},
"text": "<string>",
"audience": "public",
"revision": 123,
"createdAt": 123,
"parentId": "<string>",
"rootId": "<string>",
"originApp": {
"id": "<string>",
"name": "<string>"
},
"edited": true,
"lastEditAppId": "<string>",
"lastEditAt": 123,
"likeCount": 1,
"parentUnavailable": true,
"rootUnavailable": true
}
],
"cursor": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}Social
Read the public or following feed
Read the public or following feed. Required scope with bearer authority: read. Both feeds return , ordered by creation time then post id descending, with default limit 50 and maximum 100. Candidates are sliced before eligibility and viewer block filtering, so short or empty pages can carry a cursor. Continue while cursor is non-null; past the end returns an empty posts array and null cursor. Deleting the boundary post does not invalidate continuation. Following candidates are active roots authored by followed actors or the viewer, restricted in storage before slicing. Tokens can continue either feed kind.
GET
/
api
/
feed
Read the public or following feed
curl --request GET \
--url https://api.sharedgraph.com/api/feedconst options = {method: 'GET'};
fetch('https://api.sharedgraph.com/api/feed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sharedgraph.com/api/feed"
response = requests.get(url)
print(response.text){
"posts": [
{
"id": "<string>",
"authorActorId": "<string>",
"author": {
"actorId": "<string>",
"handle": "<string>",
"displayName": "<string>"
},
"text": "<string>",
"audience": "public",
"revision": 123,
"createdAt": 123,
"parentId": "<string>",
"rootId": "<string>",
"originApp": {
"id": "<string>",
"name": "<string>"
},
"edited": true,
"lastEditAppId": "<string>",
"lastEditAt": 123,
"likeCount": 1,
"parentUnavailable": true,
"rootUnavailable": true
}
],
"cursor": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}