# @eventer/api-client

> API client for eventer

Latest version **2.2.2** (published 2026-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @eventer/api-client
pnpm add @eventer/api-client
yarn add @eventer/api-client
bun add @eventer/api-client
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.2.2 |
| Published | 2026-03-19 |
| First published | 2021-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 63.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dast00, scthi |
| Keywords | eventer, api, api-client |

## Links

- npm: https://www.npmjs.com/package/@eventer/api-client
- Repository: https://github.com/eventer-org/eventer-api-client
- Homepage: https://github.com/eventer-org/eventer-api-client#readme
- Issues: https://github.com/eventer-org/eventer-api-client/issues
- npm.io page: https://npm.io/package/@eventer/api-client

## Dependencies (1)

- [dataloader](https://npm.io/package/dataloader.md) ^2.2.3

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 2.2.2 (latest) — 2026-03-19
- 2.2.1 — 2026-03-18
- 2.2.0 — 2026-03-18
- 2.1.0 — 2024-08-02
- 2.0.0 — 2024-06-04
- 1.9.1 — 2024-05-29
- 1.9.0 — 2024-05-28
- 1.8.3 — 2024-05-24
- 1.8.2 — 2024-05-24
- 1.8.1 — 2024-05-24
- 1.8.0 — 2024-05-24
- 1.7.4 — 2024-03-25
- 1.7.3 — 2024-01-31
- 1.7.2 — 2024-01-12
- 1.7.1 — 2024-01-11
- … 15 more at https://npm.io/package/@eventer/api-client/versions

## README

[![CI](https://github.com/eventer-org/eventer-api-client/actions/workflows/ci.yml/badge.svg)](https://github.com/eventer-org/eventer-api-client/actions/workflows/ci.yml)

# @eventer/api-client

TypeScript client for the eventer API — a platform for open event and cultural data built on sempods.

Each organizer maintains a semantic pod with their event data. This client lets you query events
from pods and look up venue information.

## Install

```
npm install @eventer/api-client
```

## Quick start

```typescript
import { eventerApiClient } from '@eventer/api-client'

const response = await eventerApiClient.fetchPodEvents({
  pod: 'aaltra',
  startDateMin: new Date(),
  sort: 'startDate_asc',
  expand: ['image'],
})
response.events.forEach((event) => {
  console.log(`${event.name()} starts at ${event.startDate()}`)
})
```

## Examples

Fetch events modified since a specific date (useful for synchronization):

```typescript
const response = await eventerApiClient.fetchPodEvents({
  pod: 'aaltra',
  dateModifiedMin: new Date('2026-01-01'),
  sort: 'dateModified_desc',
})
```

Paginate through all events using `next`:

```typescript
let response = await eventerApiClient.fetchPodEvents({
  pod: 'aaltra',
  limit: 10,
})
while (response.graphResponse.next) {
  response = await eventerApiClient.fetchNextPodEvents(response.graphResponse.next)
}
```

Look up a place by its Google Place ID:

```typescript
const place = await eventerApiClient.getPlace('ChIJqz9jQFxGp0cRiaEOhbcVxSM')
console.log(`${place.name} — ${place.google_maps_url}`)
```

## References

- [API Documentation](https://apidoc.eventer.app/) — OpenAPI specification
- [eventer-openapi](https://github.com/eventer-org/eventer-openapi) — the spec source

## Release

```
npm version patch  # or minor/major
npm publish
```

---
_Source: https://npm.io/package/@eventer/api-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
