An open API service indexing awesome lists of open source software.

https://github.com/givensuman/johnmulapi

An API for John Mulaney quotes
https://github.com/givensuman/johnmulapi

api comedy rest

Last synced: 3 months ago
JSON representation

An API for John Mulaney quotes

Awesome Lists containing this project

README

        

# johnmulapi

An API for John Mulaney quotes

[johnmulapi.givensuman.com](https://johnmulapi.givensuman.com)

[api.johnmulapi.givensuman.com](https://api.johnmulapi.givensuman.com)

### How do I use this?

```shell
# shell
$ curl https://api.johnmulapi.givensuman.com
```

```javascript
// javascript
fetch('https://api.johnmulapi.givensuman.com')
.then(res => res.json())
.then(data => console.log(data);
```

```python
# python
import requests
quote = (requests
.get('https://api.johnmulapi.givensuman.com')
.json())
print(quote)
```

👇

```json
{
"data": "I don't look older, I just look worse.",
"status": 200,
"message": null
}
```

### Parameters

| name | type | default | description |
| --------- | ------- | --------- | -------------------------------------------------------- |
| quantity | number | 1 | Number of quotes to return |
| minLength | number | undefined | Minimum length of the quotes to return |
| maxLength | number | undefined | Maximum length of the quotes to return |
| unique | boolean | false | Whether the returned quotes (if multiple) must be unique |

```
# example usage
curl 'https://api.johnmulapi.givensuman.com/?quantity=5&unique=true&maxLength=75'
```

### Can I use this in a project?

Please do. Let me know how it goes.


John Mulaney's Head

##### Shamelessly inspired by [kanye.rest](https://kanye.rest/)