AppleBooks API endpoint
Returns audiobook metadata from Apple Books, including narrator, duration, audio preview, and a cross-link to the ebook edition (when one exists).
/apple-books/audiobook/{id}MCP tool: apple_books_audiobook
Path parameters:
id: required. Apple Books numeric audiobook ID.Query parameters:
country: optional. Two-letter storefront country code, default us.lang: optional. Result language tag, e.g. en-us.| Field | In the sample | Value in the sample |
|---|---|---|
| id | Has a value | |
| name | Has a value | “Harry Potter and the Sorcerer's Stone” |
| url | Has a value | books.apple.com |
| artist_id | Has a value | |
| artist_name | Has a value | “J.K. Rowling” |
| artist_url | Has a value | books.apple.com |
| description | Has a value | 1,022 characters |
| artwork_url | Has a value | is1-ssl.mzstatic.com |
| genres | Has a value | 2 entries |
| narrator | Has a value | “Jim Dale” |
| duration_seconds | Has a value | 29,898 |
| preview_url | Has a value | audio-ssl.itunes.apple.com |
| provider | Has a value | “Pottermore Publishing” |
| release_date | Has a value | 2015-11-20 |
| price | Has a value | 25.99 |
| currency | Has a value | “USD” |
| free | Has a value | false |
| rating | Has a value | 4.4 |
| rating_count | Has a value | 10,844 |
| rating_histogram | Has a value | |
| series_id | Has a value | |
| series_name | Has a value | “The Harry Potter Series” |
| book_id | Has a value |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id (path) | string | Yes | Apple Books numeric audiobook ID | 1442174040 | |
| country | string | No | Two-letter storefront country code | us | |
| lang | string | No | Result language tag | en-us | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/apple-books/audiobook/1442174040?country=us&lang=en" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"id": 1442174040,
"name": "Harry Potter and the Sorcerer's Stone",
"url": "https://books.apple.com/us/audiobook/harry-potter-and-the-sorcerers-stone/id1442174040",
"artist_id": 79595314,
"artist_name": "J.K. Rowling",
"genres": [
"Kids & Young Adults",
"Audiobooks"
],
"narrator": "Jim Dale",
"duration_seconds": 29898,
"preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview.../sample.m4a",
"provider": "Pottermore Publishing",
"release_date": "2015-11-20T08:00:00Z",
"price": 25.99,
"currency": "USD",
"free": false,
"rating": 4.5,
"rating_count": 10639,
"rating_histogram": {
"1": 695,
"2": 421,
"3": 484,
"4": 800,
"5": 8239
},
"series_id": 6442645726,
"series_name": "The Harry Potter Series",
"book_id": 1037193578
}
}Request schema
No body schema
Response schema
#/definitions/applebooks.audiobookResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | applebooks.Audiobook | No | ||||
| data.artist_id | integer | No | Apple Books id of the author. | |||
| data.artist_name | string | No | Name of the author as Apple Books lists it. | |||
| data.artist_url | string | No | Apple Books page URL of the author. | |||
| data.artwork_url | string | No | URL of the audiobook cover artwork. | |||
| data.book_id | integer | No | Apple Books id of the matching ebook edition, when one exists. | |||
| data.currency | string | No | Currency code of `price`, such as `USD`. | |||
| data.description | string | No | Audiobook description as shown on Apple Books. | |||
| data.duration_seconds | integer | No | Length of the audiobook, in seconds. | |||
| data.free | boolean | No | Whether the audiobook is free, meaning its price is 0. | |||
| data.genres | array | No | Genres Apple Books files the audiobook under. | |||
| data.id | integer | No | Apple Books audiobook id. | |||
| data.name | string | No | Title of the audiobook as Apple Books shows it. | |||
| data.narrator | string | No | Name of the narrator. | |||
| data.preview_url | string | No | URL of an audio preview sample. | |||
| data.price | number | No | Audiobook price in the currency given by `currency`. | |||
| data.provider | string | No | Publisher or provider Apple Books credits for the audiobook. | |||
| data.rating | number | No | Average customer rating of the audiobook. | |||
| data.rating_count | integer | No | Number of customer ratings the audiobook has received. | |||
| data.rating_histogram | object | No | Number of ratings for each star value, keyed `1` to `5`. | |||
| data.release_date | string | No | Release date of the audiobook, in ISO 8601 format. | |||
| data.series_id | integer | No | Apple Books id of the series the audiobook belongs to. | |||
| data.series_name | string | No | Name of the series the audiobook belongs to. | |||
| data.url | string | No | Apple Books page URL of the audiobook. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid parameters | #/definitions/app.Response |
| 404 | Audiobook not found | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/apple-books/audiobook/1442174040?country=us&lang=en" \
-H "x-api-key: $CRAWLORA_API_KEY"