title: How can I read all pages of an API response using aiohttp with discord.py?
body: <p>I'm using the discord.py rewrite and aiohttp. There is very little documentation for this API, and from what I've seen, I haven't seen a &quot;next_page&quot; link anywhere in the response.</p>
  <p>How do I make it so that all pages of the json response are considered when the query is executed instead of just the default first page?</p>
  <p>Here's my current relevant code:</p>
  <pre><code>async def command(ctx, *, name):
      if not name:
          return await ctx.channel.send('Uhhhh. How am I supposed to show you info if you don\'t enter a name?')
      async with ctx.channel.typing():
          async with aiohttp.ClientSession() as cs:
              async with cs.get(&quot;https://website.items.json&quot;) as r:
                  data = await r.json()
                  listings = data[&quot;items&quot;]
                  for k in listings:
                      if name.lower() == k[&quot;name&quot;].lower():
                          await ctx.channel.send(&quot;message with results and player info as ascertained in the above code&quot;)```
  </code></pre>