Solved

API Error: 403 Forbidden

  • 6 October 2022
  • 5 replies
  • 409 views

Userlevel 1
Badge

Hello,

 

I am trying to pull data via API using Python with the code below. The API_KEY and SECRET_KEY were copied from https://analytics.amplitude.com/adform/settings/projects/*****/general for the appropriate project_id.

However, the above code gives me an error 403 Forbidden.

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

I also tried different url combinations such as below as well as url for User Profile API, Dashboard Rest API, etc. They all return either 401 or 403 when I do print(response.status_code)

I have tried resolving this issue with postman without any luck.

Please help me with this issue.

icon

Best answer by Denis Holmes 7 October 2022, 17:09

View original

5 replies

Userlevel 6
Badge +8

Hi @Audino.Anter ,

 

I understand you are trying to use our Export API and running into an API issue. Is your Data centre in the EU or the US? Can you send me a link to your org so I can take a look and try the call myself?

 

Which Project ID are you trying to export data from? Thank you!

 

Kind Regards,
Denis

Userlevel 1
Badge

Sent you a PM

Hi @Dennis_Holmes,

I am getting the same error - is there a simple way to resolve this? 

Best regards,

I have got a similar issue, trying to call the `https://amplitude.com/api/2/deletions/users` getting a `403`

Userlevel 6
Badge +8

Hi @Ingmar Oemig & @Gabriele You should be able to call this without issue. For Audino, the issue was resolved because he was on the Amplitude US Domain. Can you both please create your own community post and include details such as the API endpoint, parameters, which users targeted (if any) etc and someone will pick it up as soon as they can? Thank you both!

Reply