Skip to content

Facebook API

4 endpointsSocial & VideoGlobalsocial:read4 real examples

Returns public Facebook Pages with their follower counts, a Page's timeline posts, a post by its permalink and the comments of a post.

View as Markdown
GET/facebook/pageOne Facebook Page: name, id, URL, avatar, category, bio, follower count and whether it is verified.
GET/facebook/pagePostsPosts on the timeline of one Facebook Page, newest first: text, author, time, reaction, comment and share counts, and photos or videos. The first page holds the posts in the page's HTML; each next page holds the next three.
GET/facebook/postOne public Facebook post by its permalink: text, author, time, reaction, comment and share counts, and photos or videos.
GET/facebook/postCommentsComments on one public Facebook post, ten per call, in the order Facebook shows them, with the author, text, like count and reply count of each.

page

GET/v1/facebook/page

One Facebook Page: name, id, URL, avatar, category, bio, follower count and whether it is verified.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Page username or URL (https://www.facebook.com/<username>).
e.g. NASA
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
avatarUrlstring
biostring
categorystring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
idstring
namestring
postCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/facebook/page?id=NASA" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "avatarUrl": "https://scontent-iad6-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=dst-png&cstp=mx800x800&ctp=s100x1…",
    "bio": "Explore the universe and discover our home planet. \nThere's space for everybody. ✨",
    "category": "Government organization",
    "createdAt": "",
    "followerCount": 28720827,
    "followingCount": 0,
    "id": "100044561550831",
    "name": "NASA - National Aeronautics and Space Administration",
    "postCount": 0,
    "url": "https://www.facebook.com/NASA",
    "username": "NASA",
    "verified": true
  },
  "meta": {
    "cached": false,
    "endpoint": "page",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "facebook",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

pagePosts

GET/v1/facebook/pagePosts

Posts on the timeline of one Facebook Page, newest first: text, author, time, reaction, comment and share counts, and photos or videos. The first page holds the posts in the page's HTML; each next page holds the next three.

scope social:read1 unitcached 10 minpaginated

Parameters

id
string
required
Page username or URL (https://www.facebook.com/<username>).
e.g. NASA
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

21 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
commentCountinteger (int64)
createdAtstring
idstring
likeCountinteger (int64)
mediaMedia[]
durationSecondsinteger (int64)
heightany
thumbnailUrlstring
typestring
urlstring
widthany
shareCountinteger (int64)
textstring
urlstring
viewCountinteger (int64)
curl "https://api.hoshime.com/v1/facebook/pagePosts?id=NASA" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=dst-png&cstp=mx800x800&ctp=s100x1…",
        "id": "100044561550831",
        "name": "NASA - National Aeronautics and Space Administration",
        "url": "https://www.facebook.com/NASA",
        "username": "NASA"
      },
      "commentCount": 2,
      "createdAt": "2026-11-20T17:59:42Z",
      "id": "pfbid02hb8fsH3Y8btu1WnYzzNNv3QebDqLQxQFFzPL9ovyRHnZisanz9UAfn4bVVr4DiyKl",
      "likeCount": 41,
      "media": [],
      "shareCount": 7,
      "text": "",
      "url": "https://www.facebook.com/NASA/posts/pfbid02hb8fsH3Y8btu1WnYzzNNv3QebDqLQxQFFzPL9ovyRHnZisanz9UAfn4bVVr4DiyKl",
      "viewCount": 0
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "pagePosts",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "facebook",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

post

GET/v1/facebook/post

One public Facebook post by its permalink: text, author, time, reaction, comment and share counts, and photos or videos.

scope social:read1 unitcached 10 min

Parameters

id
string
required
Post permalink (https://www.facebook.com/<page>/posts/pfbid...).
e.g. https://www.facebook.com/NASA/posts/pfbid05obVhEi3rgpfK4zN3tm6Fao6rRsCWcFAj9xEdHBZ2ghzmagEJbgnRQHk8A3ttV81l
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

21 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
commentCountinteger (int64)
createdAtstring
idstring
likeCountinteger (int64)
mediaMedia[]
durationSecondsinteger (int64)
heightany
thumbnailUrlstring
typestring
urlstring
widthany
shareCountinteger (int64)
textstring
urlstring
viewCountinteger (int64)
curl "https://api.hoshime.com/v1/facebook/post?id=https%3A%2F%2Fwww.facebook.com%2FNASA%2Fposts%2Fpfbid05obVhEi3rgpfK4zN3tm6Fao6rRsCWcFAj9xEdHBZ2ghzmagEJbgnRQHk8A3ttV81l" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "author": {
      "avatarUrl": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=dst-png&cstp=mx800x800&ctp=s100x1…",
      "id": "100044561550831",
      "name": "NASA - National Aeronautics and Space Administration",
      "url": "https://www.facebook.com/NASA",
      "username": "NASA"
    },
    "commentCount": 149,
    "createdAt": "2026-11-11T00:00:00Z",
    "id": "pfbid05obVhEi3rgpfK4zN3tm6Fao6rRsCWcFAj9xEdHBZ2ghzmagEJbgnRQHk8A3ttV81l",
    "likeCount": 4309,
    "media": [
      {
        "durationSeconds": 0,
        "height": 1080,
        "thumbnailUrl": "",
        "type": "image",
        "url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.99422-6/903407962_1463151979265741_3248142134205772898_n.png?stp=dst-jpg_tt6&cstp=mx2048x2048&ctp…",
        "width": 1080
      }
    ],
    "shareCount": 473,
    "text": "How’s that for a starburst?\n\nFound in this distant spiral galaxy is a giant star prone to mysterious outbursts. Thanks to our Chandra X-ray …",
    "url": "https://www.facebook.com/NASA/posts/pfbid05obVhEi3rgpfK4zN3tm6Fao6rRsCWcFAj9xEdHBZ2ghzmagEJbgnRQHk8A3ttV81l",
    "viewCount": 0
  },
  "meta": {
    "cached": false,
    "endpoint": "post",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "facebook",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

postComments

GET/v1/facebook/postComments

Comments on one public Facebook post, ten per call, in the order Facebook shows them, with the author, text, like count and reply count of each.

scope social:read1 unitcached 10 minpaginated

Parameters

id
string
required
Post permalink (https://www.facebook.com/<page>/posts/pfbid...).
e.g. https://www.facebook.com/NASA/posts/pfbid05obVhEi3rgpfK4zN3tm6Fao6rRsCWcFAj9xEdHBZ2ghzmagEJbgnRQHk8A3ttV81l
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
createdAtstring
idstring
likeCountinteger (int64)
replyCountinteger (int64)
textstring
curl "https://api.hoshime.com/v1/facebook/postComments?id=https%3A%2F%2Fwww.facebook.com%2FNASA%2Fposts%2Fpfbid05obVhEi3rgpfK4zN3tm6Fao6rRsCWcFAj9xEdHBZ2ghzmagEJbgnRQHk8A3ttV81l" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "author": {
        "avatarUrl": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-1/836117680_4722253464661107_2841056073015703762_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1080x1080…",
        "id": "61595240910514",
        "name": "Restless Planet",
        "url": "https://www.facebook.com/people/Restless-Planet/61595240910514/",
        "username": ""
      },
      "createdAt": "2026-11-11T03:09:49Z",
      "id": "1118598634112717",
      "likeCount": 10,
      "replyCount": 0,
      "text": "That starburst glow against the dust lanes is stunning. Great reminder of how active these star-forming regions are."
    },
    {
      "author": {
        "avatarUrl": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-1/853581785_122137599201357477_8751717827246073692_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1600x16…",
        "id": "61590724331953",
        "name": "Gaevra Xandrelor",
        "url": "https://www.facebook.com/people/Gaevra-Xandrelor/61590724331953/",
        "username": ""
      },
      "createdAt": "2026-11-11T06:02:20Z",
      "id": "3583385498506379",
      "likeCount": 3,
      "replyCount": 0,
      "text": "That pink spiral and the hidden companion behind those outbursts make for such a captivating mystery — lovely work from Chandra."
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "postComments",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "facebook",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open