Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sameerkumar18/geek-joke-api
Random Geek Jokes REST API
https://github.com/sameerkumar18/geek-joke-api
entertainment flask flask-api flask-restful forthebadge fun funny geek geek-jokes jokes python
Last synced: 5 days ago
JSON representation
Random Geek Jokes REST API
- Host: GitHub
- URL: https://github.com/sameerkumar18/geek-joke-api
- Owner: sameerkumar18
- License: mit
- Created: 2017-06-16T20:22:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T19:13:47.000Z (over 3 years ago)
- Last Synced: 2024-10-23T08:53:46.872Z (14 days ago)
- Topics: entertainment, flask, flask-api, flask-restful, forthebadge, fun, funny, geek, geek-jokes, jokes, python
- Language: Python
- Homepage: https://geek-jokes.sameerkumar.website
- Size: 99.6 KB
- Stars: 104
- Watchers: 6
- Forks: 49
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Geek-Jokes
## A RESTful API to get random geek jokes written in Flask
[![forthebadge](http://forthebadge.com/images/badges/made-with-python.svg)](http://forthebadge.com)
[![forthebadge](http://forthebadge.com/images/badges/gluten-free.svg)](http://forthebadge.com)## 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
```## Projects using Geek Jokes API
Repository | Description
---- | ----
[Random. Django. Rango.](https://github.com/powerhouseofthecell/rango) | Random. Django. Rango. An introduction to using Python and Django to build a website.
[tellmejoke](https://github.com/MunafHajir/-tellmeajoke) | VS Code Extension that tells you a jokeUsed Geek Jokes API in your project? Check out the [contributing guidelines](https://github.com/sameerkumar18/geek-joke-api/blob/master/contributing.md) for this list and let us know. we love PRs :)
## Examples
### cURL
```
curl -X GET \
'https://geek-jokes.sameerkumar.website/api?format=json'
```### Python
```Python
import requestsrequests.get('https://geek-jokes.sameerkumar.website/api?format=json')
```### Node.js (es6)
```Javascript
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: [[email protected]](mailto:[email protected])## Author
Sameer Kumar
https://sameerkumar.website