# Hashnode

> Look up your Hashnode account and the blogs you own, and anyone's public Hashnode profile.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/hashnode

## Actions

### Get current user

Get the Hashnode user the connection acts as: name, username, email, tagline and join date.

**Inputs**: None.

**Outputs**

- `user` (object): The connected user

**Example output**

```json
{
  "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 (`username`, text, required): The Hashnode username, as in hashnode.com/@username.

**Outputs**

- `user` (object): The user

**Example output**

```json
{
  "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 (`first`, number): How many to return, 1 to 100. Defaults to 20. From 1 to 100.
- Next page cursor (`after`, text): The 'next_cursor' from an earlier page, to get the page after it.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether another page follows
- `next_cursor` (text): Pass as 'Next page cursor' for the next page; empty on the last one
- `publications` (list): The publications
- `total` (number): How many there are in all, when Hashnode says

**Example output**

```json
{
  "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
}
```
