Home Boards More

API Intro:

The API URL is api.thedailyshitpost.net/endpoint?options.

You only need "options?" if specified.

The API is written in Python, with the Flask framework; it runs on my VPS in NYC.

There are currently no rate limits in place... I'll see if I change my mind on this later.

Endpoints:

api.thedailyshitpost.net/random

This will return a random shitpost from the collection. Example request and response:

api.thedailyshitpost.net/random

{"error":"False","url":"https://thedailyshitpost.net/shits/hey%20champ.mp4"}

api.thedailyshitpost.net/search?search=text

This will return a shitpost that contains your search query in the filename. Example request and response:

api.thedailyshitpost.net/search?search=birds

{"error":"False","url":"https://thedailyshitpost.net/shits/angry%20birds.mp4"}

api.thedailyshitpost.net/quote/random

This will return a random quote from the quotes board database. Example request and response:

api.thedailyshitpost.net/quote/random

{"error":"False","quote":"Truth is like poetry, and most people fucking hate poetry.","quotee":"Michael Lewis"}