# Search listings

> Live listings of one marketplace, with the same filters as the browse pages on the site. Nearest first when you send a zip, newest first without one. Pages follow each other by cursor, so listings added meanwhile never move a page.


`GET https://dev.siteswap.pro/api/v1/listings`

Live listings of one marketplace, with the same filters as the browse pages on the site. Nearest first when you send a `zip`, newest first without one. Pages follow each other by cursor, so listings added meanwhile never move a page.

Needs the `listings:read` scope.

## Parameters

- `marketplace` (query, string): A marketplace key, as `GET /marketplaces` lists them, for example `materials`
- `q` (query, string): Words to look for: titles, materials, brands, regional names
- `zip` (query, string): Sort by distance from here
- `radius` (query, "25" | "50" | "100"): Miles from `zip`
- `kind` (query, "have" | "need"): Only offered or only wanted
- `deal` (query, "sale" | "trade" | "both"): Marketplaces with trades
- `category` (query, string): A category slug
- `material` (query, string): With `category`: materials or types by their short name, comma separated, as in a browse address on the site
- `brand` (query, string): A brand or maker id
- `line` (query, string): A product line id
- `color` (query, string): A color id
- `model` (query, string): A model id
- `platform` (query, string): A battery platform id
- `price` (query, "fixed" | "offers" | "free" | "pays_to_take"): Materials: only this kind of price
- `delivers` (query, "1"): Only listings that can deliver
- `pickup` (query, "1"): Only pickup only listings
- `loading` (query, "1"): Materials: loading on site
- `ships` (query, "1"): Tools: ships
- `company` (query, string): Only this company's listings, by its slug
- `cursor` (query, string): The `next_cursor` of the page before. Leave it out for the first page
- `limit` (query, integer): How many to return on one page

## Responses

- 200: OK
- 400: bad_request, key_in_url or invalid_json: the request could not be read
- 401: missing_key or invalid_key: no key, or a key that is not valid or was revoked
- 403: key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
- 404: not_found: nothing here that you may see
- 413: too_large: the body is over 256 KB
- 429: rate_limited or daily_quota: wait for Retry-After seconds

## Response fields

- `id` (string): The listing's id
- `url` (string): The listing on SiteSwap
- `marketplace` (string): The marketplace key
- `kind` ("have" | "need"): `have` for something offered, `need` for something wanted
- `deal` ("sale" | "trade" | "both"): Marketplaces with trades: for sale, for trade or either; `sale` everywhere else
- `status` ("active" | "paused" | "closed"): Only `active` listings are found by search; your own can be paused or closed
- `title` (string)
- `description` (string)
- `category` (object)
- `category.id` (string)
- `category.slug` (string)
- `category.name` (string)
- `material` (string | null): The material or type, or the name typed under Other
- `brand` (string | null): The brand or maker
- `product_line` (string | null): The product line
- `color` (string | null): The color
- `model` (string | null): The model
- `quantity` (object)
- `quantity.total` (number): Listed in all
- `quantity.open` (number): Still open: not promised to an accepted offer and not handed over
- `quantity.unit` (string)
- `quantity.basis` (string): `measured` or `estimated`
- `price` (object)
- `price.model` (string): `fixed`, `offers`, `free` or `pays_to_take` (the poster pays to have it taken)
- `price.cents` (integer | null): Per unit, in US cents; null without a price
- `location` (object)
- `location.city` (string)
- `location.region` (string): The state
- `location.distance_mi` (number | null): Straight-line miles from the `zip` you sent; null without one
- `pickup_only` (boolean)
- `can_deliver` (boolean)
- `can_load` (boolean)
- `available_from` (string | null): The first day, YYYY-MM-DD
- `fields` (object (by key)): The category's questions and their answers, by key (see `GET /catalog/categories/{id}`)
- `photo` (string | null): A small picture of the first photo
- `company` (object)
- `company.slug` (string): The company's address on SiteSwap, `/c/{slug}`
- `company.name` (string)
- `company.kind` (string): What kind of company, for example `contractor` or `supplier`
- `company.url` (string): Its public page
- `sample` (boolean): True for sample data on test servers
- `created_at` (string): When it was posted. ISO 8601 in UTC

```json
{
  "data": [
    {
      "id": "1042",
      "url": "https://siteswap.pro/listing/1042",
      "marketplace": "materials",
      "kind": "have",
      "deal": "sale",
      "status": "active",
      "title": "Clean fill, screened",
      "description": "About 40 yards from a basement dig.",
      "category": {
        "id": "3",
        "slug": "soil-and-fill",
        "name": "Soil and fill"
      },
      "material": "Clean fill",
      "brand": null,
      "product_line": null,
      "color": null,
      "model": null,
      "quantity": {
        "total": 40,
        "open": 40,
        "unit": "yd",
        "basis": "estimated"
      },
      "price": {
        "model": "free",
        "cents": null
      },
      "location": {
        "city": "Woburn",
        "region": "MA",
        "distance_mi": 3.2
      },
      "pickup_only": true,
      "can_deliver": false,
      "can_load": true,
      "available_from": null,
      "fields": {},
      "photo": null,
      "company": {
        "slug": "acme-site-work",
        "name": "Acme Site Work",
        "kind": "contractor",
        "url": "https://siteswap.pro/c/acme-site-work"
      },
      "sample": false,
      "created_at": "2026-12-02T14:03:20.991Z"
    }
  ],
  "next_cursor": "eyJmIjoyNSwiYSI6MTA0Mn0",
  "meta": {
    "request_id": "3f9a1c0b7d2e",
    "api_version": "v1"
  }
}
```

## Example

```bash
curl "https://dev.siteswap.pro/api/v1/listings" \
  -H "Authorization: Bearer ssk_YOUR_KEY"
```