Request Not Able To Get UniverseId

I am currently creating a script that gets stats for a game. When trying to receive the UniverseId from a place id using request it returns with <Response [200]>.

Here is the code:

getUniverse = requests.get(url = "https://api.roblox.com/universes/get-universe-containing-place?placeid=" + str(placeId))
print(getUniverse)

I know that the PlaceId isn’t nil because when I personally try getting the UniverseId via my browser it, works totally fine.

Browser:
image
Script:
image
The PlaceId used for both:

5736762541

Thanks so much if you can help <3

requests.get should return a response object. You’re just printing that response object. If you want to get the body of the request you would need to get that response object’s text property

print(getUniverse.text)

Try:

print(getUniverse.UniverseId)

Wow, thanks a lot! I never had even thought of .text being used in this situation.