immich/open-api/typescript-sdk
2025-10-24 14:41:34 -04:00
..
src feat(web): add search filter for camera lens model. (#21792) 2025-10-24 14:41:34 -04:00
.npmignore
.nvmrc chore(deps): update node.js to v22.20.0 (#22496) 2025-10-02 09:17:40 +00:00
package.json chore(deps): update dependency @types/node to ^22.18.10 (#23112) 2025-10-21 11:31:22 +00:00
README.md
tsconfig.json

@immich/sdk

A TypeScript SDK for interfacing with the Immich API.

Install

npm i --save @immich/sdk

Usage

For a more detailed example, check out the @immich/cli.

import { getAllAlbums, getMyUser, init } from "@immich/sdk";

const API_KEY = "<API_KEY>"; // process.env.IMMICH_API_KEY

init({ baseUrl: "https://demo.immich.app/api", apiKey: API_KEY });

const user = await getMyUser();
const albums = await getAllAlbums({});

console.log({ user, albums });