Skip to main content
The Pump.fun API supports various social interactions including likes, follows, bookmarks, and replies. This guide shows you how to implement these features.

Likes

Like a coin or reply

Add a like to a target (coin or reply) using its ID:

Unlike a coin or reply

Remove a like from a target:
The targetId can be either a coin mint address or a reply ID, making the likes system flexible across different content types.

Follows

Follow a user

Follow another user by their user ID:

Unfollow a user

Remove a user from your following list:
Following users requires a valid captcha token to prevent automated abuse.

Bookmarks

Add items to bookmarks

Add one or more items to your bookmark collections:

Remove items from bookmarks

Remove items from your bookmark collections:

Get bookmark items

Retrieve items from a specific bookmark collection:

Replies

Create a reply

Post a reply to a coin’s thread:

Get replies for a coin

Retrieve all replies for a specific coin:
Creating replies requires a valid captcha token to prevent spam. Make sure to implement proper captcha verification in your application.

Complete interaction example

Here’s a complete example showing multiple interactions:
Python

Best practices

1

Implement captcha verification

Always use valid captcha tokens for operations that create content (follows, replies) to prevent abuse.
2

Handle rate limits

Implement exponential backoff when receiving rate limit errors (429 status codes).
3

Validate input

Sanitize user-generated content before posting replies to prevent injection attacks.
4

Cache user state

Store like/follow/bookmark state locally to avoid redundant API calls.