datasets_apple_books_facets
Return counts for a selected Apple Books dataset facet, honoring the same filters as datasets_apple_books_search. Facets are kind, genres, artist_name, publisher, series_name, narrator, provider, currency, discovery_country, discovery_source, and free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"facet": "<facet>"
},
"name": "datasets_apple_books_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional full-text query over title/name, artist, series, narrator and description, max 256 characters. | |
| free | No | Optional free-title filter. | |
| kind | No | Optional resource kind. Allowed values: book, audiobook, author, series, audiobook_series. | |
| page | No | 1-based page number, default 1; page times page_size must not exceed 10000. | |
| sort | No | Sort order: rating_count_desc, rating_desc, release_date_desc, name_asc, crawled_at_desc. Defaults to rating_count_desc without q and relevance with q. | |
| facet | Yes | Required facet. Allowed values: kind, genres, artist_name, publisher, series_name, narrator, provider, currency, discovery_country, discovery_source, free. | |
| genre | No | Optional exact genre label as stored on Apple Books records, max 128 characters. Use the genres facet to discover labels. | |
| artist | No | Optional exact artist/author name, max 128 characters. | |
| series | No | Optional exact series name, max 128 characters. | |
| country | No | Optional discovery storefront country code, max 128 characters. | |
| currency | No | Optional exact currency code, max 128 characters. | |
| narrator | No | Optional exact audiobook narrator, max 128 characters. | |
| provider | No | Optional exact audiobook provider, max 128 characters. | |
| artist_id | No | Optional exact numeric Apple Books artist ID, max 128 characters. | |
| page_size | No | Page size, default 20, max 100; page times page_size must not exceed 10000. | |
| publisher | No | Optional exact publisher, max 128 characters. | |
| min_rating | No | Optional minimum average rating from 0 through 5. | |
| discovery_source | No | Optional exact crawl discovery source, max 128 characters. | |
| min_rating_count | No | Optional minimum number of ratings, 0 or greater. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |