Hashnode
App · 3 actions
Look up your Hashnode account and the blogs you own, and anyone's public Hashnode profile.
Actions
| Action | What it does |
|---|---|
| Get current user | Get the Hashnode user the connection acts as: name, username, email, tagline and join date. |
| Get user profile | Look up anyone's public Hashnode profile by username: name, tagline, location and follower counts. |
| List publications | List the blogs the connected user owns. |
Get current user
Get the Hashnode user the connection acts as: name, username, email, tagline and join date.
Inputs
None.
Outputs
userobject- The connected user
Example output
{
"user": {
"dateJoined": "2024-01-10T09:00:00.000Z",
"email": "jo@example.com",
"id": "64b0c0ffee0123456789abce",
"location": "London",
"name": "Jo Bloggs",
"profilePicture": null,
"tagline": "Writing about APIs",
"username": "jo"
}
}Get user profile
Look up anyone's public Hashnode profile by username: name, tagline, location and follower counts.
Inputs
- Username
usernametextRequired - The Hashnode username, as in hashnode.com/@username.
Outputs
userobject- The user
Example output
{
"user": {
"dateJoined": "2024-01-10T09:00:00.000Z",
"followersCount": 20,
"followingsCount": 5,
"id": "64b0c0ffee0123456789abce",
"location": "London",
"name": "Jo Bloggs",
"profilePicture": null,
"tagline": "Writing about APIs",
"username": "jo"
}
}List publications
List the blogs the connected user owns. Gets one page; to see more, run it again with the next page it gives.
Inputs
- Page size
firstnumber - How many to return, 1 to 100. Defaults to 20.From 1 to 100.
- Next page cursor
aftertext - The 'next_cursor' from an earlier page, to get the page after it.
Outputs
countnumber- How many on this page
has_moretrue/false- Whether another page follows
next_cursortext- Pass as 'Next page cursor' for the next page; empty on the last one
publicationslist- The publications
totalnumber- How many there are in all, when Hashnode says
Example output
{
"count": 1,
"has_more": false,
"next_cursor": "",
"publications": [
{
"displayTitle": "Jo's Blog",
"id": "64b0c0ffee0123456789abcd",
"isTeam": false,
"title": "Jo's Blog",
"url": "https://jo.hashnode.dev"
}
],
"total": 1
}