Ecosyste.ms: Awesome
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: about 4 hours ago
JSON representation
A restful api that returns random Chandler Bing's sarcastic comments.
- Host: GitHub
- URL: https://github.com/harshitrv/sarcasm-api
- Owner: HarshitRV
- Created: 2022-01-03T06:42:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T09:37:52.000Z (9 months ago)
- Last Synced: 2024-02-24T10:30:40.833Z (9 months ago)
- Topics: api, rest-api
- Language: JavaScript
- Homepage: https://sarcasmapi.netlify.app/
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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)