The Wayback Machine - https://web.archive.org/web/20200327000352/https://github.com/sameerkumar18/geek-joke-api
Skip to content
Random Geek Jokes REST API
Python
Branch: master
Clone or download

Latest commit

sameerkumar18 Merge pull request #49 from sameerkumar18/test
Fixed encoding issues | optimized JSON file reads | JSON API Support
Latest commit e272fba Mar 8, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add gitignore and remove binary file Oct 2, 2017
LICENSE Initial commit Jun 16, 2017
Procfile Now "/api" for GET response Jun 17, 2017
README.md
app.py Fixed encoding issues, optimized JSON file reads Mar 8, 2020
data.json
joke.py RM debug codes Mar 8, 2020
requirements.txt Fixed encoding issues, optimized JSON file reads Mar 8, 2020
runtime.txt

README.md

Geek-Jokes

A RESTful API to get random geek jokes written in Flask

forthebadge forthebadge

What is the Geek-Jokes-api?

The Geek Jokes RESTful API lets you fetch a random geeky/programming related joke for use in all sorts of applications.

Why the Geek-Jokes-api?

The Geek Jokes api is for any developer needing some random (geeky) jokes in their life or application.

URL

GET: https://geek-jokes.sameerkumar.website/api?format=json

Usage

Just do a GET request on the API URL.

GET: https://geek-jokes.sameerkumar.website/api?format=json

Examples

cURL

curl -X GET \
'https://geek-jokes.sameerkumar.website/api?format=json'

Python

import requests

requests.get('https://geek-jokes.sameerkumar.website/api?format=json')

Node.js (es6)

var request = require('request');

let options = {
    url: 'https://geek-jokes.sameerkumar.website/api?format=json',
    method: 'GET'
}

request(options, (err, response, body) => {
    if(!err && response.statusCode == 200)
        console.log(body)
});

Any browser

visit the url: https://geek-jokes.sameerkumar.website/api?format=json to get a joke. Press refresh button for more jokes.

License

MIT

Contact

Contact: sam@sameerkumar.website

Author

Sameer Kumar https://sameerkumar.website

You can’t perform that action at this time.