---
updatedAt: 2025-03-13T02:13:58.000Z
agentTools:
  projectIndex: https://spotscraper.readme.io/llms.txt
---

# Get album by ID

Retrieves detailed information about a specific album

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "SpotScraper API",
    "description": "API for retrieving Spotify data including albums, artists, playlists, tracks, podcasts, and users",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.spotscraper.com/v1",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/albums/{id}": {
      "get": {
        "tags": [
          "Albums"
        ],
        "summary": "Get album by ID",
        "description": "Retrieves detailed information about a specific album",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Spotify Album ID"
          }
        ],
        "responses": {
          "200": {
            "description": "Album found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlbumResponse"
                }
              }
            }
          },
          "404": {
            "description": "Album not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "Album": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Spotify Album ID"
          },
          "uri": {
            "type": "string",
            "description": "Spotify Album URI"
          },
          "name": {
            "type": "string",
            "description": "Album name"
          },
          "popularity": {
            "type": "integer",
            "description": "Album popularity (0-100)"
          },
          "upc": {
            "type": "string",
            "nullable": true,
            "description": "Universal Product Code (UPC)"
          },
          "ean": {
            "type": "string",
            "nullable": true,
            "description": "European Article Number (EAN)"
          },
          "images": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "width": {
                      "type": "integer"
                    },
                    "height": {
                      "type": "integer"
                    }
                  }
                }
              },
              "hex": {
                "type": "string",
                "description": "Extracted color hex value"
              }
            }
          },
          "metadata": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "description": "Record label"
              },
              "copyright": {
                "type": "string",
                "description": "Copyright information"
              },
              "releasedOn": {
                "type": "string",
                "format": "date-time",
                "description": "Release date"
              },
              "discCount": {
                "type": "integer",
                "description": "Number of discs"
              }
            }
          },
          "artists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "uri": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "images": {
                  "type": "object",
                  "properties": {
                    "sources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "width": {
                            "type": "integer"
                          },
                          "height": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "tracks": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "description": "Total number of tracks"
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "uri": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "durationMs": {
                          "type": "integer"
                        },
                        "trackNumber": {
                          "type": "integer"
                        }
                      }
                    },
                    "statistics": {
                      "type": "object",
                      "properties": {
                        "playCount": {
                          "type": "integer"
                        }
                      }
                    },
                    "artists": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "uri": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "images": {
                            "type": "object",
                            "properties": {
                              "sources": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "url": {
                                      "type": "string"
                                    },
                                    "width": {
                                      "type": "integer"
                                    },
                                    "height": {
                                      "type": "integer"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "AlbumResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Album"
          },
          "type": {
            "type": "string",
            "enum": [
              "album"
            ]
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "HTTP status code"
          }
        }
      }
    }
  }
}
```