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

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: 3 months 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/api/v1/sarcasm/all](https://sarcasmapi.onrender.com/api/v1/sarcasm/all)