Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/harshitrv/sarcasm-api

A restful api that returns random Chandler Bing's sarcastic comments.
https://github.com/harshitrv/sarcasm-api

api rest-api

Last synced: about 4 hours ago
JSON representation

A restful api that returns random Chandler Bing's sarcastic comments.

Awesome Lists containing this project

README

        

# sarcasm-api

## A REST API that returns random Chandler Bing's sarcastic comment.

## Link

### Get random sarcastic comment
[https://sarcasmapi.onrender.com](https://sarcasmapi.onrender.com)
```json
{
"sarcasm": "I'm not great at the advice. Can I interest you in a sarcastic comment."
}
```

### Using fetch
```js
const response = await fetch('https://sarcasmapi.onrender.com');
const data = await response.json();
console.log(data.sarcasm);
```

### Get all sarcastic comments
[https://sarcasmapi.onrender.com/all](https://sarcasmapi.onrender.com/all)