Wattpad API endpoint
Returns the story languages Wattpad's search can filter by, each with its numeric id and native-script name (50 at the time of writing). These ids are the values the language parameter of wattpad-search takes.
/wattpad/languagesReturns the story languages wattpad-search can filter by. The id values are what its language parameter takes: 1 (English), 2 (Français), 3 (Italiano), 4 (Deutsch), 5 (Español), 6 (Português), 7 (Русский), 8 (繁體中文), 9 (日本語), 10 (한국어), 11 (Other), 12 (简体中文), 13 (Nederlands), 14 (Polski), 15 (Română), 16 (العربية), 17 (עברית), 18 (Filipino), 19 (Tiếng Việt), 20 (Bahasa Indonesia), 21 (हिन्दी), 22 (Bahasa Melayu), 23 (Türkçe), 24 (Česky), 25 (മലയാളം), 26 (Svenska), 27 (Norsk), 28 (Magyar), 29 (Dansk), 30 (ελληνικά), 32 (ภาษาไทย), 33 (Íslenska), 34 (Suomi), 35 (Eesti), 36 (Latviešu), 37 (Lietuvių), 38 (Català), 39 (Босански), 40 (Српски), 41 (Hrvatski), 42 (Slovenščina), 43 (Български), 44 (Slovenčina), 46 (Українська), 47 (বাংলা), 48 (اُردُو), 49 (தமிழ்), 50 (Kiswahili), 51 (Afrikaans), 53 (ગુજરાતી).
This endpoint takes no parameters.
Example response (long values and lists shortened):
{
"code": 200,
"msg": "OK",
"data": {
"languages": [
{
"id": 1,
"name": "English"
},
{
"id": 2,
"name": "Français"
},
{
"id": 3,
"name": "Italiano"
},
{
"id": 4,
"name": "Deutsch"
}
]
}
}
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/wattpad/languages" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"languages": [
{
"id": 1,
"name": "English"
},
{
"id": 2,
"name": "Français"
},
{
"id": 3,
"name": "Italiano"
},
{
"id": 4,
"name": "Deutsch"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/wattpad.languagesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | wattpad.LanguagesResponse | No | ||||
| data.languages | array | No | ||||
| data.languages[].id | integer | No | ||||
| data.languages[].name | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/wattpad/languages" \
-H "x-api-key: $CRAWLORA_API_KEY"