API Documentation (beta)
The Wattpad API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and to use HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which can be understood by off-the-shelf HTTP clients. JSON will be returned in all responses from the API, including errors.
The API is still in beta and all endpoints are subject to change, however we will make every effort not to change them often. Follow our blog to be notified of changes.
Making API Requests for Public Data
Wattpad publishes several APIs for consuming public data. Your application must authenticate to the Wattpad API by providing the API key in the HTTP Basic Auth header. All API requests must be made over HTTPS; calls made over plain HTTP will fail.
Authorization: Basic iYiiyo4uj7y0rheqf9fwfeert343regthrthwaweofz
Making API Requests for Wattpad User Data
After your application obtains an access token, you can use the token to make calls to a Wattpad API on behalf of a user. To do this, include the access token in a request to the API by including an Authorization: Bearer HTTP header and your application's API key as the Api-Key HTTP header.
Authorization: Bearer l6EFerfiiqwraGWiutxh61O7EZuyp80YJJuc55Dcjdo_EPEUoadwrfACmJPLoZQ8-QcsFWmw