Library

Follow Artists or Users

PUT
/me/following

Add the current user as a follower of one or more artists or other Spotify users.

Authorization

oauth_2_0 user-follow-modify
AuthorizationBearer <token>

Spotify supports OAuth 2.0 for authenticating all API requests.

In: header

Scope: user-follow-modify

Query Parameters

type*Item Type

The ID type.

Value in

  • "artist"
  • "user"
ids*Spotify IDs

A comma-separated list of the artist or the user Spotify IDs. A maximum of 50 IDs can be sent in one request.

Request Body

application/json

ids*array<string>

A JSON array of the artist or user Spotify IDs. For example: {ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

[key: string]?any

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/me/following?type=artist&ids=2CIMQHirSU0MQqyYHq0eOx%2C57dN52uHvrHOxijzpIgu3E%2C1vCWHaC5f2uS3yhpwWbIA6" \  -H "Content-Type: application/json" \  -d '{    "ids": [      "string"    ]  }'
Empty