This repository was archived by the owner on Jan 15, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork0
A serverless 9gag API hosted on Amazon using AWS Lambda and API Gateway
NotificationsYou must be signed in to change notification settings
LuxXx/ninegag
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
I implemented a restful serverless 9GAG API with AWS Lambda. It fetches a post and all corresponding information by its id.It's currently hosted in Frankfurt. If you need a mirror somewhere else, message me (pr0v0ziert@gmx.de).
The API contains the following functions
- [GET /:id]
https://ninegag.tdbr.de/:id
This is a sample response:
{"statusCode":200,"success":true,"body": {"imageLink":"http://img-9gag-fun.9cache.com/photo/aWmZAPZ_700b.jpg","webmLink":"http://img-9gag-fun.9cache.com/photo/aWmZAPZ_460svwm.webm","mp4Link":"http://img-9gag-fun.9cache.com/photo/aWmZAPZ_460sv.mp4","gifLink":"http://img-9gag-fun.9cache.com/photo/aWmZAPZ_460sa.gif","id":"aWmZAPZ","title":"Where she's travelling?","animated":true,"nextId":"azXzKjp","nsfw":0,"upVoteCount":7762,"commentsCount":788 }}
17.05.2017: 9gag switched to HTTPS some time ago, therefore I had to tweak this project a little bit
14.03.2018: 9gag changed the data structure, addednsfw
,upVoteCount
, andcommentsCount
24.07.2018: Changed the type of the body of the response