I feel like I get how API data retrieval is supposed to work but I’m just not doing something right. I’m trying to pull air quality data from purpleair.com in this project:
https://x.thunkable.com/copy/d5bd46db1d14d638677b1be3ad4661c3
edit: updated project link: https://x.thunkable.com/copy/c61550417962683dd738ee6c8299fa59
The first screen, “Air Quality” is what I’ve set up. The second screen “Home” is what was shared on another thread here and it’s a sample working weather API retrieval screen.
From what I’ve read on the purpleair.com site, I don’t need an API key for public sensor data. They don’t have a sample API call on their site so I’ve tried it without a key, with a key that I found and “&appid=”, “&APPID=” and “&key=” appended before the key value. In all four cases, I get pretty much the same result:
The app shows me the correct API data (as a JSON record) for a brief second and then it is replaced by this error message:
The website or service provider you are trying to reach does not support HTTPS requests.
That happens whether I use http:// or https:// for the API url. It also happens with other sites I’ve tried such as AirNow.com’s API.
Any suggestions for how to resolve this? Ultimately, I want to pull single data values from the JSON data but I’m not even at that point yet with the API connection not really working.