---
title: "Search the public remnant marketplace"
method: GET
path: "/search/pieces"
tags: ["Marketplace"]
---

# Search the public remnant marketplace

`GET /search/pieces`

## Request

- Base URL: `https://api.stoneproject.app/api/v1/public`
- URL: `https://api.stoneproject.app/api/v1/public/search/pieces`
- Auth: HTTP bearer

## Query parameters

- `q` string
- `stone_type_id` string
- `material_type_id` string
- `category_id` string
- `color` string
- `finish` string
- `min_length` number
- `min_width` number
- `min_price` number
- `max_price` number
- `lat` number
- `lon` number
- `radius` number
- `sort` string
- `page` integer
- `per_page` integer

## Response `200`

OK

- object
  - `success` boolean
  - `message` string, nullable
  - `data` object
    - `items` MarketplacePiece[]
      - `id` string
      - `title` string
      - `length_cm` number, nullable
      - `width_cm` number, nullable
      - `thickness_cm` number, nullable
      - `stone_type_id` string, nullable
      - `category_id` string, nullable
      - `price` number, nullable
      - `price_type` string
      - `color` string, nullable
      - `finish` string, nullable
      - `status` string
      - `images` string[]
      - `distance_km` number
      - `company` object, nullable
        - `id` string
        - `name` string
        - `city` string, nullable
        - `state` string, nullable
    - `meta` PageMeta
      - `current_page` integer
      - `last_page` integer
      - `per_page` integer
      - `total` integer

## Other responses

- `401`: Missing, invalid, revoked or expired token
- `403`: The token lacks the required scope
- `429`: Rate limit reached; retry after the Retry-After header

---

[API](https://skmtc.dev/stoneproject/apis/stone-project-public-api.md) · [All operations](https://skmtc.dev/stoneproject/apis/stone-project-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stoneproject/apis/stone-project-public-api/revisions/7cebff773929?raw)
