Read an actor's root posts
curl --request GET \
--url https://api.sharedgraph.com/api/actors/{actorId}/postsconst options = {method: 'GET'};
fetch('https://api.sharedgraph.com/api/actors/{actorId}/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sharedgraph.com/api/actors/{actorId}/posts"
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,
"parentUnavailable": true,
"rootUnavailable": true
}
]
}{
"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 an actor's root posts
Read an actor’s eligible root posts, newest first, under the public feed’s eligibility rules and 200-post cap. A deleted or suspended actor returns 404 with a tombstone. Required scope with bearer authority: read.
GET
/
api
/
actors
/
{actorId}
/
posts
Read an actor's root posts
curl --request GET \
--url https://api.sharedgraph.com/api/actors/{actorId}/postsconst options = {method: 'GET'};
fetch('https://api.sharedgraph.com/api/actors/{actorId}/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sharedgraph.com/api/actors/{actorId}/posts"
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,
"parentUnavailable": true,
"rootUnavailable": true
}
]
}{
"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>"
}