Skip to content

GET https://api.trakt.tv/users/me/stats returns 404 error #843

Description

@superiliya

`stats_url = "https://api.trakt.tv/users/me/stats"
stats_res = requests.get(stats_url, headers=TRAKT_HEADERS)

TRAKT_HEADERS = {
"Content-Type": "application/json",
"trakt-api-version": "2",
"trakt-api-key": CLIENT_ID,
"Authorization": f"Bearer {ACCESS_TOKEN}",
}`

Unfortunately after this code worked for a long time with no issues, now i get a 404 error contstantly

Status: 404 Not Found
URL: https://api.trakt.tv/users/me/stats
Headers: {'Date': 'Fri, 10 Jul 2026 14:13:49 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '0', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'Cache-Control': 'private, no-cache, no-store, must-revalidate', 'Vary': 'Origin, accept-encoding', 'Access-Control-Expose-Headers': 'X-Pagination-Page,X-Pagination-Page-Count,X-Pagination-Limit,X-Pagination-Item-Count,X-Trending-User-Count,X-Start-Date,X-End-Date,X-Sort-By,X-Sort-How,X-Private-User,X-Ratelimit,Retry-After,X-Upgrade-URL,X-Applied-Sort-By,X-Applied-Sort-How,Cache-Control,Pragma,Expires', 'Cache-Tag': 'user,user_stats,owner_id:1296695', 'Cf-Placement': 'remote-ORD', 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'Speculation-Rules': '"/cdn-cgi/speculation"', 'Server': 'cloudflare', 'CF-RAY': 'a1902bd19d6154b5-TLV'}
Content: ''

Would love youe assistance
Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions