here is api i am trying https://api.apithis.net/host2ip.php?hostname=google.com as you can see unlike json apis it dose not have "" that you can copy as response.json
@client.command()
async def host(ctx, host):
url = ('https://api.apithis.net/host2ip.php?hostname=' + host)
response = requests.get(url)
ipaddress = response.json()
embed = discord.Embed(title="IP for website" + host, color=0x00ffff)
embed.add_field(name="IP:", value=f'{ipaddress}', inline=True)
await ctx.send(embed=embed)
here is my current code if anyone can fix would help alot as im not sure how to use apis without json output thanks