Is there roblox API that allows upload image from game or request?

Hello.
I’m trying to make upload image from roblox game, So I trying find API that will create new asset from logged account.
Is there any API that can do that if yes please tell me.

6 Likes

Pretty sure you can’t make images with a bot or API. I could be wrong, but allowing players to upload images into games could be very bad in some cases.

1 Like

Part of the publish API, this is probably what you’re looking for:

2 Likes

If you write a parser you can import files through some HTTP request and literally build the images out of parts or GUI elements.

Bitmap.rbxl (83.2 KB)

In this example the file would have to be converted into base64 format in order to be hard coded in a Roblox module script.

1 Like

I am bumping this as I have an extended question. I am looking for a way to upload an image from an external addon to Roblox and get an asset ID returned back to me. Is this the proper API for it? If so, how would I go about using it?

There’s no proper api for it. You would have to make a script connect via HttpService and then upload your image. However, captchas, login and everything would perhaps be a problem if you’re not experienced with http requests and lua already

Why can I not use Roblox’s publish API?

1 Like

The publish api is a roblox website api and can’t be used in a script like in-game apis. So you would have to create a script to send requests to the publish api with http requests.

I know that. How would I use HTTP protocols with this API?

1 Like

I’ve tried this API the other day, but I couldn’t…

1 Like

Make a replit or Heroku and run the upload code there. Then return the ID. You could use noblox.js