WordsAPI

FREEMIUM
By dpventures | Updated il y a 16 jours | Data
Popularity

9.9 / 10

Latency

191ms

Service Level

100%

Health Check

N/A

Back to All Discussions

How do I use this API with JSON promises?

Rapid account: Blagonation
blagonation
il y a 6 ans

If I have a custom mashape key, where in the GET request url would i put it? Currently I only have their base url which is โ€œhttps://wordsapiv1.p.mashape.com/words/example/definitionsโ€; but this doesnโ€™t return anything

Rapid account: Kruchy 1980
Kruchy1980 Commented il y a 4 ans

Hwy Pablion thanks for giving solution had the same problem but now works fine thanks

Rapid account: Pablion
Pablion Commented il y a 4 ans

in JAVACRIPT/fetch
console.log(response);
should be changed to :

response.json().then((data) => {
        console.log(data);
    });

according to this:
https://stackoverflow.com/questions/45366789/trying-to-access-response-data-using-fetch

Rapid account: Pablion
Pablion Commented il y a 4 ans

same peoblem.

Join in the discussion - add comment below:

Login / Signup to post new comments