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

# Get user by ID

Retrieves detailed information about a specific user

# 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": {
    "/users/{id}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get user by ID",
        "description": "Retrieves detailed information about a specific user",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Spotify User ID"
          }
        ],
        "responses": {
          "200": {
            "description": "User found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          },
          "404": {
            "description": "User not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "User": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Spotify User ID"
          },
          "uri": {
            "type": "string",
            "description": "Spotify User URI"
          },
          "name": {
            "type": "string",
            "description": "User display name"
          },
          "images": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "metadata": {
            "type": "object",
            "properties": {
              "verified": {
                "type": "boolean",
                "description": "Whether the user is verified"
              },
              "private": {
                "type": "boolean",
                "description": "Whether the user profile is private"
              },
              "showFollows": {
                "type": "boolean",
                "description": "Whether the user shows follow counts"
              },
              "allowFollows": {
                "type": "boolean",
                "description": "Whether the user allows followers"
              },
              "reportAbuseDisabled": {
                "type": "boolean",
                "description": "Whether abuse reporting is disabled"
              },
              "color": {
                "type": "integer",
                "description": "User's profile color"
              },
              "hasSpotifyName": {
                "type": "boolean",
                "description": "Whether user has a Spotify name"
              },
              "hasSpotifyImage": {
                "type": "boolean",
                "description": "Whether user has a Spotify image"
              }
            }
          },
          "statistics": {
            "type": "object",
            "properties": {
              "followers": {
                "type": "integer",
                "description": "Number of followers"
              },
              "following": {
                "type": "integer",
                "description": "Number of users being followed"
              },
              "playlists": {
                "type": "integer",
                "description": "Number of public playlists"
              }
            }
          },
          "recentArtists": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Recently played artists"
          },
          "playlists": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "description": "Total number of public playlists"
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "uri": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "statistics": {
                      "type": "object",
                      "properties": {
                        "followers": {
                          "type": "integer"
                        }
                      }
                    },
                    "images": {
                      "type": "object",
                      "properties": {
                        "sources": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "uri": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "UserResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/User"
          },
          "type": {
            "type": "string",
            "enum": [
              "user"
            ]
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "HTTP status code"
          }
        }
      }
    }
  }
}
```