ADSBexchange.com

付费
通过 ADSBexchange.com | 已更新 hace 2 meses | Transportation
人气

9.7 / 10

延迟

163ms

服务等级

100%

返回所有讨论

No flight data received with the API

avatar
jerrycd
hace un año

There was no airplane data retrieved with the folloiwng Python scripts. Could anyone help me please? Thansk in advance!

Returned string:
{‘states’: [], ‘time’: 1608711590}

Python scripts:
import http.client

conn = http.client.HTTPSConnection(“adsbexchange-com1.p.rapidapi.com”)

headers = {
‘x-rapidapi-key’: “”,
‘x-rapidapi-host’: “”
}

conn.request(“GET”, “/icao/78048f/”, headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode(“utf-8”))

avatar
AVIARLabs commented hace un año

I don’t code in python, but I’m sure You’re missing the header info, the key and host, which are provided by Rapid. Add those and you should be good.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论
打分:2 - 投票:5