Skip to content

Reference

Auto-generated API documentation for every public class and function exposed by musickit-api-mock and musickit-api-mock-playwright.

Page Covers
MusicKitApiMock The main mock class — entry point of the library.
mock.data Shared resource dataclasses (songs, albums, library items, personal recommendations, ...) and the lookup context.
mock.endpoints HTTP response variants for every intercepted endpoint (success / error variants, callback contexts).
mock.browser In-page shim state (authorize response variants, key-system enum).
Playwright adapter intercept / intercept_async entry points.

For task-oriented snippets ("how do I simulate X?"), see Recipes. For first-time setup, see the Guide.