openapi: 3.0.0
info:
  title: Vinted Seller API
  description: Retrieve a Vinted seller's public profile, ratings, badges and active
    listings by member ID.
  version: 1.0.0
servers:
- url: https://www.searchapi.io/api/v1
paths:
  "/search":
    get:
      summary: Get a Vinted seller
      security:
      - ApiKeyAuth: []
      - ApiKeyQuery: []
      parameters:
      - name: engine
        in: query
        required: true
        description: 'The search engine. Set to `vinted_seller`.'
        schema:
          type: string
          enum:
          - vinted_seller
      - name: seller_id
        in: query
        required: true
        description: The numeric Vinted member ID.
        schema:
          type: string
          pattern: "^[1-9][0-9]{0,11}$"
      - name: vinted_domain
        in: query
        required: false
        description: The Vinted country site.
        schema:
          type: string
          enum:
          - vinted.fr
          - vinted.be
          - vinted.es
          - vinted.lu
          - vinted.nl
          - vinted.lt
          - vinted.de
          - vinted.at
          - vinted.it
          - vinted.co.uk
          - vinted.pt
          - vinted.com
          - vinted.cz
          - vinted.sk
          - vinted.pl
          - vinted.se
          - vinted.ro
          - vinted.hu
          - vinted.dk
          - vinted.fi
          - vinted.hr
          - vinted.gr
          - vinted.ie
          - vinted.ee
          - vinted.lv
          - vinted.si
          - vinted.com.au
          default: vinted.fr
      - name: sort_by
        in: query
        required: false
        description: The listing sort order.
        schema:
          type: string
          enum:
          - relevance
          - newest
          - price_low_to_high
          - price_high_to_low
          default: relevance
      - name: page
        in: query
        required: false
        description: The listings page.
        schema:
          type: integer
          minimum: 1
          maximum: 9999
          default: 1
      - name: zero_retention
        in: query
        required: false
        description: Set to true to disable logging and persistent storage for this request. Enterprise plans only.
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/SearchResponse"
        '400':
          description: Validation Error. There is an issue with query parameters,
            such as missing required parameters or invalid values.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
        '401':
          description: Authentication Error. The API key is missing or invalid.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
        '403':
          description: Forbidden. Zero data retention is not available to the account, or the account requires `zero_retention=true`.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
        '429':
          description: Rate Limit Exceeded. The number of allowed requests has been
            exceeded. Consider upgrading your plan or waiting for the limit to reset.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
        '500':
          description: Server Error. Internal server error.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
        '503':
          description: Vinted seller data is temporarily unavailable.
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ErrorResponse"
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Use Bearer authentication. Format: "Bearer YOUR_API_KEY"'
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Pass API key as query parameter
  schemas:
    SearchResponse:
      type: object
      required:
      - search_metadata
      - search_parameters
      properties:
        search_metadata:
          "$ref": "#/components/schemas/SearchMetadata"
        search_parameters:
          "$ref": "#/components/schemas/SearchParameters"
        seller:
          "$ref": "#/components/schemas/Seller"
        listings:
          type: array
          items:
            "$ref": "#/components/schemas/Listing"
          description: The seller's active listings.
        pagination:
          "$ref": "#/components/schemas/Pagination"
        error:
          type: string
          description: The reason Vinted could not find the seller.
      oneOf:
      - required:
        - seller
        - listings
        - pagination
      - required:
        - error
    SearchMetadata:
      type: object
      required:
      - status
      - created_at
      properties:
        id:
          type: string
          description: Unique identifier for the search request
        status:
          type: string
          description: Status of the search request
        created_at:
          type: string
          format: date-time
          description: Timestamp when the search was created
        request_time_taken:
          type: number
          description: Time taken to make the request in seconds
        parsing_time_taken:
          type: number
          description: Time taken to parse the results in seconds
        total_time_taken:
          type: number
          description: Total time taken for the search in seconds
        request_url:
          type: string
          description: The Vinted member page URL.
        html_url:
          type: string
          description: URL to view the raw results
        json_url:
          type: string
          description: URL to view JSON results
    SearchParameters:
      type: object
      required:
      - engine
      - seller_id
      - vinted_domain
      - sort_by
      - page
      properties:
        engine:
          type: string
          description: The search engine used.
        seller_id:
          type: string
          description: The Vinted member ID requested.
        vinted_domain:
          type: string
          description: The Vinted country site requested.
        sort_by:
          type: string
          description: The listing sort order.
        page:
          type: integer
          description: The listings page requested.
        zero_retention:
          type: boolean
          description: Whether zero data retention was requested.
    Seller:
      type: object
      required:
      - id
      - username
      - link
      - reviews
      - positive_reviews
      - neutral_reviews
      - negative_reviews
      - automatic_reviews
      - followers
      - following
      - total_listings
      - items_sold
      - items_bought
      properties:
        id:
          type: integer
          format: int64
          description: The Vinted member ID.
        username:
          type: string
          description: The seller's public username.
        link:
          type: string
          description: The seller's profile URL.
        thumbnail:
          type: string
          description: The seller's profile photo URL.
        about:
          type: string
          description: The seller's public bio.
        location:
          type: string
          description: The seller's public location.
        country_code:
          type: string
          description: The seller's country code.
        rating:
          type: number
          minimum: 0
          maximum: 5
          description: The seller's rating out of five.
        reviews:
          type: integer
          description: The number of reviews.
        positive_reviews:
          type: integer
          description: The number of positive reviews.
        neutral_reviews:
          type: integer
          description: The number of neutral reviews.
        negative_reviews:
          type: integer
          description: The number of negative reviews.
        automatic_reviews:
          type: integer
          description: The number of automatic reviews.
        followers:
          type: integer
          description: The number of followers.
        following:
          type: integer
          description: The number of members the seller follows.
        total_listings:
          type: integer
          description: The number of active listings.
        items_sold:
          type: integer
          description: The number of items sold.
        items_bought:
          type: integer
          description: The number of items bought.
        last_seen_at:
          type: string
          format: date-time
          description: The seller's public last activity time.
        is_business:
          type: boolean
          description: Whether the seller has a business account.
        is_on_holiday:
          type: boolean
          description: Whether the seller has turned on holiday mode.
        is_blocked:
          type: boolean
          description: Whether Vinted has blocked the seller's account.
        verifications:
          type: array
          items:
            type: string
          description: The seller's verified sign-in methods.
        badges:
          type: array
          items:
            type: string
          description: The seller's Vinted badge identifiers.
        bundle_discounts:
          type: array
          items:
            "$ref": "#/components/schemas/BundleDiscount"
          description: The seller's bundle discount tiers.
    Pagination:
      type: object
      required:
      - current
      properties:
        current:
          type: integer
          description: The current listings page.
        next:
          type: integer
          description: The value to pass as page to retrieve the next listings page.
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
    BundleDiscount:
      type: object
      required:
      - min_items
      - discount_percentage
      properties:
        min_items:
          type: integer
          description: The minimum quantity for the discount.
        discount_percentage:
          type: number
          description: The percentage discounted.
    Listing:
      type: object
      required:
      - position
      - item_id
      - title
      - link
      - price
      - extracted_price
      - total_price
      - extracted_total_price
      - currency
      - condition
      - likes
      properties:
        position:
          type: integer
          description: Position of the item on this page of results.
        item_id:
          type: integer
          description: Vinted item id, the number in the item link.
        title:
          type: string
          description: Item title, as the seller wrote it.
        link:
          type: string
          description: Item page on Vinted.
        brand:
          type: string
          description: Brand as Vinted prints it on the item, which for some items
            includes the model.
        size:
          type: string
          description: Size as Vinted prints it on the item, in the site's own sizing
            and language.
        condition:
          type: string
          description: Condition as Vinted prints it on the item, in the site's language.
        price:
          type: string
          description: Price as text, the amount with a dot decimal and the currency
            symbol after it (e.g., `12.00 €`).
        extracted_price:
          type: number
          description: Numeric price.
        currency:
          type: string
          description: ISO 4217 code of the price's currency.
        total_price:
          type: string
          description: Price with Vinted's buyer protection fee, as text in the same
            format as `price`.
        extracted_total_price:
          type: number
          description: Numeric price with Vinted's buyer protection fee.
        likes:
          type: integer
          description: Number of members who marked the item as a favourite.
        thumbnail:
          type: string
          description: Item photo.
        image:
          type: string
          description: Item photo at full size.
