Flags
Simple Usage
This endpoint returns a list / an array of all available blacklist flags
index.js
await JokeClient.flags();
Parameters
Parameters supported on this method
format
- Type:
String
- Default:
json
- Options:
json
,xml
,yaml
andtxt
Response Formats (or just "Formats") are a way to get your data in a different file format. Maybe your environment or language doesn't support JSON natively. In that case, JokeAPI is able to convert the JSON-formatted joke to a different format for you.
index.js
await JokeClient.info({
format: 'xml'
})
lang
- Type:
String
- Default:
Undefined
- Supported system languages:
cs
,de
,en
,it
andru
- Supported joke languages:
cs
,de
,en
,es
,fr
andpt
This parameter can be used on every endpoint, but it is possible that no translations or jokes exist yet for your language.
index.js
await JokeClient.info({
lang: 'en'
})