Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Fetching Data with the Fetch API

Jared Massey
Jared Massey
12,923 Points

It looks like giphy no longer provides an open API, is that correct?

In order to follow along, do I need to setup an account with them?

4 Answers

danielperez
seal-mask
.a{fill-rule:evenodd;}techdegree
danielperez
Full Stack JavaScript Techdegree Student 15,993 Points

Yes, I do believe so....

you setup an acct, it's free... when you login

....you can create an app, which is also free

give the app whatever name for the app is fine....you can change it later

this gives you a api key

then while logged in

.. you get the Giphy Developers header menu at the top of the site

you can use the API Explorer,

which uses a dialog to help you piece together the api-key with giphy url

.... to make sure you can get data using you new api-key

after that, just copy the working api call url into the code

should work

Jared Massey
Jared Massey
12,923 Points

Thanks. I was trying to avoid setting up yet another account somewhere, but it seems that's the only way.

danielperez
seal-mask
.a{fill-rule:evenodd;}techdegree
danielperez
Full Stack JavaScript Techdegree Student 15,993 Points

Also, as you follow the course...

when using different Giphy endpoints ... trending... search

check the API Explorer to make sure the search url query string is not different from the one in the video

Chris Grazioli
Chris Grazioli
31,225 Points

Yeah I ran into the same issue with the api key. fetch('http://api.giphy.com/v1/gifs/trending?api_key=YOUR API KEY')