Skip to content

Scraper 'item' method fails with 403 error and code 106 #78

@lucalenardi

Description

@lucalenardi

Hello!

I'm encountering an issue where the item scraping method fails intermittently when accessing Vinted.
Most of the time, the server responds with a 403 error and the following body:

{"code":106}

However, on some days (like today), the request instead returns a 404 Not Found error.

Is anyone else experiencing this problem? Everything was working regularly up until a week ago.
If you have found a workaround or know how to fix it, I would really appreciate your advice!

Describe the issue

When attempting to scrape item data from Vinted, the request either:

  • Fails with a 403 Forbidden error and body {"code":106}, or
  • Returns a 404 Not Found error.

This happens even when using a valid session. It seems that either the API endpoints have changed, or stricter authentication and request validation has been introduced.

Steps to reproduce

  1. Initialize the scraper with valid session credentials.
  2. Attempt to call the item method on a known valid listing.
  3. Observe that after multiple retries, the scraper fails with a 403 (or sometimes 404) error.

Expected behavior

The scraper should successfully retrieve the item data when provided with a valid session and a valid item ID.

Example

scraper = VintedScraper(session_id="valid_session_id")
item = scraper.item("valid_item_id")
print(item)

Tell us about your environment

  • OS: Ubuntu
  • OS Version: 22.04
  • Python version: 3.11

Other information

  • Observed errors:
    • Most days: 403 Forbidden with body {"code":106}
    • Some days: 404 Not Found error instead
  • Related issue: Vinted may have updated its API, requiring new or stricter headers, authentication tokens, or request formats. IP or session-based blocking may also be involved.
  • Suggestion:
    • Review and update request headers (User-Agent, Accept-Language, etc.) to better mimic a real browser.
    • Investigate if additional authentication parameters are now required.
    • Check if URL patterns or anti-bot protections have changed.

Any insight or workaround from other users would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions