title: Urban Dictionary API in discord.py
body: <p>So I am new to API's and I don't know how to solve this. This is my code so far:</p>
  <pre><code>import discord
  from discord.ext import commands
  from aiohttp import ClientSession
  
  class Dictionary(commands.Cog):
      def __init__(self, bot):
          self.bot=bot
  
  
      @commands.command(
          name=&quot;Urban dictionary&quot;,
          aliases=[&quot;urban&quot;, &quot;urband&quot;]
      )
      async def urbandictionary(self, ctx, term):
          url = &quot;https://mashape-community-urban-dictionary.p.rapidapi.com/define&quot;
          querystring = {&quot;term&quot;:term}
  
          headers = {
          'x-rapidapi-host': &quot;mashape-community-urban-dictionary.p.rapidapi.com&quot;,
          'x-rapidapi-key': &quot;My Key&quot;
          }
          async with ClientSession() as session:
              async with session.get(url, headers=headers, params=querystring) as response:
                  r = await response.json()
                  embed = discord.Embed(title=f&quot;First result for:{term}&quot;, description=None)
                  embed.add_field(name=f&quot;{r({'definition'})}&quot;, value=None, inline=False)
  
  def setup(bot):
      bot.add_cog(Dictionary(bot))
  </code></pre>
  <p>I tried printing &quot;r&quot;, and a lot of json pops up. How do I make it, so the first definition shows up, and also not in the terminal, but in the discord chat?</p>
  <p>The JSON looks like this in the terminal: <a href="https://pastebin.com/j5TPZBeA" rel="nofollow noreferrer">https://pastebin.com/j5TPZBeA</a></p>