Replit User Api

Is there any api to get replit user info ?

Can you explain more on ‘replit user info’?

  • Name
  • ID
  • Bio
  • Profile Picture
3 Likes

For html, enable replit auth. Then do something with from replit import web.

2 Likes

@BlueFlameIsHere there’s an extension api for that docs
Or use ReplAuth
Or in python:

import os

os.environ['REPL_OWNER'] # returns the name of the current user
2 Likes

Can I fetch the api ?

I don’t think its an api, its a module.

3 Likes

ok , Thanks For Helping Me

1 Like

You can use GraphQL for this, though. It’s Replit’s API.

2 Likes

Just import it and use its functions

It literally says it’s an API.
So it is an API

2 Likes

Replit API is not going to be given out anymore, though…

3 Likes

Uh, what? It can still be usable, but rules have gone stricter.

3 Likes

That’s for flask.

@app.route('/')
@web.authenticated
def index():
  return ''
2 Likes

You can use it, but you can’t get it. Only Replit Staff and users who currently have it can use it.

1 Like

There are a lot of people who know Replit’s API though. (We’re cluttering this topic a bit, can we take this to PMs?)

4 Likes

But everything seems to be on-topic

1 Like

True, but I don’t know what it is, nor do I think @BlueFlameIsHere knows too.
Btw is it a specific text or a mix of symbols and letters (like OpenAI API)?

1 Like

https://graphql-playground.pikachub2005.repl.co/ might help, with the query query { userByUsername(username: "username") { id username image } }

4 Likes

You can use Replit Authentication and you will get some information about signed-in users.

https://docs.replit.com/hosting/authenticating-users-repl-auth

https://docs.replit.com/hosting/repl-auth-sidebar

Yeah there is but you have to ask the mods if you’re allowed to use it. Some people have been banned for using it.

links:

https://replit.com/graphql

TWA posted pikachuB’s project which is a really good project, I like using it.

3 Likes

If you search Replit for “GraphQL”, there are a few templates that have basic user info fetched from the Replit API. By connecting this with ReplAuth, you could have a nice little system to get data on your users.

5 Likes