Wattpad API endpoint
Returns one Wattpad chapter's metadata: id, title, link, word count, reads, votes, comments, length, dates and the story it belongs to (id and title). part_id is the numeric chapter id from wattpad-story-parts. A chapter that does not exist returns not found. Chapter text is never returned.
/wattpad/partpart_id is required: the numeric chapter id, from the id of an entry in wattpad-story-parts.
Notable response behavior:
reads, votes and comments are the chapter's own counters; word_count and length describe its size.story_id and story_title name the story the chapter belongs to; pass story_id to wattpad-story.404; a malformed part_id returns 400.Example response (long values and lists shortened):
{
"code": 200,
"msg": "OK",
"data": {
"part": {
"id": "1353317758",
"title": "CHAPTER 0",
"url": "https://www.wattpad.com/1353317758-lose-you-to-love-me-mafia-romance-complete-chapter",
"word_count": 1923,
"reads": 139834,
"votes": 1558,
"comments": 540,
"length": 9613,
"draft": false,
"created_at": "2023-06-16T20:49:32Z",
"modified_at": "2024-07-20T09:43:51Z",
"story_id": "344352588",
"story_title": "Lose You To Love Me (Mafia Romance-Complete)"
}
}
}
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| part_id | string | Yes | Numeric chapter id from the id field of wattpad-story-parts | 1353317758 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/wattpad/part?part_id=1353317758" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"part": {
"id": "1353317758",
"title": "CHAPTER 0",
"url": "https://www.wattpad.com/1353317758-lose-you-to-love-me-mafia-romance-complete-chapter",
"word_count": 1923,
"reads": 139834,
"votes": 1558,
"comments": 540,
"length": 9613,
"draft": false,
"created_at": "2023-06-16T20:49:32Z",
"modified_at": "2024-07-20T09:43:51Z",
"story_id": "344352588",
"story_title": "Lose You To Love Me (Mafia Romance-Complete)"
}
}
}Request schema
No body schema
Response schema
#/definitions/wattpad.partResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | wattpad.PartResponse | No | ||||
| data.part | wattpad.PartDetail | No | ||||
| data.part.comments | integer | No | ||||
| data.part.created_at | string | No | ||||
| data.part.draft | boolean | No | ||||
| data.part.id | string | No | ||||
| data.part.length | integer | No | ||||
| data.part.modified_at | string | No | ||||
| data.part.reads | integer | No | ||||
| data.part.story_id | string | No | ||||
| data.part.story_title | string | No | ||||
| data.part.title | string | No | ||||
| data.part.url | string | No | ||||
| data.part.votes | integer | No | ||||
| data.part.word_count | integer | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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/part?part_id=1353317758" \
-H "x-api-key: $CRAWLORA_API_KEY"