Skip to main content

Unofficial Wrapper for Vinted API

Project description

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Vinted Api Wrapper

Simple client for Vinted Developer API written in Python
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

The Vinted API Wrapper is a Python-based tool designed to interact with the Vinted marketplace. It provides a set of methods for fetching product data, user information, and catalog details directly from Vinted's API. The wrapper streamlines the process of making API requests, handling cookies, and parsing JSON responses into structured Python dataclass objects. It enables developers to search, filter, and retrieve data efficiently, making it easier to integrate Vinted's functionalities into their own applications.

(back to top)

Built With

  • Python
  • requests
  • dacite

(back to top)

Getting Started & Installation

To use the Vinted API Wrapper you can clone the repository or use pip package (recommended)

  1. Install vinted-api-wrapper package
pip install vinted-api-wrapper
  1. Usage: Import the Vinted class into your Python script and start making API calls:
from vinted import Vinted
vinted = Vinted()
  • To specify the Vinted marketplace domain for API requests, pass the desired domain when initializing the Vinted object. By default, the domain is set to vinted.pl. However, you can choose from the following supported domains:
["pl", "fr", "at", "be", "cz", "de", "dk", "es", "fi", "gr", "hr", "hu", "it", "lt", "lu", "nl", "pt", "ro", "se", "sk", "co.uk", "com"]

# Usage example:
vinted = Vinted(domain="fr")

(back to top)

Usage

Using vinted-api-wrapper in Your Project

The Vinted class provides several useful methods to interact with Vinted's API. Below are some key methods and examples:

  • Search for Products: Search the Vinted marketplace by keywords and filters OR search url (more in docs).

    items = vinted.search("sneakers", catalog_id=1, brand_id=100)
    # SearchResponse(code=0, pagination=Pagination(...), dominant_brand=DominantBrand(...), items=[Item(id=1234567890, title='Nike shoes', price='35.0', is_visible=True, discount=None, brand_title='Nike', user=User(id=987654, login='foobar', ...more), url='https://www.vinted.pl/items/1234567890-nike-shoes', promoted=False, photo=ItemPhoto(...), favourite_count=0, service_fee='4.65', total_item_price='39.65', view_count=0, content_source='search',, search_tracking_params=SearchParams(...)), Item(...)], search_tracking_params=SearchTrackingParams(...)
    
  • Get User Information: Retrieve details about a specific user.

    user = vinted.user_info(12345)
    # UserResponse(code=0, pagination=None, user=DetailedUser(id=12345, anon_id='xyz123', login='foobar', real_name=None, email=None, birthday=None, item_count=70, given_item_count=20, taken_item_count=5, followers_count=4, following_count=15, following_brands_count=1, positive_feedback_count=8, neutral_feedback_count=0, negative_feedback_count=0, ...more))
    
  • Retrieve Item Details: Fetch detailed information about a specific item by its ID.

    user = vinted.item_info(12345)
    # ItemsResponse(code=0, pagination=None, item=DetailedItem(id=5146387299, title='New Rock 38 38,5 buty na platformie nowe goth punk', brand_id=432, size_id=58, status_id=6, user_id=124343433, ...more))
    

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Paweł Stawikowski - pawikoski@gmail.com

Project Link: https://github.com/Pawikoski/vinted-api-wrapper

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vinted-api-wrapper-0.3.0.tar.gz (16.2 kB view details)

Uploaded Source

File details

Details for the file vinted-api-wrapper-0.3.0.tar.gz.

File metadata

  • Download URL: vinted-api-wrapper-0.3.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for vinted-api-wrapper-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6b790c04b7ebbf904fdb36d4a0bb17b1583fd4128d79b7c389d676922b707dcb
MD5 3b3ff2cebec4d8e52f654acbd419a73c
BLAKE2b-256 c054ab44fe421426d61690f841f025e521d8c0b4039bf2cb392783501d457efe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page