Part of the Jellyfin Project
This library is meant to help clients written in JavaScript or TypeScript interact with Jellyfin's REST API. It's generated automatically using OpenAPITools generator and it's fully typed for TypeScript
This library depends on Axios.
You can also use this library as a development dependency just for the
TypeScript typings. Types are located under the models
subfolder:
import type TYPE_NAME from "@jellyfin/client-axios/models";
Usage examples can be found here.
This API client is built automatically every midnight for the stable and unstable API releases. You can build it yourself using Docker:
docker run --rm openapitools/openapi-generator-cli generate -i https://api.jellyfin.org/openapi/jellyfin-openapi-stable.json
-g typescript-axios --additional-properties=npmName=@jellyfin/client-axios
--additional-properties=supportsES6=true
--additional-properties=useSingleRequestParameter=true
--additional-properties=withSeparateModelsAndApi=true
--additional-properties=modelPackage=models
--additional-properties=apiPackage=api
--enable-post-process-file
-o /output/dir
docker run --rm openapitools/openapi-generator-cli generate -i https://api.jellyfin.org/openapi/jellyfin-openapi-unstable.json
-g typescript-axios --additional-properties=npmName=@jellyfin/client-axios
--additional-properties=supportsES6=true
--additional-properties=useSingleRequestParameter=true
--additional-properties=withSeparateModelsAndApi=true
--additional-properties=modelPackage=models
--additional-properties=apiPackage=api
--enable-post-process-file
-o /output/dir
If you want to compile the TypeScript sources to JavaScript, check the README
of the generated
output, as it will contain up to date instructions of how to do it yourself.
We use this API client at Jellyfin Vue and Jellyfin Chromecast