Wattpad Developer Developer Portal X

Log in to Your Wattpad Account






Don't have an account? Sign Up!

API Documentation (beta)

Introduction

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.

Example:

GET /stories? HTTP/1.1
Authorization: Basic iYiiyo4uj7y0rheqf9fwfeert343regthrthwaweofz
Host: api.wattpad.com

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.

Example:

GET /auth/loginStatus HTTP/1.1
Authorization: Bearer l6EFerfiiqwraGWiutxh61O7EZuyp80YJJuc55Dcjdo_EPEUoadwrfACmJPLoZQ8-QcsFWmw
Api-Key: iYiiyo4uj7y0rheqf9fwfeert343regthrthwaweofz
Host: api.wattpad.com

API Documentation