ADSBexchange.com

有料
よって ADSBexchange.com | 更新済み 3ヶ月前 | Transportation
人気

9.8 / 10

レイテンシー

181ms

サービスレベル

100%

すべてのディスカッションに戻る

No flight data received with the API

avatar
jerrycd
1年前

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 1年前

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