Description
Retrieves all instances in the game that have been tagged with a specific CollectionService tag. Returns the path, class name, and other metadata for each instance.
Endpoint
Parameters
The tag name to search for
Response
An array of objects representing each tagged instance
The full path to the instance (e.g., “Workspace.Enemy1”)
The class name of the instance (e.g., “Part”, “Model”, “Script”)
Examples
Find all enemies
Response:
{
"instances": [
{
"path": "Workspace.Enemy1",
"className": "Model"
},
{
"path": "Workspace.Enemy2",
"className": "Model"
},
{
"path": "ReplicatedStorage.EnemyTemplate",
"className": "Model"
}
]
}
Find all collectibles
Response:
{
"instances": [
{
"path": "Workspace.Coins.Coin1",
"className": "Part"
},
{
"path": "Workspace.Coins.Coin2",
"className": "Part"
}
]
}
No instances with tag
{
"tag": "NonExistentTag"
}
Response: