# Monkeytype

> Read typing results, personal bests, leaderboards and public typing statistics.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/monkeytype

## Actions

### Get configuration

Read the current public service configuration.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "admin": {
        "endpointsEnabled": false
      },
      "apeKeys": {
        "acceptKeys": false,
        "apeKeyBytes": 1,
        "apeKeySaltRounds": 1,
        "endpointsEnabled": false,
        "maxKeysPerUser": 1
      },
      "connections": {
        "enabled": false,
        "maxPerUser": 1
      },
      "dailyLeaderboards": {
        "enabled": false,
        "leaderboardExpirationTimeInDays": 1.0,
        "maxResults": 1,
        "scheduleRewardsModeRules": [],
        "topResultsToAnnounce": 1,
        "validModeRules": [],
        "xpRewardBrackets": []
      },
      "dev": {
        "responseSlowdownMs": 1
      },
      "leaderboards": {
        "minTimeTyping": 1.0,
        "weeklyXp": {}
      },
      "maintenance": false,
      "quotes": {
        "maxFavorites": 1,
        "reporting": {},
        "submissionsEnabled": false
      },
      "rateLimiting": {
        "badAuthentication": {}
      },
      "results": {
        "filterPresets": {},
        "limits": {},
        "maxBatchSize": 1,
        "objectHashCheckEnabled": false,
        "savingEnabled": false
      },
      "users": {
        "autoBan": {},
        "discordIntegration": {},
        "inbox": {},
        "lastHashesCheck": {},
        "premium": {},
        "profiles": {},
        "signUp": false,
        "xp": {}
      }
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get current test activity

See recent test activity recorded for the connected account.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "lastDay": 1,
      "testsByDays": [
        1
      ]
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get my latest result

Get the most recent typing result for the connected account.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "66a6d42ac4150019a826c8aa",
      "acc": 98.0,
      "mode": "time",
      "mode2": "30",
      "timestamp": 1722217800000,
      "wpm": 92.0
    },
    "message": "Result retrieved"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get my personal bests

Read the connected account’s personal bests for a test mode.

**Inputs**

- Mode (`mode`, text, required): The mode for this request. One of: `time`, `words`, `quote`, `custom`, `zen`.
- Mode2 (`mode2`, text): The mode2 for this request.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "acc": 1.0,
      "consistency": 1.0,
      "difficulty": "normal",
      "language": "english",
      "lazyMode": false,
      "numbers": false,
      "punctuation": false,
      "raw": 1.0,
      "timestamp": 1.0,
      "wpm": 1.0
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get my result

Look up a specific saved result from the connected account.

**Inputs**

- Result ID (`result_id`, text, required): The result id for this request.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "acc": 1.0,
      "chartData": {
        "burst": [],
        "err": [],
        "wpm": []
      },
      "consistency": 1.0,
      "keyConsistency": 1.0,
      "mode": "time",
      "mode2": "example",
      "quoteLength": 1,
      "rawWpm": 1.0,
      "testDuration": 1.0,
      "timestamp": 1,
      "wpm": 1.0
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get my statistics

Get the connected account’s typing totals.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "completedTests": 1,
      "startedTests": 1,
      "timeTyping": 1.0
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get my streak

Get the connected account’s current typing streak.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "hourOffset": 1.0,
      "lastResultTimestamp": 1,
      "length": 1,
      "maxLength": 1
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get player profile

Find a public Monkeytype profile by user ID or name.

**Inputs**

- Uid or name (`uid_or_name`, text, required): The uid or name for this request.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "addedAt": 1,
      "allTimeLbs": {
        "time": {}
      },
      "banned": false,
      "discordAvatar": "example",
      "discordId": "example",
      "inventory": {
        "badges": []
      },
      "isPremium": false,
      "lbOptOut": false,
      "name": "example",
      "testActivity": {
        "lastDay": 1,
        "testsByDays": []
      },
      "uid": "example",
      "xp": 1
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get public typing statistics

Get aggregate typing activity across Monkeytype.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "testsCompleted": 1,
      "testsStarted": 1,
      "timeTyping": 1.0
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get quote submission status

Check whether community quote submissions are open.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "isEnabled": false
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get speed histogram

See the distribution of typing speeds for a language and test mode.

**Inputs**

- Language (`language`, text, required): The language for this request. One of: `english`, `english_1k`, `english_5k`, `english_10k`, `english_25k`, `english_450k`, `english_commonly_misspelled`, `english_contractions`, `english_doubleletter`, `english_shakespearean`, and 436 more.
- Mode (`mode`, text, required): The mode for this request. One of: `time`, `words`, `quote`, `custom`, `zen`.
- Mode2 (`mode2`, text, required): The mode2 for this request.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {},
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### List announcements

Get current Monkeytype announcements.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "_id": "example",
        "date": 1,
        "level": 1,
        "message": "example",
        "sticky": false
      }
    ],
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### List daily leaderboard

Get the daily typing leaderboard for a language and mode.

**Inputs**

- Language (`language`, text, required): The language for this request. One of: `english`, `english_1k`, `english_5k`, `english_10k`, `english_25k`, `english_450k`, `english_commonly_misspelled`, `english_contractions`, `english_doubleletter`, `english_shakespearean`, and 436 more.
- Mode (`mode`, text, required): The mode for this request. One of: `time`, `words`, `quote`, `custom`, `zen`.
- Mode2 (`mode2`, text, required): The mode2 for this request.
- Days before (`days_before`, number): The days before for this request. One of: `1`.
- Friends only (`friends_only`, true/false): include only users from your friends list, defaults to false.
- Page (`page`, number): The page for this request. From 0 to 9007199254740991.
- Page size (`page_size`, number): The page size for this request. From 10 to 200.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "entries": [
        {}
      ],
      "minWpm": 1.0,
      "pageSize": 1
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### List leaderboard

Get a leaderboard page for a language and test mode.

**Inputs**

- Language (`language`, text, required): The language for this request. One of: `english`, `english_1k`, `english_5k`, `english_10k`, `english_25k`, `english_450k`, `english_commonly_misspelled`, `english_contractions`, `english_doubleletter`, `english_shakespearean`, and 436 more.
- Mode (`mode`, text, required): The mode for this request. One of: `time`, `words`, `quote`, `custom`, `zen`.
- Mode2 (`mode2`, text, required): The mode2 for this request.
- Page (`page`, number): The page for this request. From 0 to 9007199254740991.
- Page size (`page_size`, number): The page size for this request. From 10 to 200.
- Friends only (`friends_only`, true/false): include only users from your friends list, defaults to false.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "entries": [
        {}
      ],
      "pageSize": 1
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### List my results

Get the connected account’s recent typing results.

**Inputs**

- Offset (`offset`, number): Offset of the item at which to begin the response. At least 0.
- Limit (`limit`, number): Limit results to the given amount. From 0 to 1000.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "_id": "66a6d42ac4150019a826c8aa",
        "acc": 98.0,
        "mode": "time",
        "mode2": "30",
        "timestamp": 1722217800000,
        "wpm": 92.0
      }
    ],
    "message": "Results retrieved"
  },
  "has_more": false,
  "next_cursor": null
}
```

### List my tags

Get the tags available for the connected account.

**Inputs**: None.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "_id": "66a6d42ac4150019a826c8aa",
        "name": "practice"
      }
    ],
    "message": "Tags retrieved"
  },
  "has_more": false,
  "next_cursor": null
}
```

### List weekly XP leaderboard

Get the leaderboard for experience earned this week.

**Inputs**

- Weeks before (`weeks_before`, number): The weeks before for this request. One of: `1`.
- Friends only (`friends_only`, true/false): include only users from your friends list, defaults to false.
- Page (`page`, number): The page for this request. From 0 to 9007199254740991.
- Page size (`page_size`, number): The page size for this request. From 10 to 200.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "data": {
      "count": 1,
      "entries": [
        {}
      ],
      "pageSize": 1
    },
    "message": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```
