Random Geek Jokes REST API

Overview

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

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

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: [email protected]

Author

Sameer Kumar https://sameerkumar.website

Comments
  • Write documentation for the API

    Write documentation for the API

    It'll be great if someone could write the documentation for the API. I wrote docs for an API previously, for reference - https://github.com/sameerkumar18/aztro/blob/master/docs/source/index.rst

    enhancement help wanted Hacktoberfest 
    opened by sameerkumar18 5
  • No 'Access-Control-Allow-Origin'

    No 'Access-Control-Allow-Origin'

    Failed to load https://geek-jokes.sameerkumar.website/api: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.


    Angular 6 HttpClient default HttpGet Other api-s work

    opened by b-mi 3
  • Remove Binary files and add gitignore

    Remove Binary files and add gitignore

    Hi, I opened #26 to suggest removing the .pyc file from your repo. This is a compiled file which shouldn't need to be versioned, and best practice is not to include files like this in your repos. The addition of the .gitignore will keep it from being added in future pushes. There are also some other best practice examples listed in the .gitignore as well. Please let me know what you think.

    opened by karldreher 1
  • Fixed encoding issues | optimized JSON file reads | Making JSON file readable

    Fixed encoding issues | optimized JSON file reads | Making JSON file readable

    • Supports JSON via query params (default endpoint is still returning strings to support existing clients)
    • Upgraded packages, removed unnecessary ones
    • Updated Readme
    • Made joke JSON file more readable
    opened by sameerkumar18 0
  • Bump flask-cors from 3.0.7 to 3.0.9

    Bump flask-cors from 3.0.7 to 3.0.9

    Bumps flask-cors from 3.0.7 to 3.0.9.

    Release notes

    Sourced from flask-cors's releases.

    Release 3.0.9

    Security

    • Escape path before evaluating resource rules (thanks @​praetorian-colby-morgan). Prior to this, flask-cors incorrectly evaluated CORS resource matching before path expansion. E.g. "/api/../foo.txt" would incorrectly match resources for "/api/*" whereas the path actually expands simply to "/foo.txt"

    Release 3.0.8

    Fixes DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

    Thank you @​juanmaneo and @​jdevera!

    Changelog

    Sourced from flask-cors's changelog.

    3.0.9

    Security

    • Escape path before evaluating resource rules (thanks to Colby Morgan). Prior to this, flask-cors incorrectly evaluated CORS resource matching before path expansion. E.g. "/api/../foo.txt" would incorrectly match resources for "/api/*" whereas the path actually expands simply to "/foo.txt"

    3.0.8

    Fixes : DeprecationWarning: Using or importing the ABCs from 'collections' in Python 3.7. Thank you @​juanmaneo and @​jdevera for the contribution.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • more code cleanup and pep 8 work

    more code cleanup and pep 8 work

    changes made

    more work towards overall #3 goal

    • random digits method removed in favour of an inline randint call 1fa0619
    • renamed get_joke to getJoke so app.py works again 87e9519
    • getJoke started at index 1 meaning it would never return the first joke e6ff3da
    • removed the ascii encoding and decoding as utf-8 is already enforced 4187f26
    opened by decantr 0
Owner
Sameer Kumar
Product Engineer - Fullstack. Code, Finance, Stocks. Loves Products! Drop me a DM if you need help :)
Sameer Kumar
A simple discord bot written in python which can surf subreddits, send a random meme, jokes and also weather of a given place

A simple Discord Bot A simple discord bot written in python which can surf subreddits, send a random meme, jokes and also weather of a given place. We

null 1 Jan 24, 2022
A jokes api python module

A jokes api python module

Fayas Noushad 3 Nov 28, 2021
Random-backlog-tweet - Pick a page from a sitemap at random and prep a tweet button for it

Random-backlog-tweet - Pick a page from a sitemap at random and prep a tweet button for it

Paul O'Leary McCann 0 Dec 1, 2022
YARSAW is an Async Python API Wrapper for the Random Stuff API.

Yet Another Random Stuff API Wrapper - YARSAW YARSAW is an Async Python API Wrapper for the Random Stuff API. This module makes it simpler for you to

Bruce 6 Mar 27, 2022
Assassination API for getting random quotes from Assassination Classroom.

Assassination API Take advantage of what you have, while you have it. Quotes from Assassination Classroom Assassination classroom is one of best anime

Swanand Mulay 3 Jul 15, 2022
Using multiple API sources, create an app that allows users to filter through random locations based on their temperature range choices.

World_weather_analysis Overview Using multiple API sources, create an app that allows users to filter through random locations based on their temperat

Jason Boyer 2 Sep 16, 2022
Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call.

Discord_Meme_Bot ?? Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call. Add the bot

null 2 Jan 16, 2022
An API which returns random AOT quote everytime it's invoked

An API which returns random AOT quote everytime it's invoked

Nishant Sapkota 1 Feb 7, 2022
A Python Library to interface with Flickr REST API, OAuth & JSON Responses

Python-Flickr Python-Flickr is A Python library to interface with Flickr REST API & OAuth Features Photo Uploading Retrieve user information Common Fl

Mike Helmick 40 Sep 25, 2021
A Python Library to interface with Tumblr v2 REST API & OAuth

Tumblpy Tumblpy is a Python library to help interface with Tumblr v2 REST API & OAuth Features Retrieve user information and blog information Common T

Mike Helmick 125 Jun 20, 2022
Python library for interacting with the Wunderlist 2 REST API

Overview Wunderpy2 is a thin Python library for accessing the official Wunderlist 2 API. What does a thin library mean here? Only the bare minimum of

mieubrisse 24 Dec 29, 2020
A very simple Salesforce.com REST API client for Python

Simple Salesforce Simple Salesforce is a basic Salesforce.com REST API client built for Python 3.5, 3.6, 3.7 and 3.8. The goal is to provide a very lo

simple salesforce 1.4k Dec 29, 2022
HTTP Calls to Amazon Web Services Rest API for IoT Core Shadow Actions 💻🌐💡

aws-iot-shadow-rest-api HTTP Calls to Amazon Web Services Rest API for IoT Core Shadow Actions ?? ?? ?? This simple script implements the following aw

AIIIXIII 3 Jun 6, 2022
📦 Opensource Python wrapper for Hiven's REST and WebSocket API

hiven.py ?? Opensource Python wrapper for Hiven's REST and WebSocket API Installation pip install -U hiven.py Usage hiven.py is currently under devel

Kevin Thomas 3 Sep 3, 2021
Jackrabbit Relay is an API endpoint for stock, forex and cryptocurrency exchanges that accept REST webhooks.

JackrabbitRelay Jackrabbit Relay is an API endpoint for stock, forex and cryptocurrency exchanges that accept REST webhooks. Disclaimer Please note RA

Rose Heart 23 Jan 4, 2023
Python3 based bittrex rest api wrapper

bittrex-rest-api This open source project was created to give an understanding of the Bittrex Rest API v1.1/v3.0 in pearl language. The sample file sh

null 4 Nov 15, 2022
NiceHash Python Library and Command Line Rest API

NiceHash Python Library and Command Line Rest API Requirements / Modules pip install requests Required data and where to get it Following data is nee

Ashlin Darius Govindasamy 2 Jan 2, 2022
NiceHash Python Library and Command Line Rest API

NiceHash Python Library and Command Line Rest API Requirements / Modules pip install requests Required data and where to get it Following data is nee

Ashlin Darius Govindasamy 2 Jan 2, 2022
Python bindings for swm-core client REST API

Python bindings for swm-core client REST API Description Sky Port is an universal bus between user software and compute resources. It can also be cons

Sky Workflows 1 Jan 1, 2022