So I’ve been trying to parse one of the modules scripts in a game I work on with a group api key and the Roblox OpenCloud Api and I’ve been stuck on how to actually get the instance
As it’s giving me a error that it couldn’t find the instance even with the group api key with the universe-instance:read scope and the verified universe and place ids
Thanks for reaching out. I want to make sure you are using the cloud API correctly.
Are these the one you are using?
curl --include
--location --request GET "https://apis.roblox.com/cloud/v2/universes/{universeId}/places/{placeId}/instances/{instanceId}"
--header "x-api-key: <api-key>"
curl --include
--location --request GET "https://apis.roblox.com/cloud/v2/universes/{universeId}/places/{placeId}/instances/{instanceId}:listChildren"
--header "x-api-key: <api-key>"
You can use the root in place of {instanceid} to get the root id and list the children under it as well to verify the children nodes you are getting.
If you are using the above APIs, the API-key should have access permissions to universe-place-instances:read and universe-place-instances:write
@TheFuroYT If you are using the correct access permissions as mentioned - universe-place-instances:read and universe-place-instances:write, I suspect there might be a timing issue that is going on.
Is there any time gap when you get the root instance id and when you call follow-up APIs to listChildren or GetInstance? If so, the uniqueid might have been expired and you need to get root instance id again.
If the permissions and timing is not issue, can you please share the steps elaborately with the place file in a private message with us?