# Error 403 when calling the API interface

**URL:** https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116
**Category:** Uncategorized
**Created:** [December 29, 2021, 10:35am UTC](https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116 "2021-12-29T10:35:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Andreas](https://forum.sensor.community/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.sensor.community/u/Andreas)
#### Post date: [December 29, 2021, 10:35am UTC](https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116/1 "2021-12-29T10:35:15Z")

</div>

Hello everyone,  
for some time now I have been operating a fine dust sensor according to the instructions on luftdaten.info. This is registered there with an ID ####. I then read the current measured values into my iobroker via the API ([http://api.luftdaten.info/v1/sensor/####/](http://api.luftdaten.info/v1/sensor/####/)). By November 2021, I received the measured values without errors. But now I get the error 403 instead of the json string.  
Is that a problem with my hardware or software?  
Has the interface been changed? Is this a temporary problem? How can I query the current measured values via an API?

mi greetings, Andreas

---

<div class="post-metadata">

### Author: ![ricki-z](https://forum.sensor.community/user_avatar/forum.sensor.community/ricki-z/32/215_2.png) [@ricki-z](https://forum.sensor.community/u/ricki-z)
#### Post date: [December 29, 2021, 10:42am UTC](https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116/2 "2021-12-29T10:42:02Z")

</div>

Hello @Andreas,  
since two years the name of the project is Sensor.Community. With that change the URL of the API end point to request sensor data was changed to [https://data.sensor.community/airrohr/v1/sensor/####/](https://data.sensor.community/airrohr/v1/sensor/####/) . All requests to the old URL received a redirect to the new one for the last 2 years. Now these redirects were disabled because there was enough time to change all scripts to the new URL.

---

<div class="post-metadata">

### Author: ![pjg](https://forum.sensor.community/user_avatar/forum.sensor.community/pjg/32/194_2.png) [@pjg](https://forum.sensor.community/u/pjg)
#### Post date: [December 29, 2021, 10:43am UTC](https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116/3 "2021-12-29T10:43:16Z")

</div>

Someone is still using luftdaten…  
Replace with sensor.community.

---

<div class="post-metadata">

### Author: ![pjg](https://forum.sensor.community/user_avatar/forum.sensor.community/pjg/32/194_2.png) [@pjg](https://forum.sensor.community/u/pjg)
#### Post date: [December 29, 2021, 10:48am UTC](https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116/4 "2021-12-29T10:48:33Z")

</div>

> **[EN APIs](https://github.com/opendata-stuttgart/meta/wiki/EN-APIs)**
>
> Opendata Stuttgart organisiert und reguliert. Contribute to opendata-stuttgart/meta development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![Andreas](https://forum.sensor.community/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.sensor.community/u/Andreas)
#### Post date: [December 29, 2021, 11:00am UTC](https://forum.sensor.community/t/error-403-when-calling-the-api-interface/1116/5 "2021-12-29T11:00:45Z")

</div>

Many thanks for the quick response.  
I installed my sensor about 3 years ago, and since then it has been running very unobtrusively and delivering its measurement data. I probably didn’t notice the switch to sensor.community. Despite the search, there was no reference to the URL conversion to be found on the Internet. I just changed the URL and get the measured values again in iobroker.
