title: Python how do I get all ids from this api dictionary
body: <p>My code</p>
  <pre><code> import requests 
   groups = requests.get(f'https://groups.roblox.com/v2/users/1283171278/groups/roles')
   groupsIds = groups.json()['id']
  </code></pre>
  <p>Error I get when I run</p>
  <pre><code>Traceback (most recent call last):
    File &quot;c:/Users/badam/Documents/Request/Testing/Group Checker.py&quot;, line 16, in &lt;module&gt;
      groupsIds = groups.json()['id']
  KeyError: 'id'
  </code></pre>
  <p>The list is pretty big and haves 100 list of ids anyway I can grab all of them and make them into a list?</p>
  <p>here is the api im looking at <a href="https://groups.roblox.com/v2/users/1283171278/groups/roles" rel="nofollow noreferrer">https://groups.roblox.com/v2/users/1283171278/groups/roles</a></p>