Skip to content

Instantly share code, notes, and snippets.

@nkcmr
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkcmr/9b9ec0a62481ca387ef9 to your computer and use it in GitHub Desktop.
Save nkcmr/9b9ec0a62481ca387ef9 to your computer and use it in GitHub Desktop.

Send a request to: http://giphy.com/services/oembed/?url=http://giphy.com/gifs/ijJ0Ltz4UuD4s, and it returns this:

{
  "width": 360,
  "author_url": "http://giphy.com",
  "title": "Idk Animated GIF",
  "url": "http://giphy.com/gifs/zLOr4ChnIorxS",
  "image": "https://media3.giphy.com/media/zLOr4ChnIorxS/giphy.gif",
  "provider_url": "http://giphy.com/",
  "provider_name": "Giphy",
  "author_name": "Giphy",
  "height": 203
}

As you can see the url returned in JSON does not correspond to the url sent in the url parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment