[GH-ISSUE #61] Issue with User.get_plan_info: 404 /ca-en/api/zine/v2/plan/ not Found #38

Closed
opened 2026-02-27 19:06:34 +03:00 by kerem · 0 comments
Owner

Originally created by @simonebartoli on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/61

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.

-- sorry for the duplication of issues, opened initially with the wrong account :(

Originally created by @simonebartoli on GitHub (Feb 11, 2026). Original GitHub issue: https://github.com/Aran404/SpotAPI/issues/61 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: ```json { "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: ```bash 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: ```json { "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. -- sorry for the duplication of issues, opened initially with the wrong account :(
kerem closed this issue 2026-02-27 19:06:34 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SpotAPI#38
No description provided.