401 error with AeroAPI

Hello support,

Today I tried to use the AeroAPI with python. However, I get the 401 error.

The code I ran :

######################################"
apiKey = “my_api_key”

apiUrl = “https://aeroapi.flightaware.com/aeroapi

headers = {‘x-apikey’: apiKey}

r = requests.get(apiUrl, headers=headers)

r.status_code

###############################################"

This is the first time I try to use an API. It’s probably a rookie mistake.

Thank you for your answers.

What endpoint are you trying to get the data from in our API? Could you provide an example of the parameters you are inserting when trying to query it?

Taylor Fischer -
Commercial Support

Toll Free: +1.800.713.8570
Support Line:+1.713.588.6514

Eleven Greenway Plaza, Suite 2900 - Houston, Texas - 77046
FlightAware


Learn about FlightAware Global and Premium Accounts: Commercial Services - FlightAware