# Achievements

**URL:** https://heroiclabs.com/docs/hiro/typescript/achievements/
**Keywords:** achievements, hiro
**Categories:** hiro, typescript, achievements

---


# Achievements

Read more about the Achievements system in Hiro [here](../../concepts/achievements/).

## Get all achievements

Get all achievements with progress accumulated by the player.

```typescript
const achievementList = await hiroClient.achievementsGet(session);
console.log(achievementList);
```
## Get active achievements

Filter the returned list to show only achievements in an active time window.

```typescript
const achievementList = await hiroClient.achievementsGet(session);
const activeAchievements = Object.values(achievementList.achievements ?? {})
    .filter(a => a.is_active);

console.log(activeAchievements);
```

## Claim achievements

Claim one or more achievements which have completed their progress.

```typescript
const request = new AchievementsClaimRequest();
request.ids = ["achievement_1", "achievement_2"];
request.claim_total_reward = true;

const updateAck = await hiroClient.achievementsClaim(session, request);
console.log(updateAck);
```


## Update achievement progress

Update one or more achievements with the same progress amount.

```typescript
const request = new AchievementsUpdateRequest();
request.ids = ["achievement_1", "achievement_2"];
request.amount = 1;

const achievementsAck = await hiroClient.achievementsUpdate(session, request);
console.log(achievementsAck);
```