How to get replit users profile pic through an api

Is there an api that lets you get a profile pic of an replit user??? if so then where

Hey, @ch1ck3n welcome to the forums.

I don’t believe Replit has a public API.

Damn, is there a plan to make a public api then

@ch1ck3n https://replitpfp.codingcactus.repl.co/ch1ck3n

Although the API technically isn’t public, you can still use it. Here’s an example GraphQL request to https://replit.com/graphql

query user($id: Int!) {
    user(id: $id) {
        image 
   }
}

and you will need to pass in the user ID as a variable. You may also need to authorise with your connect.sid token.

You can also check out https://thereplitapis.repl.co/ which is being made by @rayhanadev, but I don’t think it’s finished yet.

1 Like

@DillonB07 why are you including the isFollowingCurrentUser field?

oops, forgot to delete it. I copied the query from one of my projects.

cool thanks guys!!! you are great help

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.