项目作者: sameerkumar18

项目描述 :
Random Geek Jokes REST API
高级语言: Python
项目地址: git://github.com/sameerkumar18/geek-joke-api.git
创建时间: 2017-06-16T20:22:46Z
项目社区:https://github.com/sameerkumar18/geek-joke-api

开源协议:MIT License

下载


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

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

Usage

Just do a GET request on the API URL.

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

Projects using Geek Jokes API

Repository Description
Random. Django. Rango. Random. Django. Rango. An introduction to using Python and Django to build a website.
tellmejoke VS Code Extension that tells you a joke

Used Geek Jokes API in your project? Check out the contributing guidelines for this list and let us know. we love PRs :)

Examples

cURL

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

Python

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

Node.js (es6)

  1. var request = require('request');
  2. let options = {
  3. url: 'https://geek-jokes.sameerkumar.website/api?format=json',
  4. method: 'GET'
  5. }
  6. request(options, (err, response, body) => {
  7. if(!err && response.statusCode == 200)
  8. console.log(body)
  9. });

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