Giter Club home page Giter Club logo

twitter-meme-api's Introduction

Twitter-Meme-API

For Getting Memes from Twitter An API used to scrap memes from Twitter Userid and returns in json.

The Link of the Meme APIs is : https://ms-twitter.azurewebsites.net

// At the first ping the api takes times to get the data in order to wakeup the server, after the first successful ping the delay is resolved.

Default

By default the API grabs a random meme from

"memes",
"Theindianmeme", #IND
"OldMemeArchive",
"_sarcasticvijay", #IND #_sarcasticvijay
"Memeland",
"GabbbarSingh", #IND
"RespectfulMemes",
"Being_Humor", #IND
"Cryptic_Miind", #IND
"WholesomeMeme",
"sagarcasm", #IND
"OhWonka",
"trilochann45", #IND
"moretylenol",
"whitememejesus",
"memes_hallabol", #IND
"IntrovertProbss",
"insultsrare",
"InternetH0F",
"crim_tweets_",
"insanepplYT"

API Link : https://ms-twitter.azurewebsites.net

Example Response:

  {
"count": 1,
"memes": [
{
"post_user": "IntrovertProbss",
"post_media_url": "http://pbs.twimg.com/media/FdMA2GWWYAAjCbN.jpg",
"post_text": "",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1520851980993900548/1b5DfXlR_normal.jpg",
"post_url": "https://t.co/yUly6wClqm",
"post_likes": 787,
"post_retweet": 78
}
]
}

Custom Endpoints

Specify count (MAX 49)

In order to get multiple memes in a single request from the default userid, specify the count with the following endpoint.

Endpoint: /{count}

Example: https://ms-twitter.azurewebsites.net/2

Response:

{
"count": 2,
"memes": [
{
"post_user": "WholesomeMeme",
"post_media_url": "http://pbs.twimg.com/media/Fiw-8n7XwAAKQAR.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1411016646815358978/H8kX0hfw_normal.jpg",
"post_url": "https://t.co/IWfJRkK7um",
"post_text": "",
"post_likes": 54877,
"post_retweet": 3508
},
{
"post_user": "RespectfulMemes",
"post_media_url": "http://pbs.twimg.com/media/FicB2BzXwAEbecT.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/800857197697703936/RMfUXdGk_normal.jpg",
"post_url": "https://t.co/efOW0QWY3z",
"post_text": "",
"post_likes": 11594,
"post_retweet": 1272
}
]
}

Specific Userid

In order to get a random posts from any Userid, specify the subreddit name in the following endpoint.

Endpoint: /{userid}

Example: https://ms-twitter.azurewebsites.net/allindiamemes

Response:

{
"count": 1,
"memes": [
{
"post_user": "allindiamemes",
"post_media_url": "http://pbs.twimg.com/media/FgU2YYkaUAI1Xlu.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1583305417261993984/GJDncE5H_normal.jpg",
"post_url": "https://t.co/3tuDdfIWMh",
"post_text": "Kohli will drop the catch.\nRohit will miss the runout. ",
"post_likes": 197,
"post_retweet": 22
}
]
}

Specific Userid & Count (MAX 49)

In order to get a custom number of posts from a specific Userid, specify the name of the Userid and the count in the following endpoints.

Endpoint: /{userid}/{count}

Example: https://ms-twitter.azurewebsites.net/allindiamemes/5

Response:

{
"count": 5,
"memes": [
{
"post_user": "allindiamemes",
"post_media_url": "http://pbs.twimg.com/media/Fh2pCADaUAAVCga.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1583305417261993984/GJDncE5H_normal.jpg",
"post_url": "https://t.co/uw7fQz0dvr",
"post_text": "Me to my twitter mutuals ",
"post_likes": 209,
"post_retweet": 47
},
{
"post_user": "allindiamemes",
"post_media_url": "http://pbs.twimg.com/ext_tw_video_thumb/1585927114259587074/pu/img/wbiLSo4LSddmG-ti.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1583305417261993984/GJDncE5H_normal.jpg",
"post_url": "https://t.co/t8TQAnJTRe",
"post_text": "Parag Agrawal walking away from Twitter with $42 million\n\n",
"post_likes": 7172,
"post_retweet": 880
},
{
"post_user": "allindiamemes",
"post_media_url": "http://pbs.twimg.com/media/Fh2pCADaUAAVCga.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1583305417261993984/GJDncE5H_normal.jpg",
"post_url": "https://t.co/uw7fQz0dvr",
"post_text": "Me to my twitter mutuals ",
"post_likes": 209,
"post_retweet": 47
},
{
"post_user": "allindiamemes",
"post_media_url": "http://pbs.twimg.com/media/FjNBSdMaMAA2j6Y.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1583305417261993984/GJDncE5H_normal.jpg",
"post_url": "https://t.co/N2qws5GHtF",
"post_text": "Me playing watchman while my friend is romancing his gf ",
"post_likes": 176,
"post_retweet": 42
},
{
"post_user": "allindiamemes",
"post_media_url": "http://pbs.twimg.com/media/FiA474EakAEQgGG.jpg",
"post_url_profile_url": "http://pbs.twimg.com/profile_images/1583305417261993984/GJDncE5H_normal.jpg",
"post_url": "https://t.co/Z0ONPyMghd",
"post_text": "Waiting for Elon Musk to restore Kangana Ranaut's account ",
"post_likes": 175,
"post_retweet": 52
}
]
}

twitter-meme-api's People

Contributors

mayanksharma-dev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.