Skip to content

Issue with User.get_plan_info: 404 /ca-en/api/zine/v2/plan/ not Found #60

@simonebartolibp

Description

@simonebartolibp

Hey!

Since yesterday (10 Feb 2026), fetching the user plan info has been consistently failing with a 404.

The hardcoded endpoint
https://www.spotify.com/ca-en/api/account/v2/plan/
still exists and requires auth, but now always responds with:

{
  "timestamp": "<current_timestamp>",
  "status": 404,
  "error": "Not Found",
  "path": "/ca-en/api/zine/v2/plan/"
}

So it looks like the backend route may have changed or been removed.

I’m not sure if there’s another simple REST endpoint for this, but if not, it might be worth switching to the same GraphQL call the web player uses. For reference, this is the curl request:

curl 'https://api-partner.spotify.com/pathfinder/v2/query' \
  -H 'accept: application/json' \
  -H 'app-platform: WebPlayer' \
  -H 'authorization: Bearer <BaseClient.access_token>' \
  -H 'client-token: <BaseClient.client_token>' \
  -H 'content-type: application/json;charset=UTF-8' \
  -H 'spotify-app-version: 1.2.84.154.g23b98c02' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36' \
  --data-raw '{"variables":{},"operationName":"accountAttributes","extensions":{"persistedQuery":{"version":1,"sha256Hash":"<BaseClient..part_hash(\"accountAttributes\")>"}}}'

And the response includes the plan details inside account attributes, for example:

{
  "data": {
    "me": {
      "account": {
        "attributes": {
          "catalogue": "premium",
          "onDemand": true,
          "ads": false
        },
        "country": "GB",
        "product": "PREMIUM"
      }
    }
  }
}

Happy to open a PR to switch over to this approach if that sounds good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions