https://bsky.social/xrpc
プロパティ | 型 | 詳細 |
---|---|---|
actor | string | ハンドルネームを入力する |
limit | int | min: 1, max: 100 default: 50 |
プロパティ | 型 | 詳細 |
---|---|---|
cursor | string | |
feeds | array |
def get_author_feed(self, access_jwt):
base_url = "https://bsky.social/xrpc"
endpoint = "app.bsky.feed.getAuthorFeed"
url = f"{base_url}/{endpoint}"
params = {"actor": identifier}
headers = {"Authorization": f"Bearer {access_jwt}"}
response = requests.get(url, params=params, headers=headers)
response_json = response.json()
print(response_json)
{
"feed": [
{
"post": {
"uri": "",
"cid": "",
"author": {
"did": "",
"handle": "amatyrain.bsky.social",
"displayName": "あまてぃ",
"avatar": "",
"viewer": {
"muted": False,
"blockedBy": False
},
"labels": []
},
"record": {
"text": "テスト",
"$type": "app.bsky.feed.post",
"langs": [
"ja"
],
"createdAt": "2023-11-18T10:42:49.198Z"
},
"replyCount": 0,
"repostCount": 0,
"likeCount": 1,
"indexedAt": "2023-11-18T10:42:49.198Z",
"viewer": {},
"labels": []
}
}
],
"cursor": ""
}