Wattpad API endpoint
Returns Wattpad's story categories (Romance, Fantasy, Fanfiction, Werewolf, ...) with id, name and English name. These ids are the values the category parameter of wattpad-search takes and the values in every story's category_ids. The list is read live from Wattpad.
/wattpad/categoriesReturns Wattpad's story categories. The id values are what the category parameter of wattpad-search takes, and what each story's category_ids contains.
This endpoint takes no parameters. The list is read live from Wattpad (22 categories at the time of writing), sorted by id.
Example response (long values and lists shortened):
{
"code": 200,
"msg": "OK",
"data": {
"categories": [
{
"id": 1,
"name": "Teen Fiction",
"name_english": "Teen Fiction"
},
{
"id": 2,
"name": "Poetry",
"name_english": "Poetry"
},
{
"id": 3,
"name": "Fantasy",
"name_english": "Fantasy"
},
{
"id": 4,
"name": "Romance",
"name_english": "Romance"
}
]
}
}
| 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/categories" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"categories": [
{
"id": 1,
"name": "Teen Fiction",
"name_english": "Teen Fiction"
},
{
"id": 2,
"name": "Poetry",
"name_english": "Poetry"
},
{
"id": 3,
"name": "Fantasy",
"name_english": "Fantasy"
},
{
"id": 4,
"name": "Romance",
"name_english": "Romance"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/wattpad.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | wattpad.CategoriesResponse | No | ||||
| data.categories | array | No | ||||
| data.categories[].id | integer | No | ||||
| data.categories[].name | string | No | ||||
| data.categories[].name_english | 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/categories" \
-H "x-api-key: $CRAWLORA_API_KEY"