# itch.io

> Read itch.io games and download keys, and organize private or public collections.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/itch-io

## Actions

### Create collection

Create collection.

**Inputs**

- Title (`title`, text, required): Name of the collection.
- Private (`private`, true/false): Whether only you can see this collection.
- Description (`description`, text): Description shown on the collection page.
- Layout (`layout`, text): How projects appear on the page. One of: `grid`, `list`.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "collection": {
      "created_at": "example",
      "description": "example",
      "games_count": 1,
      "id": 1,
      "layout": "example",
      "private": true,
      "title": "example",
      "updated_at": "example",
      "url": "example"
    }
  }
}
```

### Delete collection

Delete collection.

**Inputs**

- Collection (`collection_id`, number, required): Collection from your itch.io account.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Get API key permissions

Get API key permissions.

**Inputs**: None.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "scopes": [
      "example"
    ],
    "type": "example"
  }
}
```

### Get collection

Get collection.

**Inputs**

- Collection (`collection_id`, number, required): Collection from your itch.io account.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "collection": {
      "created_at": "example",
      "description": "example",
      "games_count": 1,
      "id": 1,
      "layout": "example",
      "private": true,
      "title": "example",
      "updated_at": "example",
      "url": "example"
    }
  }
}
```

### Get your itch.io profile

Get your itch.io profile.

**Inputs**: None.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "user": {
      "display_name": "example",
      "id": 1,
      "url": "example",
      "username": "example"
    }
  }
}
```

### List claimed game rewards

List claimed game rewards.

**Inputs**

- Game (`game_id`, number, required): Game you own or can edit.
- Page (`page`, number): Page number to return. From 1 to 10000.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "claimed_rewards": [
      {}
    ],
    "page": 1,
    "per_page": 1
  }
}
```

### List games in collection

List games in collection.

**Inputs**

- Collection (`collection_id`, number, required): Collection from your itch.io account.
- Page (`page`, number): Page number to return. From 1 to 10000.
- Per page (`per_page`, number): Maximum number of results on the page. From 1 to 500.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "collection_games": [
      {
        "blurb": "example",
        "game": {
          "created_at": "example",
          "id": 1,
          "published": true,
          "published_at": "example",
          "title": "example",
          "url": "example"
        },
        "game_id": 1,
        "position": 1
      }
    ],
    "page": 1,
    "per_page": 1
  }
}
```

### List your itch.io collections

List your itch.io collections.

**Inputs**: None.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "collections": [
      {
        "created_at": "example",
        "description": "example",
        "games_count": 1,
        "id": 1,
        "layout": "example",
        "private": true,
        "title": "example",
        "updated_at": "example",
        "url": "example"
      }
    ]
  }
}
```

### List your itch.io projects

List your itch.io projects.

**Inputs**: None.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "games": [
      {
        "created_at": "example",
        "id": 1,
        "published": true,
        "published_at": "example",
        "title": "example",
        "url": "example"
      }
    ]
  }
}
```

### List your owned download keys

List your owned download keys.

**Inputs**

- Page (`page`, number): Page number to return. From 1 to 10000.
- Per page (`per_page`, number): Maximum number of results on the page. From 1 to 500.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "owned_keys": [
      {}
    ],
    "page": 1,
    "per_page": 1
  }
}
```

### Update collection

Update collection.

**Inputs**

- Collection (`collection_id`, number, required): Collection from your itch.io account.
- Title (`title`, text): New name for the collection.
- Description (`description`, text): New collection description.
- Private (`private`, true/false): Whether only you can see the collection.
- Layout (`layout`, text): How projects appear on the page. One of: `grid`, `list`.
- On profile (`on_profile`, true/false): Whether to show the collection on your profile.

**Outputs**

- `data` (object): The response from itch.io.

**Example output**

```json
{
  "data": {
    "collection": {
      "created_at": "example",
      "description": "example",
      "games_count": 1,
      "id": 1,
      "layout": "example",
      "private": true,
      "title": "example",
      "updated_at": "example",
      "url": "example"
    }
  }
}
```
