> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /cargurus/dealers/listings

> Get the current inventory (listings) of a CarGurus dealer by id (or dealer storefront URL). Returns listing cards with price, IMV, deal rating, vehicle summary and seller. Sort by best match, best deal, price, mileage, distance, model year or listing age.

**Price:** 1 credit

**💡 AI Hint:** List a dealer's current vehicles by dealer id (e.g. 389627) or dealer storefront URL. Sort by best_match/best_deal/price/mileage/distance/year/listing age. count is required. Each result is a listing card.

**⚠️ Common errors:** 412: Dealer not found (well-formed but nonexistent dealer id)



## OpenAPI

````yaml /openapi-filtered.json post /api/cargurus/dealers/listings
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/cargurus/dealers/listings:
    post:
      tags:
        - /cargurus
      summary: /cargurus/dealers/listings
      description: >-
        Get the current inventory (listings) of a CarGurus dealer by id (or
        dealer storefront URL). Returns listing cards with price, IMV, deal
        rating, vehicle summary and seller. Sort by best match, best deal,
        price, mileage, distance, model year or listing age.


        **Price:** 1 credit


        **💡 AI Hint:** List a dealer's current vehicles by dealer id (e.g.
        389627) or dealer storefront URL. Sort by
        best_match/best_deal/price/mileage/distance/year/listing age. count is
        required. Each result is a listing card.


        **⚠️ Common errors:** 412: Dealer not found (well-formed but nonexistent
        dealer id)
      operationId: __api_cargurus_dealers_listings_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CargurusDealerListingsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CargurusListing'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CargurusDealerListingsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        dealer:
          type: string
          minLength: 1
          description: Dealer id or a full CarGurus dealer storefront URL
          examples:
            - '389627'
            - >-
              https://www.cargurus.com/Cars/m-Redlands-Chrysler-Jeep-Dodge-Ram-sp389627
        sort:
          $ref: '#/components/schemas/CargurusSort'
          description: Sort order
          default: best_match
        count:
          type: integer
          minimum: 1
          description: Max number of results to return
      type: object
      required:
        - dealer
        - count
    CargurusListing:
      properties:
        '@type':
          type: string
          default: CargurusListing
        id:
          type: string
        url:
          anyOf:
            - type: string
            - type: 'null'
        vin:
          anyOf:
            - type: string
            - type: 'null'
        make:
          anyOf:
            - type: string
            - type: 'null'
        model:
          anyOf:
            - type: string
            - type: 'null'
        year:
          anyOf:
            - type: integer
            - type: 'null'
        trim:
          anyOf:
            - type: string
            - type: 'null'
        body_type:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        total_price:
          anyOf:
            - type: number
            - type: 'null'
        imv:
          anyOf:
            - type: number
            - type: 'null'
        deal_rating:
          anyOf:
            - type: string
            - type: 'null'
        deal_score:
          anyOf:
            - type: number
            - type: 'null'
        mileage:
          anyOf:
            - type: number
            - type: 'null'
        drivetrain:
          anyOf:
            - type: string
            - type: 'null'
        transmission:
          anyOf:
            - type: string
            - type: 'null'
        engine:
          anyOf:
            - type: string
            - type: 'null'
        doors:
          anyOf:
            - type: integer
            - type: 'null'
        exterior_color:
          anyOf:
            - type: string
            - type: 'null'
        interior_color:
          anyOf:
            - type: string
            - type: 'null'
        fuel_type:
          anyOf:
            - type: string
            - type: 'null'
        city_mpg:
          anyOf:
            - type: number
            - type: 'null'
        highway_mpg:
          anyOf:
            - type: number
            - type: 'null'
        combined_mpg:
          anyOf:
            - type: number
            - type: 'null'
        ev_battery:
          anyOf:
            - $ref: '#/components/schemas/CargurusEvBattery'
            - type: 'null'
        is_cpo:
          type: boolean
          default: false
        is_new:
          type: boolean
          default: false
        safety_rating:
          anyOf:
            - type: integer
            - type: 'null'
        days_on_market:
          anyOf:
            - type: integer
            - type: 'null'
        distance:
          anyOf:
            - type: number
            - type: 'null'
        stock_number:
          anyOf:
            - type: string
            - type: 'null'
        price_drop:
          anyOf:
            - type: number
            - type: 'null'
        original_price:
          anyOf:
            - type: number
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        image_count:
          anyOf:
            - type: integer
            - type: 'null'
        options:
          items:
            type: string
          type: array
          default: []
        seller_id:
          anyOf:
            - type: string
            - type: 'null'
        seller_name:
          anyOf:
            - type: string
            - type: 'null'
        seller_city:
          anyOf:
            - type: string
            - type: 'null'
        seller_state:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    CargurusSort:
      type: string
      enum:
        - best_match
        - best_deal
        - price_low
        - price_high
        - mileage_low
        - mileage_high
        - distance
        - year_new
        - year_old
        - newest_listed
        - oldest_listed
    CargurusEvBattery:
      properties:
        '@type':
          type: string
          default: CargurusEvBattery
        capacity_kwh:
          anyOf:
            - type: number
            - type: 'null'
        range_mi:
          anyOf:
            - type: number
            - type: 'null'
        charge_time_240v_hr:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````