WordsAPI

फ्रीमियम
Verified
द्वारा dpventures | अपडेट किया गया 22일 전 | Data
लोकप्रियता

9.9 / 10

लेटेंसी

179ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Get "Too many requests" or 403 after first use

Rapid account: Rjainms
rjainms
6 years ago

I am using Python 3.6.4 and following the simple example code snippet in the Docs. I could not use the unirest package since it doesnt seem to work for Python 3 so I am using the requests package. I get error 403 or “Too many requests” in the JSON. The code is:

import requests
response = requests.get(“https://wordsapiv1.p.mashape.com/words/solioquy”,
headers={
“X-Mashape-Key”: “my key”,
“Accept”: “application/json”
}
)
if response.status_code != 200:
print(‘GET /wordsapi/ error {}’.format(response.status_code))
for item in response.json():
print(‘item:’, item)

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें