Warning: The GitBook API has not been released and is meant to change.
All API access is over HTTPS, and accessed through www.gitbook.com/api/ . All data is sent and received as JSON.
There is currently only one way to authenticate through GitBook API. Requests that require authentication will return 404 Not Found, instead of 403 Forbidden, in some places. This is to prevent the accidental leakage of private books to unauthorized users.
$ curl -u "username:token" https://www.gitbook.com/api/books/
Error are returned as JSON:
{
"error": "Not found",
"code": 404
}
| Name | Type | Description |
|---|---|---|
| skip | int | Number of items to skip |
| limit | int | Number of items to list |
{
list: [],
skip: 0,
limit: 100,
total: 0
}