{
  "openapi": "3.1.0",
  "info": {
    "title": "Crawlbench Markets API",
    "version": "v1",
    "description": "One API for the Crawlbench app, team plans that connect searches to their own systems, and data customers.\n\nSend your key as `Authorization: Bearer <key>`. Session keys (`cb_sess_`) come from signing in on the app. Team keys (`cb_live_`, `cb_test_`) come from Developers on the Pro and Scale plans. Data keys (`cb_data_`) come with a data contract. A chatbot's token (`cb_chat_`) comes from connecting a chatbot by signing in, on every plan, and works on `/mcp` only. A test key (`cb_test_`) reads the team's real data and never writes: every route but GET answers 403 `forbidden`, so it sends no alert, email or webhook. A team key belongs to one product, and another product's routes answer it 403 `forbidden`.\n\nJSON in and out. Times are in UTC, ISO 8601 with `Z`.\n\nLists answer `{ \"data\": [...], \"pagination\": { \"has_more\", \"after\" } }`. Pass `after` back until `has_more` is false; `limit` goes up to 100, or 500 on `/data/listings`. A list that takes `updated_since` returns only what changed since that time.\n\nEvery POST takes an `Idempotency-Key` header, except the MCP servers (`/mcp` and `/data/mcp`). A retry with the same key and the same body gets the first answer back, with `Idempotent-Replayed: true`, and does nothing twice. Keys are kept for 24 hours. The same key with a different body answers 409 `conflict`.\n\nEach key can make 600 calls a minute, and all keys on one plan share 600 a minute (1,200 on Scale). Markets keys count apart from Deals keys: all Markets keys of one account share 120 calls a minute on Team and 300 calls a minute on Scale. Every answer to a keyed call carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; over the limit, the answer is 429 `rate_limited` with `Retry-After`.\n"
  },
  "servers": [
    {
      "url": "https://api.crawlbench.com/v1"
    }
  ],
  "security": [
    {
      "key": []
    }
  ],
  "paths": {
    "/markets/segments": {
      "get": {
        "operationId": "listMarketsSegments",
        "summary": "Search published markets",
        "description": "Markets keys, on Markets Team and Scale (Scale from $799/mo). Solo answers 403 `plan_required`. Published markets that match the words, busiest first, with listing bands and trim rows when the first match is a make and model. At most 8 come back, so there is no cursor. With a `country` or `area`, every match and trim names that `place`, and `listings` bands what is listed there on the newest day of numbers, null under 5. A `country` is counted for every match. A city or state is counted only where that car type is saved there, or on Markets Scale inside your contract's metros (every one when the contract lists none); elsewhere `listings` is null. Without one (Scale), `listings` bands the last 90 days across all countries. On Markets Scale every match and trim also carries `countries`, the band in each country with 5 or more. Team must send `country` or `area`. Without one the answer is 422 `validation_failed`. A country code we do not cover, or an area we do not have, is 422 and is not counted. A valid country or area keeps the markets with listings there in the last 90 days. Team may search 200 times a day and Scale 1,000. The next search answers 429 `segment_search_daily_limit`, with `resets_at` and `Retry-After`. A refused search is not counted.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Words to match, like `camry 2019`."
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A category or picker chip, like `vehicles`."
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A country code, like `US`. An unknown code is 422. Team must send this or `area`."
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`city:123`, `region:456` or `country:840`. Team must send this or `country`."
          }
        ],
        "responses": {
          "200": {
            "description": "Matching markets",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsSegmentSuggestion"
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "seg_K3mP9xQ2aL",
                      "name": "2019 Toyota Camry",
                      "category": "vehicles",
                      "key": "toyota|camry|2019",
                      "listings": "100+",
                      "place": {
                        "type": "country",
                        "id": 840,
                        "value": "country:840",
                        "name": "United States"
                      },
                      "countries": [
                        {
                          "country": "US",
                          "listings": "100+"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/areas": {
      "get": {
        "operationId": "listMarketsAreas",
        "summary": "Search places for a market",
        "description": "Markets keys, on Markets Team and Scale. Cities, states or provinces and countries that match the words, in groups. Each option's value is the area for `area` on GET /v1/markets/{segment}, like `city:7` or `country:840`. Each group holds at most 12 places, so there is no cursor. Below Scale, `segment_id` must be a car type the account has saved. Another car type answers 403 `forbidden`. With a picked car and no words the list is empty. Words answer Yes or No for that one place.",
        "parameters": [
          {
            "name": "q",
            "description": "The words to look for, like a city or a country.",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Keep the matches that are in this country, like `US`. It narrows the picker's 12 matches per group, it does not widen them."
          },
          {
            "name": "segment_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The picked market's id, like `seg_K3mP9xQ2aL`. Anything else is a 404."
          },
          {
            "name": "category",
            "description": "Keep the matches for this category, a slug from GET /v1/categories.",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching areas",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsAreas"
                },
                "example": {
                  "groups": [
                    {
                      "label": "Countries",
                      "options": [
                        {
                          "value": "country:840",
                          "label": "United States",
                          "aside": "100+ listed"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/areas/{area}/segments": {
      "get": {
        "operationId": "listMarketsAreaSegments",
        "summary": "New car types in a metro",
        "description": "Markets keys, on Markets Scale, for a city or state named in the contract. Car types that qualify there, newest first, at most 200. Each row has an opaque id, the name, a banded count and the day it first had 5 active ads in that area. No prices. An area outside the contract answers 403 `outside_contract`. The 201st request today answers 429 `city_feed_daily_limit`. Solo and Team answer 403 `plan_required`.",
        "parameters": [
          {
            "name": "area",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "A contracted metro, like `city:123` or `region:456`."
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Include car types that first qualified on this day or later, like `2026-11-01`. Omit it for the last 30 days."
          }
        ],
        "responses": {
          "200": {
            "description": "Car types new in this metro",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "count",
                          "qualified_on"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Opaque id, `seg_` plus 10 letters."
                          },
                          "name": {
                            "type": "string"
                          },
                          "count": {
                            "type": "string",
                            "description": "A band, like `20+`."
                          },
                          "qualified_on": {
                            "type": "string",
                            "format": "date"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "seg_a1b2c3d4e5",
                      "name": "2019 Toyota Camry",
                      "count": "20+",
                      "qualified_on": "2026-11-01"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/{segment}": {
      "get": {
        "operationId": "getMarket",
        "summary": "One market's numbers and panels",
        "description": "Markets keys, on Markets Scale only (from $799/mo), or a data contract. Solo and Team keys answer `plan_required` (403). It is shown here so you can see what Scale reads; the same numbers come daily in a data contract. The usual price, demand, sold-for, cities, years and mileage panels the Markets screen reads for this segment, area and period, plus price and days-listed percentiles in `statistics`. A segment is its id, like `seg_K3mP9xQ2aL`. A number, a key or a slug is a 404. Without `area`, the read uses your team's home country. Money is in major units.",
        "parameters": [
          {
            "name": "segment",
            "description": "The market's id, like seg_K3mP9xQ2aL, as GET /v1/markets/segments lists it.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "An area as `city:123`, `region:456` or `country:840`."
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "30d",
                "90d",
                "1y"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One market",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsMarket"
                },
                "example": {
                  "segment": {
                    "id": "seg_K3mP9xQ2aL",
                    "key": "toyota|camry|2019",
                    "label": "2019 Toyota Camry",
                    "category": "vehicles"
                  },
                  "area": {
                    "type": "country",
                    "id": 840,
                    "value": "country:840",
                    "name": "United States"
                  },
                  "period": "90d",
                  "periods": {
                    "30d": "30 days",
                    "90d": "90 days",
                    "1y": "1 year"
                  },
                  "thin": false,
                  "numbers": {
                    "market_name": "2019 Toyota Camry in United States",
                    "currency": "USD",
                    "updated_on": "2026-11-22",
                    "usual": 17900,
                    "low": 15900,
                    "high": 19900,
                    "too_spread": false,
                    "thin": false,
                    "thin_words": null,
                    "few_similar_listings": false,
                    "no_number": false,
                    "sample": 40,
                    "gone_in_days": null,
                    "gone_in_days_gone": null,
                    "gone_in_days_sold": null,
                    "gone_in_days_missing": "exits",
                    "gone_in_days_missing_words": "3 of 5 listings gone so far.",
                    "gone_in_days_30": null,
                    "days_of_supply": 38,
                    "for_sale_now": 312,
                    "sold_last_30_days": 246,
                    "new_week": 7,
                    "new_prior_week": 7,
                    "price_cuts_week": 2,
                    "cuts_per_100": 5,
                    "series": [
                      {
                        "label": "Nov 22",
                        "value": 17900,
                        "low": 15900,
                        "high": 19900
                      }
                    ],
                    "daily": [
                      {
                        "day": "2026-11-22",
                        "active": 40,
                        "priced": 40,
                        "cut_7_n": 2,
                        "cut_30_n": 4,
                        "cut_share_7d": 0.05,
                        "cut_share_30d": 0.1,
                        "sold": 1,
                        "removed": 2,
                        "gone": 3
                      }
                    ]
                  },
                  "statistics": {
                    "price": {
                      "p25": 15900,
                      "p50": 17900,
                      "p75": 19900,
                      "n": 40
                    },
                    "days_listed": {
                      "p25": 3,
                      "p50": 8,
                      "p75": 14,
                      "n": 40
                    }
                  },
                  "panels": {
                    "sold": null,
                    "looking": null,
                    "cities": [],
                    "cities_listed": [],
                    "years": [
                      {
                        "year": "2019",
                        "usual": 17900,
                        "current": true
                      }
                    ],
                    "mileage": null
                  },
                  "area_options": [
                    {
                      "type": "country",
                      "id": 840,
                      "value": "country:840",
                      "name": "United States"
                    }
                  ],
                  "wider_area": null
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Markets could not be read just then (`unavailable`). Try again in a minute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/markets/{segment}/listings": {
      "get": {
        "operationId": "listMarketSegmentListings",
        "summary": "Live listings in one market",
        "description": "Markets keys, on Markets Scale only (from $799/mo), or a data contract. Solo and Team keys answer `plan_required` (403). It is shown here so you can see what Scale reads; the same numbers come daily in a data contract. Similar listings for sale in this segment and area, newest first seen first. Each row carries its price history from the last 120 days. `area` is required, in the same `city:123`, `region:456` or `country:840` form as GET /v1/markets/areas returns. Pass `after` until `has_more` is false.",
        "parameters": [
          {
            "name": "segment",
            "description": "The market's id, like seg_K3mP9xQ2aL, as GET /v1/markets/segments lists it.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "description": "Keep the listings in this area, a value from GET /v1/markets/areas.",
            "in": "query",
            "required": true,
            "example": "city:123",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "description": "How many listings to return in one page.",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "after",
            "description": "The cursor the last page gave, to read the page after it.",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "first_seen_since",
            "description": "Keep the listings first seen on or after this time.",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "first_seen_before",
            "description": "Keep the listings first seen before this time.",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "last_seen_since",
            "description": "Keep the listings last seen on or after this time.",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "last_seen_before",
            "description": "Keep the listings last seen before this time.",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of listings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsSegmentListing"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "1129384756102938",
                      "title": "2019 Toyota Camry SE",
                      "url": "https://www.facebook.com/marketplace/item/1234567890123456",
                      "price": 15400.0,
                      "currency": "USD",
                      "place": "Dallas, TX",
                      "first_seen_at": "2026-11-28T08:44:00Z",
                      "last_seen_at": "2026-11-28T11:00:00Z",
                      "posted_at": "2026-11-28T08:40:00Z",
                      "days_listed": 1,
                      "price_history": [
                        {
                          "amount": 16200.0,
                          "currency": "USD",
                          "previous": null,
                          "kind": "first",
                          "observed_at": "2026-11-28T08:44:00Z"
                        },
                        {
                          "amount": 15400.0,
                          "currency": "USD",
                          "previous": 16200.0,
                          "kind": "cut",
                          "observed_at": "2026-11-28T10:05:00Z"
                        }
                      ]
                    }
                  ],
                  "pagination": {
                    "has_more": true,
                    "after": "1129384756102938"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/{segment}/export": {
      "get": {
        "operationId": "exportMarketCsv",
        "summary": "Export a market's daily numbers",
        "description": "Markets keys, on Markets Scale only (from $799/mo), or a data contract. Solo and Team keys answer 403 `plan_required`. It is shown here so you can see what Scale reads; the same numbers come daily in a data contract. The market's daily numbers for the area and period, as CSV with the page's floors. A market with no usual price answers 422 `validation_failed`.",
        "parameters": [
          {
            "name": "segment",
            "description": "The market's id, like seg_K3mP9xQ2aL, as GET /v1/markets/segments lists it.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "description": "Keep the numbers for this area, a value from GET /v1/markets/areas.",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "30d",
                "90d",
                "1y"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The daily CSV file",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "day,currency,usual_price,low_price,high_price,similar_listings,new_listings,price_cuts,active,priced,cut_7_n,cut_30_n,cut_share_7d,cut_share_30d,sold,removed,gone\n2026-11-27,USD,17900.0,15900.0,19900.0,41,2,1,41,41,2,4,0.05,0.1,1,0,1\n2026-11-28,USD,17900.0,15900.0,19900.0,40,1,2,40,40,2,4,0.05,0.1,1,1,2\n"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/listings": {
      "get": {
        "operationId": "listMarketsListings",
        "summary": "Your tracked listings, 100 a page",
        "description": "Markets keys, on Markets Team and Scale. Newest added first, each as its last check stored it: its ask, the usual price of similar listings and its price rating.",
        "parameters": [
          {
            "$ref": "#/components/parameters/After"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/UpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of tracked listings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsListing"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "8Kq2Vd41xP",
                      "url": "https://www.facebook.com/marketplace/item/1234567890123456",
                      "state": "tracking",
                      "title": "2019 Honda Civic LX",
                      "ask": 14500.0,
                      "currency": "USD",
                      "usual": 16200.0,
                      "rating": "good_price",
                      "rating_label": "Good price",
                      "sample_size": 23,
                      "thin": false,
                      "similar_listings": {
                        "scope": "country",
                        "url": "https://app.crawlbench.com/markets/yours/8Kq2Vd41xP"
                      },
                      "days_listed": 6,
                      "checked_at": "2026-11-16T09:12:00Z",
                      "estimate": null,
                      "paid": null,
                      "recon": null,
                      "other_costs": null,
                      "target_margin": null,
                      "stock_number": null,
                      "cost_to_market": null,
                      "margin_price": null,
                      "description": null,
                      "photo_urls": []
                    }
                  ],
                  "pagination": {
                    "has_more": false,
                    "after": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "operationId": "createMarketsListing",
        "summary": "Track a listing",
        "description": "Markets keys, on Markets Team and Scale. Send a Marketplace link. We check it, give it a price rating against similar listings and keep it current on your plan's schedule; the answer comes before the first check, with state `pending`. Send a new Idempotency-Key with every add: a retry with the same key gets the first answer back and adds nothing twice. A link you already track answers 200 with the row you have; an `estimate_id` sent with it is set on that row. A listing you stopped tracking can be added again, as a new add. Send `estimate_id` to carry the price estimate you made before listing (POST /markets/estimates); an id that is not one of your team's estimates answers 422 `validation_failed` and adds nothing. Past your plan's tracked listings the answer is 422 `own_listing_limit_reached`. Each key adds up to 10 listings a minute, and an account starts tracking up to twice its plan's tracked listings a day, however they are added (the web, a CSV, Price check and the API), with each price estimate counted as one; past either, the answer is 429 `rate_limited` with `Retry-After`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "A Marketplace listing link, like https://www.facebook.com/marketplace/item/1234567890123456."
                  },
                  "estimate_id": {
                    "type": "string",
                    "description": "The id of the price estimate your team made before listing this item. The tracked listing reads it back as `estimate`, beside its live price rating."
                  }
                }
              },
              "example": {
                "url": "https://www.facebook.com/marketplace/item/1234567890123456"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You already track this listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsListing"
                }
              }
            }
          },
          "201": {
            "description": "The listing is tracked and waits for its first check",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsListing"
                },
                "example": {
                  "id": "8Kq2Vd41xP",
                  "url": "https://www.facebook.com/marketplace/item/1234567890123456",
                  "state": "pending",
                  "title": null,
                  "ask": null,
                  "currency": null,
                  "usual": null,
                  "rating": null,
                  "rating_label": null,
                  "sample_size": null,
                  "thin": null,
                  "similar_listings": null,
                  "days_listed": null,
                  "checked_at": null,
                  "estimate": null,
                  "paid": null,
                  "recon": null,
                  "other_costs": null,
                  "target_margin": null,
                  "stock_number": null,
                  "cost_to_market": null,
                  "margin_price": null,
                  "description": null,
                  "photo_urls": []
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/listings.csv": {
      "get": {
        "operationId": "exportMarketsListings",
        "summary": "Your tracked listings as a CSV file",
        "description": "Markets keys, on Markets Team and Scale. Every tracked listing, newest added first, as one CSV file with a header row: the same fields as GET /markets/listings, one column each, except `similar_listings`, `description`, `photo_urls` and the two computed ones (`ask`, `usual`, `rating`, `rating_label`, `sample_size`, `days_listed`, `state`, `checked_at`, with the title, link and currency, then your team's own `paid`, `recon`, `other_costs`, `target_margin` and `stock_number`, the columns a CSV import reads back). Money is in major units. A title or any text that starts with =, +, - or @ is written with a leading quote, so a spreadsheet reads it as text. On Solo the answer is 403 `plan_required`.",
        "responses": {
          "200": {
            "description": "The file",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "id,url,title,state,ask,currency,usual,rating,rating_label,sample_size,days_listed,checked_at,paid,recon,other_costs,target_margin,stock_number\n8Kq2Vd41xP,https://www.facebook.com/marketplace/item/1234567890123456,2019 Honda Civic LX,tracking,14500.0,USD,16200.0,good_price,Good price,23,6,2026-11-16T09:12:00Z,12400.0,700.0,250.0,1500.0,A1147\n"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/listings/{id}": {
      "get": {
        "operationId": "getMarketsListing",
        "summary": "One tracked listing",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsListingId"
          }
        ],
        "responses": {
          "200": {
            "description": "The tracked listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsListing"
                },
                "example": {
                  "id": "8Kq2Vd41xP",
                  "url": "https://www.facebook.com/marketplace/item/1234567890123456",
                  "state": "tracking",
                  "title": "2019 Honda Civic LX",
                  "ask": 14500.0,
                  "currency": "USD",
                  "usual": 16200.0,
                  "rating": "good_price",
                  "rating_label": "Good price",
                  "sample_size": 23,
                  "thin": false,
                  "similar_listings": {
                    "scope": "country",
                    "url": "https://app.crawlbench.com/markets/yours/8Kq2Vd41xP"
                  },
                  "days_listed": 6,
                  "checked_at": "2026-11-16T09:12:00Z",
                  "estimate": null,
                  "paid": null,
                  "recon": null,
                  "other_costs": null,
                  "target_margin": null,
                  "stock_number": null,
                  "cost_to_market": null,
                  "margin_price": null,
                  "description": null,
                  "photo_urls": []
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "patch": {
        "operationId": "updateMarketsListingCosts",
        "summary": "Set your costs and margin",
        "description": "Markets keys, on Markets Team and Scale. Send any of `paid`, `recon`, `other_costs`, `target_margin` (amounts in the listing's currency, major units) and `stock_number`. A key you leave out stays as it is; null clears it. Nothing is saved when an amount is not a number: the answer is 422 `validation_failed` and names it. The amounts are your team's own: they are never shown to another team or counted in a group number.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsListingId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paid": {
                    "description": "What you paid for the listing. Null clears it.",
                    "type": [
                      "number",
                      "string",
                      "null"
                    ]
                  },
                  "recon": {
                    "description": "What you spent on reconditioning. Null clears it.",
                    "type": [
                      "number",
                      "string",
                      "null"
                    ]
                  },
                  "other_costs": {
                    "description": "Your other costs on the listing. Null clears it.",
                    "type": [
                      "number",
                      "string",
                      "null"
                    ]
                  },
                  "target_margin": {
                    "description": "The margin you aim for. Null clears it.",
                    "type": [
                      "number",
                      "string",
                      "null"
                    ]
                  },
                  "stock_number": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Up to 40 characters."
                  }
                }
              },
              "example": {
                "paid": 11200,
                "recon": 600,
                "target_margin": 1500
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tracked listing with its costs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsListing"
                },
                "example": {
                  "id": "8Kq2Vd41xP",
                  "url": "https://www.facebook.com/marketplace/item/1234567890123456",
                  "state": "tracking",
                  "title": "2019 Honda Civic LX",
                  "ask": 14500.0,
                  "currency": "USD",
                  "usual": 16200.0,
                  "rating": "good_price",
                  "rating_label": "Good price",
                  "sample_size": 23,
                  "thin": false,
                  "similar_listings": {
                    "scope": "country",
                    "url": "https://app.crawlbench.com/markets/yours/8Kq2Vd41xP"
                  },
                  "days_listed": 6,
                  "checked_at": "2026-11-16T09:12:00Z",
                  "estimate": null,
                  "paid": 11200.0,
                  "recon": 600.0,
                  "other_costs": null,
                  "target_margin": 1500.0,
                  "stock_number": null,
                  "cost_to_market": 11800.0,
                  "margin_price": 13300.0,
                  "description": null,
                  "photo_urls": []
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "operationId": "deleteMarketsListing",
        "summary": "Stop tracking",
        "description": "The listing leaves Your listings and frees its place on your plan. Adding it again counts as a new add.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsListingId"
          }
        ],
        "responses": {
          "204": {
            "description": "The listing is no longer tracked"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/usage": {
      "get": {
        "operationId": "getMarketsUsage",
        "summary": "Every Markets budget and what is used of it",
        "description": "Your Markets plan's limits and what is used of them. Calls this month are this team's Markets keys. The budgets count across every team you own, as your plan does. A limit your plan does not set is null. scale_from_usd is the Markets Scale price a Team plan can move to. upgrade is that sentence on Team, and null on the other plans.",
        "responses": {
          "200": {
            "description": "The plan's limits and their use",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsUsage"
                },
                "example": {
                  "plan": "team",
                  "scale_from_usd": 799,
                  "upgrade": "Markets Scale is from $799 a month.",
                  "calls_per_minute": 120,
                  "calls_this_month": 1284,
                  "own_listings": {
                    "used": 38,
                    "limit": 250
                  },
                  "adds": {
                    "today": 12,
                    "per_day": 500,
                    "per_minute_per_key": 10,
                    "resets_at": "2026-11-18T00:00:00Z"
                  },
                  "saved": {
                    "used": 12,
                    "limit": 150
                  },
                  "saves": {
                    "today": 4,
                    "per_day": 30,
                    "resets_at": "2026-11-18T00:00:00Z"
                  },
                  "markets_read": {
                    "today": 0,
                    "per_day": null
                  },
                  "listing_pages": {
                    "per_market": 2,
                    "page_size": 50,
                    "window_days": 30
                  },
                  "calls": {
                    "today": 80,
                    "per_day": 10000,
                    "per_minute": 120
                  },
                  "keys": {
                    "live": 1,
                    "limit": 5
                  },
                  "searches": {
                    "today": 3,
                    "per_day": 200
                  },
                  "unsaved_estimates": {
                    "today": 1,
                    "per_day": 20
                  },
                  "city_feed": {
                    "today": 0,
                    "per_day": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/estimates": {
      "post": {
        "operationId": "createMarketsEstimate",
        "summary": "Estimate a price before listing",
        "description": "Markets keys, on Markets Team and Scale. What to ask for an item before you list it. Send its category, its facts (for a car: year, make, model, variant, and km or miles) and where it is: a postcode or a town or suburb, with its country. We find similar listings from the facts the way we do for a listing you track, and answer with the usual asking price and its range at one of three levels: `sure` (10 or more similar listings, at least half the same model) gives both, `thin` (5 to 9, or mostly other models, with at least one of the same model for a car) gives the range alone, and `none` (under 5, asks too far apart, a make or model we don't know yet, or a car with no similar listing of its own model) gives no numbers; `reason` says why for `thin` and `none`. Prices are asking prices on Marketplace only, in the place's currency. Every input you send comes back in `inputs`, marked used or not used with why; a car's condition never moves its price. Free, Solo and Team get the 5 closest similar listings. Scale gets the 10 closest. Each estimate counts as one of your account's adds a day, shared with adding listings to track; past it the answer is 429 `rate_limited` with `Retry-After`. A car you have not saved in an area that holds the place also counts toward 20 unsaved checks a day on Free, Solo and Team. Past that, the answer is 429 `unsaved_estimates_limit`. A saved car stays inside the day's adds. A place we can't read answers 422 `validation_failed` with what to send instead. When similar listings can't be checked just then, the answer is 503 `unavailable` with `Retry-After`: nothing is kept, no add is counted, and the same Idempotency-Key may retry. Send a new Idempotency-Key with every estimate: a retry with the same key gets the first answer back and counts once.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketsEstimateItem"
              },
              "example": {
                "category": "vehicles",
                "facts": {
                  "year": 2019,
                  "make": "Toyota",
                  "model": "Camry",
                  "variant": "SE",
                  "mileage_mi": 48000,
                  "condition": "used_good"
                },
                "place": "Dallas",
                "country": "US"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The estimate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsEstimate"
                },
                "example": {
                  "id": "Rt7mQ2xk9B",
                  "level": "sure",
                  "reason": null,
                  "category": "vehicles",
                  "currency": "USD",
                  "based_on": "asking_prices",
                  "usual": 18900.0,
                  "low": 17500.0,
                  "high": 20400.0,
                  "sample_size": 31,
                  "thin": false,
                  "same_model_count": 24,
                  "place": {
                    "name": "Dallas",
                    "country": "US"
                  },
                  "inputs": [
                    {
                      "name": "year",
                      "value": "2019",
                      "used": true,
                      "reason": "Read to find similar cars."
                    },
                    {
                      "name": "make",
                      "value": "Toyota",
                      "used": true,
                      "reason": "Read to find similar cars."
                    },
                    {
                      "name": "model",
                      "value": "Camry",
                      "used": true,
                      "reason": "Read to find similar cars."
                    },
                    {
                      "name": "variant",
                      "value": "SE",
                      "used": true,
                      "reason": "Read to find similar cars."
                    },
                    {
                      "name": "mileage_mi",
                      "value": "48000",
                      "used": true,
                      "reason": "Read, and moves the usual price by how far similar cars have been driven."
                    },
                    {
                      "name": "condition",
                      "value": "used_good",
                      "used": false,
                      "reason": "Condition never moves a car's price."
                    }
                  ],
                  "similar_listings": [
                    {
                      "title": "2019 Toyota Camry SE",
                      "ask": 18900,
                      "year": 2019,
                      "mileage_mi": 46200,
                      "odometer": "46,200 mi",
                      "distance_km": 3.4,
                      "days_listed": 4,
                      "url": "https://www.facebook.com/marketplace/item/8812345067891234",
                      "same_model": true
                    },
                    {
                      "title": "2019 Toyota Camry SE",
                      "ask": 19400,
                      "year": 2019,
                      "mileage_mi": 51800,
                      "odometer": "51,800 mi",
                      "distance_km": 6.1,
                      "days_listed": 2,
                      "url": "https://www.facebook.com/marketplace/item/8823456178902345",
                      "same_model": true
                    },
                    {
                      "title": "2019 Toyota Camry LE",
                      "ask": 17800,
                      "year": 2019,
                      "mileage_mi": 49500,
                      "odometer": "49,500 mi",
                      "distance_km": 8.7,
                      "days_listed": 9,
                      "url": "https://www.facebook.com/marketplace/item/8834567289013456",
                      "same_model": true
                    },
                    {
                      "title": "2019 Toyota Camry XSE",
                      "ask": 20400,
                      "year": 2019,
                      "mileage_mi": 44100,
                      "odometer": "44,100 mi",
                      "distance_km": 11.2,
                      "days_listed": 6,
                      "url": "https://www.facebook.com/marketplace/item/8845678390124567",
                      "same_model": true
                    },
                    {
                      "title": "2019 Toyota Camry SE",
                      "ask": 18500,
                      "year": 2019,
                      "mileage_mi": 57300,
                      "odometer": "57,300 mi",
                      "distance_km": 14.8,
                      "days_listed": 3,
                      "url": "https://www.facebook.com/marketplace/item/8856789401235678",
                      "same_model": true
                    },
                    {
                      "title": "2019 Honda Accord Sport",
                      "ask": 19200,
                      "year": 2019,
                      "mileage_mi": 47900,
                      "odometer": "47,900 mi",
                      "distance_km": 17.5,
                      "days_listed": 5,
                      "url": "https://www.facebook.com/marketplace/item/8867890512346789",
                      "same_model": false
                    },
                    {
                      "title": "2019 Toyota Camry SE",
                      "ask": 18200,
                      "year": 2019,
                      "mileage_mi": 61400,
                      "odometer": "61,400 mi",
                      "distance_km": 21.3,
                      "days_listed": 11,
                      "url": "https://www.facebook.com/marketplace/item/8878901623457890",
                      "same_model": true
                    },
                    {
                      "title": "2019 Toyota Camry LE",
                      "ask": 17500,
                      "year": 2019,
                      "mileage_mi": 53600,
                      "odometer": "53,600 mi",
                      "distance_km": 26.9,
                      "days_listed": 7,
                      "url": "https://www.facebook.com/marketplace/item/8889012734568901",
                      "same_model": true
                    },
                    {
                      "title": "2019 Honda Accord EX",
                      "ask": 19900,
                      "year": 2019,
                      "mileage_mi": 42800,
                      "odometer": "42,800 mi",
                      "distance_km": 33.0,
                      "days_listed": 1,
                      "url": "https://www.facebook.com/marketplace/item/8890123845679012",
                      "same_model": false
                    },
                    {
                      "title": "2019 Toyota Camry SE",
                      "ask": 19600,
                      "year": 2019,
                      "mileage_mi": 39700,
                      "odometer": "39,700 mi",
                      "distance_km": 40.6,
                      "days_listed": 8,
                      "url": "https://www.facebook.com/marketplace/item/8901234956780123",
                      "same_model": true
                    }
                  ],
                  "created_at": "2026-11-17T09:30:00Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "503": {
            "description": "Similar listings could not be checked just then (`unavailable`). Nothing is kept and no add is counted; try again after `Retry-After`.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/markets/estimates/bulk": {
      "post": {
        "operationId": "bulkMarketsEstimates",
        "summary": "Estimate many prices before listing",
        "description": "Markets keys, on Markets Team and Scale. Send a JSON list of items or a CSV with columns category, country, place, optional title, and one column per fact. Up to 25 rows; one more is refused before any row is priced. Each row uses the same pricing rules as POST /v1/markets/estimates. Priced rows get a verdict and price on that row; refused rows get error on that row. When adds a day run out, that row returns error code rate_limited instead of HTTP 429. When similar listings cannot be checked, that row returns error code unavailable on HTTP 200 instead of a whole-call HTTP 503. Each priced row counts as one of your account's adds a day. Send a new Idempotency-Key with every call: a retry with the same key gets the first answer back.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "rows"
                ],
                "properties": {
                  "rows": {
                    "description": "The items to estimate, one row for each.",
                    "type": "array",
                    "maxItems": 25,
                    "items": {
                      "$ref": "#/components/schemas/MarketsEstimateItem"
                    }
                  }
                }
              },
              "example": {
                "rows": [
                  {
                    "category": "vehicles",
                    "country": "AU",
                    "place": "2250",
                    "facts": {
                      "year": 2012,
                      "make": "Volkswagen",
                      "model": "Passat",
                      "mileage_km": 305000
                    }
                  },
                  {
                    "category": "vehicles",
                    "country": "AU",
                    "place": "Gosford",
                    "facts": {
                      "year": 2010,
                      "make": "Toyota",
                      "model": "Hilux"
                    }
                  }
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "category,country,place,year,make,model,mileage_km\nvehicles,AU,2250,2012,Volkswagen,Passat,305000\nvehicles,AU,Gosford,2010,Toyota,Hilux,180000\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "One row for each item sent",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsEstimateBulkRow"
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "line": 1,
                      "estimate": {
                        "id": "Rt7mQ2xk9B",
                        "level": "sure",
                        "reason": null,
                        "category": "vehicles",
                        "currency": "AUD",
                        "based_on": "asking_prices",
                        "usual": 5200.0,
                        "low": 4500.0,
                        "high": 6000.0,
                        "sample_size": 12,
                        "thin": false,
                        "same_model_count": 9,
                        "place": {
                          "name": "2250",
                          "country": "AU"
                        },
                        "created_at": "2026-11-17T09:30:00Z"
                      }
                    },
                    {
                      "line": 2,
                      "error": {
                        "code": "validation_failed",
                        "message": "Send the country with a town or suburb, as in Toronto, CA."
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/watches": {
      "get": {
        "operationId": "listMarketWatches",
        "summary": "Your watches",
        "description": "Markets keys, on every paid Markets plan. Named sets of saved markets, oldest name first, with the rule and the saved markets in each.",
        "responses": {
          "200": {
            "description": "The team's watches",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketWatch"
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "q7Hk2mPx9a",
                      "name": "Dallas pickups",
                      "rule": "usual_price",
                      "threshold": 5,
                      "saved_markets": [
                        "Jt5n8WcR2d",
                        "b3Lm6QvY1s"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "operationId": "createMarketWatch",
        "summary": "Watch a set of saved markets",
        "description": "Markets keys, on every paid Markets plan. One named set, one rule and a threshold in percent, for the usual price or the price-cut share. Usual price is on every paid plan. Price-cut share is Markets Scale only, and a Team key answers 403 `plan_required`. Every id in `saved_market_ids` must be a saved market of the team: one that is not answers 422 `validation_failed` (\"Choose saved markets on this team.\") and creates nothing. A team holds 25 watches on Markets Team and 100 on Scale; the next one answers 429 `watch_limit_reached` until one is removed. The same watch the Watches page saves.",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "rule",
                  "threshold",
                  "saved_market_ids"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 60,
                    "description": "Your name for it, once per team."
                  },
                  "rule": {
                    "type": "string",
                    "enum": [
                      "usual_price",
                      "price_cut_share"
                    ]
                  },
                  "threshold": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "How far it moves before you are told."
                  },
                  "saved_market_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Public ids of saved markets on this team."
                  }
                }
              },
              "example": {
                "name": "Dallas pickups",
                "rule": "usual_price",
                "threshold": 5,
                "saved_market_ids": [
                  "Jt5n8WcR2d",
                  "b3Lm6QvY1s"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The watch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketWatch"
                },
                "example": {
                  "id": "q7Hk2mPx9a",
                  "name": "Dallas pickups",
                  "rule": "usual_price",
                  "threshold": 5,
                  "saved_markets": [
                    "Jt5n8WcR2d",
                    "b3Lm6QvY1s"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/watches/{id}": {
      "get": {
        "operationId": "getMarketWatch",
        "summary": "One watch, with its recent alerts",
        "description": "Markets keys, on every paid Markets plan. The watch and up to 20 alerts, newest first.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketWatchId"
          }
        ],
        "responses": {
          "200": {
            "description": "The watch",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketWatch"
                },
                "example": {
                  "id": "q7Hk2mPx9a",
                  "name": "Dallas pickups",
                  "rule": "usual_price",
                  "threshold": 5,
                  "saved_markets": [
                    "Jt5n8WcR2d",
                    "b3Lm6QvY1s"
                  ],
                  "alerts": [
                    {
                      "day": "2026-11-27",
                      "summary": "Dallas pickups: 2019 Ford F-150 usual price moved 6% in 30 days."
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "patch": {
        "operationId": "updateMarketWatch",
        "summary": "Change a watch",
        "description": "Markets keys, on every paid Markets plan. Send only what changes. `saved_market_ids` replaces the watch's saved markets, and every id must be a saved market of the team. The price-cut share rule is Markets Scale only: below it a watch with that rule answers 403 `plan_required` unless the change moves it to the usual price rule. A new rule, threshold or set of saved markets lets the watch alert again.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketWatchId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 60,
                    "description": "Your name for it, once per team."
                  },
                  "rule": {
                    "type": "string",
                    "enum": [
                      "usual_price",
                      "price_cut_share"
                    ]
                  },
                  "threshold": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "description": "How far it moves before you are told."
                  },
                  "saved_market_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Public ids of saved markets on this team. They replace the watch's set."
                  }
                }
              },
              "example": {
                "threshold": 4,
                "saved_market_ids": [
                  "Jt5n8WcR2d"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The watch as it now is",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketWatch"
                },
                "example": {
                  "id": "q7Hk2mPx9a",
                  "name": "Dallas pickups",
                  "rule": "usual_price",
                  "threshold": 4,
                  "saved_markets": [
                    "Jt5n8WcR2d"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "operationId": "deleteMarketWatch",
        "summary": "Remove a watch",
        "description": "Markets keys, on every paid Markets plan. The saved markets stay. Only the team's owner and admins remove one; a member's key answers 403 `forbidden`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketWatchId"
          }
        ],
        "responses": {
          "204": {
            "description": "Removed"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/saved": {
      "get": {
        "operationId": "listMarketsSaved",
        "summary": "Your saved markets, 50 a page",
        "description": "Markets keys, on Markets Team and Scale. Oldest saved first, each with the numbers the Saved markets card shows.",
        "parameters": [
          {
            "$ref": "#/components/parameters/After"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/UpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of saved markets",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsSavedMarket"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "Jt5n8WcR2d",
                      "name": "2019 Toyota Camry in Dallas, TX",
                      "alert_on_moves": true,
                      "segment": {
                        "id": "seg_K3mP9xQ2aL",
                        "key": "toyota|camry|2019",
                        "label": "2019 Toyota Camry",
                        "category": "vehicles"
                      },
                      "area": {
                        "type": "city",
                        "id": 123,
                        "value": "city:123",
                        "name": "Dallas, TX"
                      },
                      "url": "https://app.crawlbench.com/markets/saved/Jt5n8WcR2d",
                      "filling": false,
                      "status": "ready",
                      "fill": {},
                      "numbers": {
                        "currency": "USD",
                        "updated_on": "2026-11-28",
                        "usual": 17900.0,
                        "low": 15900.0,
                        "high": 19900.0,
                        "too_spread": false,
                        "thin": false,
                        "thin_words": null,
                        "few_similar_listings": false,
                        "sample": 40,
                        "change_30": -2,
                        "change_90": -4,
                        "new_week": 7,
                        "gone_in_days": 21,
                        "gone_in_days_gone": 64,
                        "gone_in_days_sold": 28,
                        "gone_in_days_missing": null,
                        "gone_in_days_missing_words": null,
                        "gone_in_days_30": 4,
                        "days_of_supply": 38,
                        "for_sale_now": 41,
                        "sold_last_30_days": 12,
                        "cuts_per_100": 5
                      }
                    }
                  ],
                  "pagination": {
                    "has_more": false,
                    "after": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "operationId": "createMarketsSaved",
        "summary": "Follow a market",
        "description": "Markets keys. Save one market in one area, as Add a market does, with segment_id and area on Team and Scale. A market you already follow in that area answers 200 with the row you have. Past your plan's saved markets the answer is 422 `saved_market_limit_reached`. Past today's new saves the answer is 429 `saved_market_daily_limit`, with `resets_at`. Removing a market does not give today's save back. Markets Scale can send make, model, year and area instead of segment_id. The car must be one the catalog lists. An unknown car answers 422 `validation_failed` and creates nothing. A car that already has a row is the same save. A car with no row answers 202, `status` filling, and its first check starts. That row is not published and no picker lists it until it qualifies. GET then shows `status` filling and `numbers` null until the first numbers are ready, then `status` ready. The person who added it is emailed, and a Markets endpoint that picked `market.ready` is called. Solo, Team and a Day Pass answer 403 `plan_required` for make, model and year. A frozen account is refused. A contract allows 20 new markets a day and 5 filling at once, and staff can raise or lower both. The next one answers 429 `new_market_daily_limit` or `markets_filling_limit`, with `resets_at` and `Retry-After`. Deleting one does not give the day's new market back.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "segment_id",
                      "area"
                    ],
                    "properties": {
                      "segment_id": {
                        "type": "string",
                        "description": "The market's id from GET /v1/markets/segments, like seg_K3mP9xQ2aL. A number is a 404."
                      },
                      "area": {
                        "type": "string",
                        "description": "The area to follow, like `country:840` or `city:7`."
                      }
                    }
                  },
                  {
                    "type": "object",
                    "description": "Markets Scale. A catalog car, by the names the catalog lists.",
                    "required": [
                      "make",
                      "model",
                      "year",
                      "area"
                    ],
                    "properties": {
                      "make": {
                        "type": "string"
                      },
                      "model": {
                        "type": "string"
                      },
                      "year": {
                        "type": "integer"
                      },
                      "area": {
                        "type": "string",
                        "description": "The area to follow, like `country:840` or `city:7`."
                      }
                    }
                  }
                ]
              },
              "example": {
                "segment_id": "seg_K3mP9xQ2aL",
                "area": "city:123"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You already follow this market in this area",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsSavedMarket"
                }
              }
            }
          },
          "201": {
            "description": "The market is saved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsSavedMarket"
                },
                "example": {
                  "id": "Jt5n8WcR2d",
                  "name": "2019 Toyota Camry in Dallas, TX",
                  "alert_on_moves": true,
                  "segment": {
                    "id": "seg_K3mP9xQ2aL",
                    "key": "toyota|camry|2019",
                    "label": "2019 Toyota Camry",
                    "category": "vehicles"
                  },
                  "area": {
                    "type": "city",
                    "id": 123,
                    "value": "city:123",
                    "name": "Dallas, TX"
                  },
                  "url": "https://app.crawlbench.com/markets/saved/Jt5n8WcR2d",
                  "filling": false,
                  "status": "ready",
                  "fill": {},
                  "numbers": {
                    "currency": "USD",
                    "updated_on": "2026-11-28",
                    "usual": 17900.0,
                    "low": 15900.0,
                    "high": 19900.0,
                    "too_spread": false,
                    "thin": false,
                    "thin_words": null,
                    "few_similar_listings": false,
                    "sample": 40,
                    "change_30": -2,
                    "change_90": -4,
                    "new_week": 7,
                    "gone_in_days": 21,
                    "gone_in_days_gone": 64,
                    "gone_in_days_sold": 28,
                    "gone_in_days_missing": null,
                    "gone_in_days_missing_words": null,
                    "gone_in_days_30": 4,
                    "days_of_supply": 38,
                    "for_sale_now": 41,
                    "sold_last_30_days": 12,
                    "cuts_per_100": 5
                  }
                }
              }
            }
          },
          "202": {
            "description": "The market is saved and still filling. No numbers yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsSavedMarket"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/saved/{id}/listings": {
      "get": {
        "operationId": "listMarketsSavedListings",
        "summary": "Listings in one saved market",
        "description": "Markets keys, on Markets Team and Scale, for a market this team has saved. An unsaved market is not on this route. Team reads 50 a page and 2 pages a day, back 30 days. Scale reads 100 a page and 5 pages a day, back 90 days. A repeat of the same listings slice is free. Another slice, a different cursor, time bound or page size, costs a page. Past the day's pages the answer is 429 `listing_pages_reached`. Whole-market listings stay on GET /markets/{segment}/listings, which is Markets Scale.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsSavedMarketId"
          },
          {
            "$ref": "#/components/parameters/After"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "name": "first_seen_since",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "ISO 8601. A time before the plan's window is raised to that window."
          },
          {
            "name": "last_seen_since",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "ISO 8601. A time before the plan's window is raised to that window."
          }
        ],
        "responses": {
          "200": {
            "description": "One page of listings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsSegmentListing"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "1129384756102938",
                      "title": "2019 Toyota Camry SE",
                      "url": "https://www.facebook.com/marketplace/item/1234567890123456",
                      "price": 15400.0,
                      "currency": "USD",
                      "place": "Dallas, TX",
                      "first_seen_at": "2026-11-28T08:44:00Z",
                      "last_seen_at": "2026-11-28T11:00:00Z",
                      "posted_at": "2026-11-28T08:40:00Z",
                      "days_listed": 1,
                      "price_history": [
                        {
                          "amount": 16200.0,
                          "currency": "USD",
                          "previous": null,
                          "kind": "first",
                          "observed_at": "2026-11-28T08:44:00Z"
                        },
                        {
                          "amount": 15400.0,
                          "currency": "USD",
                          "previous": 16200.0,
                          "kind": "cut",
                          "observed_at": "2026-11-28T10:05:00Z"
                        }
                      ]
                    }
                  ],
                  "pagination": {
                    "has_more": false,
                    "after": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/saved/{id}/export": {
      "get": {
        "operationId": "exportMarketsSavedCsv",
        "summary": "Daily CSV for one saved market",
        "description": "Markets keys, on Markets Team and Scale, for a market this team has saved. The same columns as the market page's CSV, at most the last 90 days. Counted as one market read and as one call. An unsaved market is 403 on GET /markets/{segment}/export. On Solo the answer is 403 `plan_required`. A market with no usual price answers 422 `validation_failed`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsSavedMarketId"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "30d",
                "90d",
                "1y"
              ]
            },
            "description": "30d or 90d. 1y is read as 90d. No row is older than 90 days."
          }
        ],
        "responses": {
          "200": {
            "description": "The daily CSV file",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "day,currency,usual_price,low_price,high_price,similar_listings,new_listings,price_cuts\n2026-11-27,USD,17900.0,15900.0,19900.0,41,2,1\n2026-11-28,USD,17900.0,15900.0,19900.0,40,1,2\n"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/saved/{id}": {
      "get": {
        "operationId": "getMarketsSaved",
        "summary": "One saved market",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsSavedMarketId"
          }
        ],
        "responses": {
          "200": {
            "description": "The saved market",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsSavedMarket"
                },
                "example": {
                  "id": "Jt5n8WcR2d",
                  "name": "2019 Toyota Camry in Dallas, TX",
                  "alert_on_moves": true,
                  "segment": {
                    "id": "seg_K3mP9xQ2aL",
                    "key": "toyota|camry|2019",
                    "label": "2019 Toyota Camry",
                    "category": "vehicles"
                  },
                  "area": {
                    "type": "city",
                    "id": 123,
                    "value": "city:123",
                    "name": "Dallas, TX"
                  },
                  "url": "https://app.crawlbench.com/markets/saved/Jt5n8WcR2d",
                  "filling": false,
                  "status": "ready",
                  "fill": {},
                  "numbers": {
                    "currency": "USD",
                    "updated_on": "2026-11-28",
                    "usual": 17900.0,
                    "low": 15900.0,
                    "high": 19900.0,
                    "too_spread": false,
                    "thin": false,
                    "thin_words": null,
                    "few_similar_listings": false,
                    "sample": 40,
                    "change_30": -2,
                    "change_90": -4,
                    "new_week": 7,
                    "gone_in_days": 21,
                    "gone_in_days_gone": 64,
                    "gone_in_days_sold": 28,
                    "gone_in_days_missing": null,
                    "gone_in_days_missing_words": null,
                    "gone_in_days_30": 4,
                    "days_of_supply": 38,
                    "for_sale_now": 41,
                    "sold_last_30_days": 12,
                    "cuts_per_100": 5
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "patch": {
        "operationId": "updateMarketsSaved",
        "summary": "Set alert on moves",
        "description": "Markets keys, on Markets Team and Scale. Turn alert on moves on or off for one saved market.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsSavedMarketId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "alert_on_moves"
                ],
                "properties": {
                  "alert_on_moves": {
                    "type": "boolean",
                    "description": "When true, move alerts for this market reach you at your pace."
                  }
                }
              },
              "example": {
                "alert_on_moves": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The saved market with its new setting",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsSavedMarket"
                },
                "example": {
                  "id": "Jt5n8WcR2d",
                  "name": "2019 Toyota Camry in Dallas, TX",
                  "alert_on_moves": false,
                  "segment": {
                    "id": "seg_K3mP9xQ2aL",
                    "key": "toyota|camry|2019",
                    "label": "2019 Toyota Camry",
                    "category": "vehicles"
                  },
                  "area": {
                    "type": "city",
                    "id": 123,
                    "value": "city:123",
                    "name": "Dallas, TX"
                  },
                  "url": "https://app.crawlbench.com/markets/saved/Jt5n8WcR2d",
                  "filling": false,
                  "status": "ready",
                  "fill": {},
                  "numbers": {
                    "currency": "USD",
                    "updated_on": "2026-11-28",
                    "usual": 17900.0,
                    "low": 15900.0,
                    "high": 19900.0,
                    "too_spread": false,
                    "thin": false,
                    "thin_words": null,
                    "few_similar_listings": false,
                    "sample": 40,
                    "change_30": -2,
                    "change_90": -4,
                    "new_week": 7,
                    "gone_in_days": 21,
                    "gone_in_days_gone": 64,
                    "gone_in_days_sold": 28,
                    "gone_in_days_missing": null,
                    "gone_in_days_missing_words": null,
                    "gone_in_days_30": 4,
                    "days_of_supply": 38,
                    "for_sale_now": 41,
                    "sold_last_30_days": 12,
                    "cuts_per_100": 5
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "delete": {
        "operationId": "deleteMarketsSaved",
        "summary": "Remove from Saved markets",
        "description": "The market leaves Saved markets and frees its place on your plan. Saving it again counts as a new save, and does not give today's save back. Only the team's owner and admins remove one; a member's key answers 403 `forbidden`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsSavedMarketId"
          }
        ],
        "responses": {
          "204": {
            "description": "The market is no longer saved"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/reports": {
      "get": {
        "operationId": "listMarketsReports",
        "summary": "Your shared report links, 50 a page",
        "description": "Markets keys, on Markets Team and Scale. Newest first. On Solo the answer is 403 `plan_required`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/After"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/UpdatedSince"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of shared reports",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/MarketsReport"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "Rp4wN8sT2c",
                      "url": "https://crawlbench.com/markets/reports/XXXX",
                      "segment": {
                        "id": "seg_K3mP9xQ2aL",
                        "key": "toyota|camry|2019",
                        "label": "2019 Toyota Camry",
                        "category": "vehicles"
                      },
                      "area": {
                        "type": "city",
                        "id": 123,
                        "value": "city:123",
                        "name": "Dallas, TX"
                      },
                      "period": "90d",
                      "period_label": "90 days",
                      "shared_by": "Alex Sample",
                      "created_at": "2026-11-28T10:30:00Z"
                    }
                  ],
                  "pagination": {
                    "has_more": false,
                    "after": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "operationId": "createMarketsReport",
        "summary": "Share a report link",
        "description": "Markets keys, on Markets Team and Scale. Make a read-only link to one saved market, as Share report on a market page. The area defaults to the saved market's own area. A market with no usual price answers 422 `validation_failed`. A matching report answers 200 with the row you have. On Solo the answer is 403 `plan_required`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "saved_market_id"
                ],
                "properties": {
                  "saved_market_id": {
                    "type": "string",
                    "description": "A saved market's id."
                  },
                  "area": {
                    "type": "string",
                    "description": "The area in the report, like `country:840`. Optional; defaults to the saved market's area."
                  },
                  "period": {
                    "type": "string",
                    "enum": [
                      "30d",
                      "90d",
                      "1y"
                    ],
                    "description": "How many days the report shows. Optional; defaults to 90d when your plan allows it."
                  }
                }
              },
              "example": {
                "saved_market_id": "Jt5n8WcR2d",
                "period": "90d"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You already have a report for this market, area and period",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsReport"
                }
              }
            }
          },
          "201": {
            "description": "The report link is ready",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsReport"
                },
                "example": {
                  "id": "Rp4wN8sT2c",
                  "url": "https://crawlbench.com/markets/reports/XXXX",
                  "segment": {
                    "id": "seg_K3mP9xQ2aL",
                    "key": "toyota|camry|2019",
                    "label": "2019 Toyota Camry",
                    "category": "vehicles"
                  },
                  "area": {
                    "type": "city",
                    "id": 123,
                    "value": "city:123",
                    "name": "Dallas, TX"
                  },
                  "period": "90d",
                  "period_label": "90 days",
                  "shared_by": "Alex Sample",
                  "created_at": "2026-11-28T10:30:00Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/reports/{id}": {
      "delete": {
        "operationId": "deleteMarketsReport",
        "summary": "Stop sharing a report",
        "description": "Markets keys, on Markets Team and Scale. The link stops working at once. Only the team's owner and admins stop one; a member's key answers 403 `forbidden`. On Solo the answer is 403 `plan_required`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsReportId"
          }
        ],
        "responses": {
          "204": {
            "description": "The report is gone"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/markets/reports/{id}/rotate": {
      "post": {
        "operationId": "rotateMarketsReport",
        "summary": "Replace a report link",
        "description": "Markets keys, on Markets Team and Scale. A new link replaces the old one, which answers Not found at once. Only the team's owner and admins replace one; a member's key answers 403 `forbidden`. On Solo the answer is 403 `plan_required`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/MarketsReportId"
          }
        ],
        "responses": {
          "200": {
            "description": "The report with its new link",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketsReport"
                },
                "example": {
                  "id": "Rp4wN8sT2c",
                  "url": "https://crawlbench.com/markets/reports/YYYY",
                  "segment": {
                    "id": "seg_K3mP9xQ2aL",
                    "key": "toyota|camry|2019",
                    "label": "2019 Toyota Camry",
                    "category": "vehicles"
                  },
                  "area": {
                    "type": "city",
                    "id": 123,
                    "value": "city:123",
                    "name": "Dallas, TX"
                  },
                  "period": "90d",
                  "period_label": "90 days",
                  "shared_by": "Alex Sample",
                  "created_at": "2026-11-28T10:30:00Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    }
  },
  "webhooks": {
    "tracked_listing.ready": {
      "post": {
        "operationId": "receive_tracked_listing_ready",
        "summary": "tracked_listing.ready",
        "description": "A listing you added is checked and has its price rating. `data` is the tracked listing as GET /markets/listings/{id} reads it. Markets Team and Scale: we POST this message to each Markets endpoint, made in Developers for Markets, that picked the event, signed as Developers says; answer 2xx to take it. Deals endpoints never get it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackedListingMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Taken. Any 2xx counts."
          }
        }
      }
    },
    "tracked_listing.price_changed": {
      "post": {
        "operationId": "receive_tracked_listing_price_changed",
        "summary": "tracked_listing.price_changed",
        "description": "Its ask went up or down. `ask` is the new ask and `ask_before` the one before. Markets Team and Scale: we POST this message to each Markets endpoint, made in Developers for Markets, that picked the event, signed as Developers says; answer 2xx to take it. Deals endpoints never get it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackedListingMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Taken. Any 2xx counts."
          }
        }
      }
    },
    "tracked_listing.rating_changed": {
      "post": {
        "operationId": "receive_tracked_listing_rating_changed",
        "summary": "tracked_listing.rating_changed",
        "description": "Its price rating moved, say from Fair price to Good price. `rating_label_before` is the one before. Markets Team and Scale: we POST this message to each Markets endpoint, made in Developers for Markets, that picked the event, signed as Developers says; answer 2xx to take it. Deals endpoints never get it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackedListingMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Taken. Any 2xx counts."
          }
        }
      }
    },
    "tracked_listing.left": {
      "post": {
        "operationId": "receive_tracked_listing_left",
        "summary": "tracked_listing.left",
        "description": "It left Marketplace. `status` says sold or gone, and `state` reads left. Markets Team and Scale: we POST this message to each Markets endpoint, made in Developers for Markets, that picked the event, signed as Developers says; answer 2xx to take it. Deals endpoints never get it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrackedListingMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Taken. Any 2xx counts."
          }
        }
      }
    },
    "market_watch.crossed": {
      "post": {
        "operationId": "receive_market_watch_crossed",
        "summary": "market_watch.crossed",
        "description": "A watch crossed the line the team set. Markets Team and Scale: we POST this message to each Markets endpoint that picked the event, signed as Developers says; answer 2xx to take it. Deals endpoints never get it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketWatchMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Taken. Any 2xx counts."
          }
        }
      }
    },
    "market.ready": {
      "post": {
        "operationId": "receive_market_ready",
        "summary": "market.ready",
        "description": "A market added by make, model and year has its first numbers. `status` is ready. Markets Scale: we POST this message to each Markets endpoint that picked the event, signed as Developers says; answer 2xx to take it. Deals endpoints never get it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketReadyMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Taken. Any 2xx counts."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "key": {
        "type": "http",
        "scheme": "bearer",
        "description": "A session, team or data key."
      },
      "chatbot": {
        "type": "oauth2",
        "description": "A chatbot connected by signing in. Its token works on /mcp only.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://app.crawlbench.com/connect",
            "tokenUrl": "https://app.crawlbench.com/oauth/token",
            "scopes": {
              "mcp": "The person's searches and listings on one team, through their role."
            }
          }
        }
      }
    },
    "requestBodies": {},
    "parameters": {
      "After": {
        "name": "after",
        "in": "query",
        "description": "The `after` value of the page before.",
        "schema": {
          "type": "string"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "description": "Rows on one page, 1 to 100.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 50
        }
      },
      "UpdatedSince": {
        "name": "updated_since",
        "in": "query",
        "description": "Only rows changed at or after this time, ISO 8601 with its zone.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "Any string of 1 to 255 characters, new for each action.",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        }
      },
      "MarketsListingId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The tracked listing's id.",
        "schema": {
          "type": "string"
        }
      },
      "MarketsSavedMarketId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "A saved market's public id, 10 letters and digits. Not the row number.",
        "schema": {
          "type": "string"
        }
      },
      "MarketWatchId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The watch's id.",
        "schema": {
          "type": "string"
        }
      },
      "MarketsReportId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "A shared report's id, not the secret token in its link.",
        "schema": {
          "type": "string"
        }
      }
    },
    "headers": {
      "X-RateLimit-Limit": {
        "description": "Calls allowed each minute for this key.",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Remaining": {
        "description": "Calls left in this minute.",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Reset": {
        "description": "Seconds until the count starts again.",
        "schema": {
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before the next call.",
        "schema": {
          "type": "integer"
        }
      },
      "Idempotent-Replayed": {
        "description": "`true` when this is the stored answer to an earlier request with the same Idempotency-Key.",
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "PhotoUrls": {
        "type": "array",
        "description": "Every photo of the listing we hold, as https addresses, in the order the listing shows them. Empty when we hold none. A photo whose address has expired is left out, so the list can be shorter than `media.photos`. Addresses are signed by Marketplace and stop working after a while: download the photo when you read the listing.",
        "items": {
          "type": "string"
        }
      },
      "MarketsListing": {
        "type": "object",
        "description": "A listing you track in Markets, Your listings, as its last check stored it. Money is in the listing's currency, major units. The price rating fields are null until the first check rates it. The cost fields (`paid` to `margin_price`) are your team's own. They come on reads and updates with your key, never in a webhook message.",
        "required": [
          "id",
          "url",
          "state",
          "title",
          "ask",
          "currency",
          "usual",
          "rating",
          "rating_label",
          "sample_size",
          "thin",
          "similar_listings",
          "days_listed",
          "checked_at",
          "estimate"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "The Marketplace link it was added with."
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "tracking",
              "left",
              "not_found",
              "failed",
              "paused"
            ],
            "description": "`pending` until the first check, then `tracking`. `left` once a check saw it sold or gone from Marketplace. `not_found` when Marketplace has no such listing and `failed` when it could not be read; neither takes a place on your plan. `paused` while your account tracks more listings than its plan checks: the oldest keep their checks, and nothing is deleted."
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The listing's full text, as the seller wrote it. Null when we hold none."
          },
          "photo_urls": {
            "$ref": "#/components/schemas/PhotoUrls"
          },
          "ask": {
            "type": [
              "number",
              "null"
            ],
            "description": "The price it is listed at."
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "usual": {
            "type": [
              "number",
              "null"
            ],
            "description": "The usual price of similar listings."
          },
          "rating": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "super_price",
              "good_price",
              "fair_price",
              "a_bit_pricey",
              "expensive",
              "check_first",
              "held_back",
              "thin_market",
              "none",
              null
            ],
            "description": "The price rating's key. check_first is an ask 80% or more under the usual price, shown and worth reading before buying; held_back is a listing held back as noise; thin_market and none have too few similar listings for a price."
          },
          "rating_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "Great price, Good price, Fair price, High price, Check first, Held back or Few similar listings."
          },
          "sample_size": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many similar listings the usual price rests on."
          },
          "thin": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "True when the usual price rests on 5 to 9 similar listings, shown as Only N similar listings in the app. False at 10 or more, and under 5, where there is no usual price. Null before the first rating. The count is `sample_size`."
          },
          "similar_listings": {
            "type": [
              "object",
              "null"
            ],
            "description": "Null until the first rating.",
            "required": [
              "scope",
              "url"
            ],
            "properties": {
              "scope": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "country",
                  "city",
                  null
                ],
                "description": "Where similar listings were looked for, the whole country for cars and goods, the city for homes."
              },
              "url": {
                "type": "string",
                "description": "The listing on Your listings in the Crawlbench app."
              }
            }
          },
          "days_listed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Whole days since it was posted on Marketplace."
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was last checked."
          },
          "paid": {
            "type": [
              "number",
              "null"
            ],
            "description": "What your team paid for it, as you entered it. Your team's own: never shown to another team. Null until entered."
          },
          "recon": {
            "type": [
              "number",
              "null"
            ],
            "description": "What your team spent on recon. Null until entered."
          },
          "other_costs": {
            "type": [
              "number",
              "null"
            ],
            "description": "Other costs, like transport and fees. Null until entered."
          },
          "target_margin": {
            "type": [
              "number",
              "null"
            ],
            "description": "What your team wants to make on it. Null until entered."
          },
          "stock_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your team's own reference for the unit."
          },
          "cost_to_market": {
            "type": [
              "number",
              "null"
            ],
            "description": "What it has cost to bring to market today: `paid`, plus `recon`, plus `other_costs`, plus `days_listed` times your team's cost to hold a unit a day (set on Your listings). Null until `paid` is entered."
          },
          "margin_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "The price that keeps your margin: `cost_to_market` plus `target_margin`. Null until both are entered."
          },
          "estimate": {
            "type": [
              "object",
              "null"
            ],
            "description": "The price estimate made before listing that the add carried (`estimate_id`), as POST /markets/estimates answered it, to set beside the live price rating. Money is in the estimate's currency, major units. `usual` is set only at `sure`; `low` and `high` at `sure` and `thin`; at `none` all three are null. Null when the add carried none, or the estimate was deleted.",
            "required": [
              "id",
              "level",
              "currency",
              "usual",
              "low",
              "high",
              "sample_size",
              "thin",
              "created_at"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "level": {
                "type": "string",
                "enum": [
                  "sure",
                  "thin",
                  "none"
                ]
              },
              "currency": {
                "type": "string"
              },
              "usual": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "low": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "high": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "sample_size": {
                "type": "integer",
                "description": "How many similar listings the estimate rested on."
              },
              "thin": {
                "type": "boolean",
                "description": "True when the estimate rests on 5 to 9 similar listings. False at 10 or more, and under 5."
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "TrackedListingMessage": {
        "type": "object",
        "required": [
          "api_version",
          "event",
          "event_id",
          "delivered_at",
          "data"
        ],
        "description": "One Markets webhook delivery, as the receiver gets it.",
        "properties": {
          "api_version": {
            "type": "string",
            "description": "The shape of this message, as a dated version."
          },
          "event": {
            "type": "string",
            "enum": [
              "tracked_listing.ready",
              "tracked_listing.price_changed",
              "tracked_listing.rating_changed",
              "tracked_listing.left"
            ]
          },
          "event_id": {
            "type": "string",
            "description": "One id for each event. Keep it to skip a message you already handled."
          },
          "delivered_at": {
            "type": "string",
            "format": "date-time",
            "description": "When we sent this delivery."
          },
          "data": {
            "$ref": "#/components/schemas/TrackedListingEvent"
          }
        }
      },
      "TrackedListingEvent": {
        "description": "The tracked listing as GET /markets/listings/{id} reads it, with what changed.",
        "allOf": [
          {
            "$ref": "#/components/schemas/MarketsListing"
          },
          {
            "type": "object",
            "properties": {
              "ask_before": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "On tracked_listing.price_changed, the ask before this change."
              },
              "rating_label_before": {
                "type": "string",
                "description": "On tracked_listing.rating_changed, the price rating it had before."
              },
              "status": {
                "type": "string",
                "enum": [
                  "sold",
                  "gone"
                ],
                "description": "On tracked_listing.left, how it left Marketplace."
              }
            }
          }
        ]
      },
      "MarketsEstimateItem": {
        "description": "One item to estimate.",
        "type": "object",
        "required": [
          "category",
          "place",
          "country"
        ],
        "properties": {
          "category": {
            "type": "string",
            "description": "A category slug from GET /v1/categories, like `vehicles`."
          },
          "title": {
            "type": "string",
            "description": "The words you would put in the ad's title, up to 300 characters. Optional."
          },
          "facts": {
            "type": "object",
            "description": "The item's facts by name, up to 30, as words, numbers or true and false. For a car: `year`, `make`, `model`, `variant`, and `mileage_km` or `mileage_mi`.",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "place": {
            "type": [
              "string",
              "integer"
            ],
            "description": "Where the item is, a postcode or a town or suburb, like `2250` or `Gosford`, sent with its `country`."
          },
          "country": {
            "type": "string",
            "description": "The place's country as a two-letter code, like `AU`. Every place needs it, a postcode or a town or suburb."
          }
        }
      },
      "MarketsEstimate": {
        "type": "object",
        "description": "A price estimate before listing. Money is in the place's currency, major units, from asking prices on Marketplace. `usual` is set only at `sure`; `low` and `high` at `sure` and `thin`; at `none` all three are null.",
        "required": [
          "id",
          "level",
          "reason",
          "category",
          "currency",
          "based_on",
          "usual",
          "low",
          "high",
          "sample_size",
          "thin",
          "same_model_count",
          "place",
          "inputs",
          "similar_listings",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The estimate id."
          },
          "level": {
            "type": "string",
            "enum": [
              "sure",
              "thin",
              "none"
            ],
            "description": "`sure`: 10 or more similar listings, at least half the same model. `thin`: 5 to 9, or mostly other models; a car needs at least one of its own model. `none`: under 5, asks too far apart, a make or model we don't know yet, or a car with no similar listing of its own model."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the answer is `thin` or `none`, in plain words. Null at `sure`."
          },
          "category": {
            "type": "string"
          },
          "currency": {
            "type": "string",
            "description": "The place's currency, like AUD."
          },
          "based_on": {
            "type": "string",
            "enum": [
              "asking_prices"
            ],
            "description": "What the prices rest on. Asking prices on Marketplace only."
          },
          "usual": {
            "type": [
              "number",
              "null"
            ],
            "description": "The usual asking price of similar listings."
          },
          "low": {
            "type": [
              "number",
              "null"
            ]
          },
          "high": {
            "type": [
              "number",
              "null"
            ]
          },
          "sample_size": {
            "type": "integer",
            "description": "How many similar listings the answer rests on."
          },
          "thin": {
            "type": "boolean",
            "description": "True when the answer rests on 5 to 9 similar listings, shown as Only N similar listings in the app. False at 10 or more, and under 5. The count is `sample_size`."
          },
          "same_model_count": {
            "type": "integer",
            "description": "How many of them are the same model as the item."
          },
          "place": {
            "type": "object",
            "required": [
              "name",
              "country"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The postcode or the town as we read it."
              },
              "country": {
                "type": "string"
              }
            }
          },
          "inputs": {
            "type": "array",
            "description": "Every input you sent, with the title first, marked used or not used.",
            "items": {
              "type": "object",
              "required": [
                "name",
                "value",
                "used",
                "reason"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": [
                    "string",
                    "boolean",
                    "null"
                  ]
                },
                "used": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string"
                }
              }
            }
          },
          "similar_listings": {
            "type": "array",
            "description": "The closest similar listings, closest first. 5 on Free, Solo and Team, 10 on Scale, fewer when fewer were found.",
            "items": {
              "type": "object",
              "required": [
                "title",
                "ask",
                "year",
                "mileage_mi",
                "odometer",
                "distance_km",
                "days_listed",
                "url",
                "same_model"
              ],
              "properties": {
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "ask": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "year": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "mileage_mi": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "odometer": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The odometer in the place's unit, as sellers there read it: `305,000 km` in Australia, `46,200 mi` in the US."
                },
                "distance_km": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "How far it is from the place you sent, null when we don't know where it is."
                },
                "days_listed": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "url": {
                  "type": "string",
                  "description": "Its Marketplace link."
                },
                "same_model": {
                  "type": "boolean",
                  "description": "The same model as the item, or a similar one."
                }
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MarketsEstimateInBulk": {
        "type": "object",
        "description": "A priced row from POST /v1/markets/estimates/bulk. Same fields as MarketsEstimate except inputs and similar_listings are omitted.",
        "required": [
          "id",
          "level",
          "reason",
          "category",
          "currency",
          "based_on",
          "usual",
          "low",
          "high",
          "sample_size",
          "thin",
          "same_model_count",
          "place",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "level": {
            "type": "string",
            "enum": [
              "sure",
              "thin",
              "none"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "based_on": {
            "type": "string",
            "enum": [
              "asking_prices"
            ]
          },
          "usual": {
            "type": [
              "number",
              "null"
            ]
          },
          "low": {
            "type": [
              "number",
              "null"
            ]
          },
          "high": {
            "type": [
              "number",
              "null"
            ]
          },
          "sample_size": {
            "type": "integer"
          },
          "thin": {
            "type": "boolean"
          },
          "same_model_count": {
            "type": "integer"
          },
          "place": {
            "type": "object",
            "required": [
              "name",
              "country"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "country": {
                "type": "string"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MarketsEstimateBulkRow": {
        "type": "object",
        "required": [
          "line"
        ],
        "description": "One row from POST /v1/markets/estimates/bulk. Priced rows carry estimate; refused rows carry error.",
        "properties": {
          "line": {
            "type": "integer",
            "description": "The row's position in the request, 1-based. For CSV, the file line number."
          },
          "estimate": {
            "$ref": "#/components/schemas/MarketsEstimateInBulk"
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "MarketsSegmentSuggestion": {
        "type": "object",
        "required": [
          "id",
          "name",
          "category",
          "key",
          "listings"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The market's id, like seg_K3mP9xQ2aL."
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "listings": {
            "type": [
              "string",
              "null"
            ],
            "description": "How many are listed, as a band like 20+. With a place it is what is listed there now, null under 5, and null for a city or state this account may not count."
          },
          "place": {
            "$ref": "#/components/schemas/MarketsSearchPlace"
          },
          "countries": {
            "type": "array",
            "description": "Markets Scale. The countries with 5 or more listed, most listed first.",
            "items": {
              "$ref": "#/components/schemas/MarketsCountryListings"
            }
          },
          "trims": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "key",
                "listings"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The trim's id, like seg_K3mP9xQ2aL."
                },
                "name": {
                  "type": "string"
                },
                "key": {
                  "type": "string"
                },
                "listings": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "As the match's listings, for this trim."
                },
                "place": {
                  "$ref": "#/components/schemas/MarketsSearchPlace"
                },
                "countries": {
                  "type": "array",
                  "description": "Markets Scale. As the match's countries, for this trim.",
                  "items": {
                    "$ref": "#/components/schemas/MarketsCountryListings"
                  }
                }
              }
            }
          }
        }
      },
      "MarketsSearchPlace": {
        "type": "object",
        "description": "The place the search named. Sent only with a country or an area.",
        "required": [
          "type",
          "id",
          "value",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "city",
              "region",
              "country"
            ]
          },
          "id": {
            "type": "integer"
          },
          "value": {
            "type": "string",
            "description": "Like country:840, the value `area` takes."
          },
          "name": {
            "type": "string"
          }
        }
      },
      "MarketsCountryListings": {
        "type": "object",
        "required": [
          "country",
          "listings"
        ],
        "properties": {
          "country": {
            "type": "string",
            "description": "A country code, like US."
          },
          "listings": {
            "type": "string",
            "description": "A band, like 20+."
          }
        }
      },
      "MarketsAreas": {
        "type": "object",
        "required": [
          "groups"
        ],
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "options"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "value",
                      "label"
                    ],
                    "properties": {
                      "value": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "aside": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MarketsArea": {
        "type": "object",
        "required": [
          "type",
          "id",
          "value",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "city",
              "region",
              "country"
            ]
          },
          "id": {
            "type": "integer"
          },
          "value": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "MarketsMarket": {
        "type": "object",
        "required": [
          "segment",
          "area",
          "period",
          "periods",
          "thin",
          "numbers",
          "statistics",
          "panels",
          "area_options"
        ],
        "properties": {
          "segment": {
            "type": "object",
            "required": [
              "id",
              "key",
              "label",
              "category"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "The market's id, like seg_K3mP9xQ2aL."
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "category": {
                "type": "string"
              }
            }
          },
          "area": {
            "$ref": "#/components/schemas/MarketsArea"
          },
          "period": {
            "type": "string"
          },
          "periods": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "thin": {
            "type": "boolean",
            "description": "True when 5 to 9 similar listings stand behind the market, so `numbers` gives the range and no usual price. False at 10 or more, and with no price."
          },
          "numbers": {
            "$ref": "#/components/schemas/MarketsNumbers"
          },
          "statistics": {
            "$ref": "#/components/schemas/MarketsStatistics"
          },
          "panels": {
            "$ref": "#/components/schemas/MarketsPanels"
          },
          "area_options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketsArea"
            }
          },
          "wider_area": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "type": {
                "type": "string"
              },
              "id": {
                "type": "integer"
              },
              "value": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        }
      },
      "MarketsNumbers": {
        "type": "object",
        "required": [
          "market_name",
          "currency",
          "updated_on",
          "usual",
          "low",
          "high",
          "too_spread",
          "thin",
          "thin_words",
          "few_similar_listings",
          "no_number",
          "sample",
          "gone_in_days",
          "days_of_supply",
          "for_sale_now",
          "sold_last_30_days",
          "new_week",
          "new_prior_week",
          "price_cuts_week",
          "cuts_per_100",
          "series",
          "daily"
        ],
        "properties": {
          "market_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "usual": {
            "type": [
              "number",
              "null"
            ],
            "description": "The usual price. Null under 10 similar listings, where `low` and `high` give the range and `thin` is true."
          },
          "low": {
            "type": [
              "number",
              "null"
            ]
          },
          "high": {
            "type": [
              "number",
              "null"
            ]
          },
          "too_spread": {
            "type": "boolean"
          },
          "thin": {
            "type": "boolean",
            "description": "True when 5 to 9 similar listings stand behind the market, so it gives the range and no usual price."
          },
          "thin_words": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"Only N similar listings, so this is a range, not a usual price.\" while `thin` is true, else null."
          },
          "few_similar_listings": {
            "type": "boolean",
            "description": "True when fewer than 5 similar listings are for sale in this area, so there is no usual price yet."
          },
          "no_number": {
            "type": "boolean"
          },
          "sample": {
            "type": [
              "integer",
              "null"
            ]
          },
          "gone_in_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "gone_in_days_30": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many days similar listings that came up in the last 30 days usually stayed up, beside gone_in_days. Null when gone_in_days is null or the last 30 days are under the same floors."
          },
          "gone_in_days_gone": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many similar listings left Marketplace in the last 90 days behind gone_in_days, sold or removed. Null when gone_in_days is null."
          },
          "gone_in_days_sold": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many of gone_in_days_gone were confirmed sold. Null when gone_in_days is null."
          },
          "gone_in_days_missing": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "not_checked",
              "stale",
              "census",
              "exits",
              "half",
              "on_time",
              "failed",
              null
            ],
            "description": "Why gone_in_days is null: not_checked, we do not check this market yet; stale, our nightly count of it is more than 3 days old; census, fewer than 21 days of our checks; exits, fewer than 5 similar listings gone; half, half of them have not gone yet; on_time, too few of our checks ran on time; failed, too many of our checks failed. Null when gone_in_days has a number."
          },
          "gone_in_days_missing_words": {
            "type": [
              "string",
              "null"
            ],
            "description": "The reason in gone_in_days_missing as the app says it, such as \"3 of 5 listings gone so far.\" Null when gone_in_days has a number."
          },
          "days_of_supply": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many days the listings for sale now would last at the pace of the last 30 days. Null with fewer than 5 sold in those days, or where sold listings were not checked on most of them."
          },
          "for_sale_now": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Similar listings for sale now in the area. The count days of supply divides."
          },
          "sold_last_30_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Similar listings seen marked sold in the 30 days before `updated_on`. Null under 5, and under 10 the days of supply is thin."
          },
          "new_week": {
            "type": [
              "integer",
              "null"
            ]
          },
          "new_prior_week": {
            "type": [
              "integer",
              "null"
            ]
          },
          "price_cuts_week": {
            "type": [
              "integer",
              "null"
            ]
          },
          "cuts_per_100": {
            "type": [
              "integer",
              "null"
            ]
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "value",
                "low",
                "high"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "low": {
                  "type": "number"
                },
                "high": {
                  "type": "number"
                }
              }
            }
          },
          "daily": {
            "type": "array",
            "description": "One row per day, oldest first. Scale only, on this read. cut_share is the cut count divided by priced listings, from 0 to 1, and null when priced is 0 or the count was not written. sold is confirmed sales, null under 5. removed is listings marked gone. gone is listings that left the market that day.",
            "items": {
              "$ref": "#/components/schemas/MarketsDaily"
            }
          }
        }
      },
      "MarketsDaily": {
        "type": "object",
        "required": [
          "day",
          "active",
          "priced",
          "cut_7_n",
          "cut_30_n",
          "cut_share_7d",
          "cut_share_30d",
          "sold",
          "removed",
          "gone"
        ],
        "properties": {
          "day": {
            "type": "string",
            "format": "date"
          },
          "active": {
            "type": "integer",
            "description": "Listings for sale that day."
          },
          "priced": {
            "type": "integer",
            "description": "Listings a price is read from."
          },
          "cut_7_n": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Priced listings that cut at least once in the 7 days ending that day. Null on days written before the count."
          },
          "cut_30_n": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Priced listings that cut at least once in the 30 days ending that day. Null on days written before the count."
          },
          "cut_share_7d": {
            "type": [
              "number",
              "null"
            ],
            "description": "cut_7_n divided by priced, from 0 to 1. Null when priced is 0 or cut_7_n is null."
          },
          "cut_share_30d": {
            "type": [
              "number",
              "null"
            ],
            "description": "cut_30_n divided by priced, from 0 to 1. Null when priced is 0 or cut_30_n is null."
          },
          "sold": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Confirmed sales that day. Null under 5."
          },
          "removed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Listings marked gone, not ones that only stopped being seen."
          },
          "gone": {
            "type": "integer",
            "description": "Listings that left the market that day."
          }
        }
      },
      "MarketsPercentiles": {
        "type": "object",
        "required": [
          "p25",
          "p50",
          "p75",
          "n"
        ],
        "properties": {
          "p25": {
            "type": [
              "number",
              "null"
            ]
          },
          "p50": {
            "type": [
              "number",
              "null"
            ],
            "description": "The usual price. Null under 10 similar listings, where p25 and p75 give the range."
          },
          "p75": {
            "type": [
              "number",
              "null"
            ]
          },
          "n": {
            "type": "integer"
          }
        }
      },
      "MarketsStatistics": {
        "type": "object",
        "required": [
          "price",
          "days_listed"
        ],
        "properties": {
          "price": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketsPercentiles"
              }
            ],
            "description": "Asking prices in whole major units of the market's currency, as `numbers` gives them."
          },
          "days_listed": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketsPercentiles"
              }
            ],
            "description": "Days since the listing was posted or first seen, among listings for sale now."
          }
        }
      },
      "MarketsPriceEvent": {
        "type": "object",
        "required": [
          "amount",
          "currency",
          "previous",
          "kind",
          "observed_at"
        ],
        "properties": {
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "previous": {
            "type": [
              "number",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "first",
              "cut",
              "raise"
            ]
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MarketsSegmentListing": {
        "type": "object",
        "required": [
          "id",
          "title",
          "url",
          "price",
          "currency",
          "place",
          "first_seen_at",
          "last_seen_at",
          "posted_at",
          "days_listed",
          "price_history"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The Marketplace item id."
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "place": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_seen_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_seen_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "posted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "days_listed": {
            "type": [
              "integer",
              "null"
            ]
          },
          "price_history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketsPriceEvent"
            }
          }
        }
      },
      "MarketsPanels": {
        "type": "object",
        "required": [
          "sold",
          "looking",
          "cities",
          "cities_listed",
          "years",
          "mileage"
        ],
        "properties": {
          "sold": {
            "type": [
              "object",
              "null"
            ],
            "description": "What similar ones sold for in the last 90 days, in major units. Null under its floors (5 outcomes from 3 teams, no team over half) and for a team with no counted sale in the last 90 days (a sale it recorded with an amount between 20% and 300% of the ask, while its team counts its results in group numbers).",
            "properties": {
              "day": {
                "type": "string",
                "format": "date",
                "description": "The day the numbers are from."
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "low": {
                "type": "number",
                "description": "The 25th percentile of what similar ones sold for."
              },
              "usual": {
                "type": "number",
                "description": "The median of what similar ones sold for."
              },
              "high": {
                "type": "number",
                "description": "The 75th percentile of what similar ones sold for."
              },
              "asking": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The asking range beside it, with `low`, `usual` and `high`.",
                "properties": {
                  "low": {
                    "type": "number"
                  },
                  "usual": {
                    "type": "number"
                  },
                  "high": {
                    "type": "number"
                  }
                }
              },
              "fast_price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The ask that sold within a week, in the price step of the market's usual ask."
              },
              "days_to_sell": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sale_to_ask": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Whole percent of the last ask."
              },
              "reported": {
                "type": "integer",
                "description": "Sales a team told us about."
              },
              "estimated": {
                "type": "integer",
                "description": "Sales we saw marked sold, at their last ask times what similar ones sold for against their ask."
              },
              "how_close": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "month": {
                    "type": "string"
                  },
                  "within": {
                    "type": "integer"
                  },
                  "of": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "looking": {
            "type": [
              "object",
              "null"
            ]
          },
          "cities": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "cities_listed": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "active"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "active": {
                  "type": "integer"
                }
              }
            }
          },
          "years": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "year",
                "usual",
                "current"
              ],
              "properties": {
                "year": {
                  "type": "string"
                },
                "usual": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "current": {
                  "type": "boolean"
                }
              }
            }
          },
          "mileage": {
            "type": [
              "object",
              "null"
            ]
          }
        }
      },
      "MarketsUsage": {
        "type": "object",
        "required": [
          "plan",
          "scale_from_usd",
          "upgrade",
          "calls_per_minute",
          "calls_this_month",
          "own_listings",
          "adds",
          "saved",
          "saves",
          "markets_read",
          "listing_pages",
          "calls",
          "keys",
          "searches",
          "unsaved_estimates",
          "city_feed"
        ],
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "free",
              "solo",
              "team",
              "scale"
            ],
            "description": "Your Markets plan."
          },
          "scale_from_usd": {
            "type": "integer",
            "description": "Markets Scale is from this many dollars a month."
          },
          "upgrade": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Scale upgrade line on Team. Null on the other plans."
          },
          "calls_per_minute": {
            "type": "integer",
            "description": "Calls a minute all your Markets keys share."
          },
          "calls_this_month": {
            "type": "integer",
            "description": "Calls this account's Markets keys made this month (UTC), counted as each call finishes."
          },
          "own_listings": {
            "type": "object",
            "required": [
              "used",
              "limit"
            ],
            "properties": {
              "used": {
                "type": "integer"
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "adds": {
            "type": "object",
            "required": [
              "today",
              "per_day",
              "per_minute_per_key",
              "resets_at"
            ],
            "properties": {
              "today": {
                "type": "integer",
                "description": "Adds and price estimates your account made today (UTC), however they were made. They share one daily limit."
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "per_minute_per_key": {
                "type": "integer"
              },
              "resets_at": {
                "type": "string",
                "format": "date-time",
                "description": "When today's adds start again, midnight UTC."
              }
            }
          },
          "saved": {
            "type": "object",
            "required": [
              "used",
              "limit"
            ],
            "description": "Saved markets on the account, and the plan's standing limit.",
            "properties": {
              "used": {
                "type": "integer"
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "saves": {
            "type": "object",
            "required": [
              "today",
              "per_day",
              "resets_at"
            ],
            "description": "New markets saved today. Deleting one does not give a save back.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "resets_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "markets_read": {
            "type": "object",
            "required": [
              "today",
              "per_day"
            ],
            "description": "Distinct markets read today. A null per_day means saved markets only.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "listing_pages": {
            "type": "object",
            "required": [
              "per_market",
              "page_size",
              "window_days"
            ],
            "description": "How many listing pages one market allows in a day, how many listings a page holds, and how far back they go.",
            "properties": {
              "per_market": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "page_size": {
                "type": "integer"
              },
              "window_days": {
                "type": "integer"
              }
            }
          },
          "calls": {
            "type": "object",
            "required": [
              "today",
              "per_day",
              "per_minute"
            ],
            "description": "Calls this account's Markets keys made today (UTC), counted as each call finishes, and the calls a minute that budget allows.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "per_minute": {
                "type": "integer"
              }
            }
          },
          "keys": {
            "type": "object",
            "required": [
              "live",
              "limit"
            ],
            "description": "Live Markets keys on the account.",
            "properties": {
              "live": {
                "type": "integer"
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "searches": {
            "type": "object",
            "required": [
              "today",
              "per_day"
            ],
            "description": "Car type searches today.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "unsaved_estimates": {
            "type": "object",
            "required": [
              "today",
              "per_day"
            ],
            "description": "Price estimates today for a car the account has not saved.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "city_feed": {
            "type": "object",
            "required": [
              "today",
              "per_day"
            ],
            "description": "City feed requests today. A null per_day means the plan has no city feed.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "new_markets": {
            "type": "object",
            "required": [
              "today",
              "per_day",
              "resets_at"
            ],
            "description": "Scale only. New catalog markets added today. Deleting one does not give a slot back. Absent on plans that cannot add a catalog market.",
            "properties": {
              "today": {
                "type": "integer"
              },
              "per_day": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "resets_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "filling": {
            "type": "object",
            "required": [
              "now",
              "at_once"
            ],
            "description": "Scale only. Catalog markets still waiting on their first numbers, and how many may fill at once. Absent on plans that cannot add a catalog market.",
            "properties": {
              "now": {
                "type": "integer"
              },
              "at_once": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "MarketWatch": {
        "type": "object",
        "description": "A named set of saved markets and one rule.",
        "required": [
          "id",
          "name",
          "rule",
          "threshold",
          "saved_markets"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "usual_price",
              "price_cut_share"
            ]
          },
          "threshold": {
            "type": "integer"
          },
          "saved_markets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "alerts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "day",
                "summary"
              ],
              "properties": {
                "day": {
                  "type": "string",
                  "format": "date"
                },
                "summary": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "MarketReadyMessage": {
        "type": "object",
        "required": [
          "api_version",
          "event",
          "event_id",
          "delivered_at",
          "data"
        ],
        "properties": {
          "api_version": {
            "type": "string"
          },
          "event": {
            "type": "string",
            "enum": [
              "market.ready"
            ]
          },
          "event_id": {
            "type": "string"
          },
          "delivered_at": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "required": [
              "id",
              "status",
              "name",
              "segment_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "The saved market's public id."
              },
              "status": {
                "type": "string",
                "enum": [
                  "ready"
                ]
              },
              "name": {
                "type": "string"
              },
              "segment_id": {
                "type": "string",
                "description": "The market's id, like seg_K3mP9xQ2aL."
              }
            }
          }
        }
      },
      "MarketWatchMessage": {
        "type": "object",
        "required": [
          "api_version",
          "event",
          "event_id",
          "delivered_at",
          "data"
        ],
        "properties": {
          "api_version": {
            "type": "string"
          },
          "event": {
            "type": "string",
            "enum": [
              "market_watch.crossed"
            ]
          },
          "event_id": {
            "type": "string"
          },
          "delivered_at": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "required": [
              "id",
              "name",
              "rule",
              "summary"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "rule": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            }
          }
        }
      },
      "MarketsSavedMarket": {
        "type": "object",
        "description": "A market your team follows, as the Saved markets card reads it. Money is in major units of the market's currency.",
        "required": [
          "id",
          "name",
          "alert_on_moves",
          "segment",
          "area",
          "url",
          "filling",
          "status",
          "fill",
          "numbers"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The saved market's public id, 10 letters and digits. Not the row number."
          },
          "name": {
            "type": "string"
          },
          "alert_on_moves": {
            "type": "boolean",
            "description": "When true, move alerts for this market reach you at your pace."
          },
          "segment": {
            "type": "object",
            "required": [
              "id",
              "key",
              "label",
              "category"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "The market's id, like seg_K3mP9xQ2aL."
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "category": {
                "type": "string"
              }
            }
          },
          "area": {
            "type": "object",
            "required": [
              "type",
              "id",
              "value",
              "name"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "city",
                  "region",
                  "country"
                ]
              },
              "id": {
                "type": "integer"
              },
              "value": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "url": {
            "type": "string",
            "description": "The market in the Crawlbench app."
          },
          "filling": {
            "type": "boolean",
            "description": "True while its first check is still reading places."
          },
          "status": {
            "type": "string",
            "enum": [
              "filling",
              "ready"
            ],
            "description": "filling until the first numbers are ready, then ready. numbers is null while a new market is filling."
          },
          "fill": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "cities_done": {
                "type": "integer"
              },
              "cities_total": {
                "type": "integer"
              }
            }
          },
          "numbers": {
            "type": [
              "object",
              "null"
            ],
            "description": "Null while a new market is still filling. No partial numbers.",
            "required": [
              "currency",
              "updated_on",
              "usual",
              "low",
              "high",
              "too_spread",
              "thin",
              "thin_words",
              "few_similar_listings",
              "sample",
              "change_30",
              "change_90",
              "new_week",
              "gone_in_days",
              "days_of_supply",
              "for_sale_now",
              "sold_last_30_days",
              "cuts_per_100"
            ],
            "properties": {
              "currency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_on": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "usual": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "low": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "high": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "too_spread": {
                "type": "boolean"
              },
              "thin": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "thin_words": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "few_similar_listings": {
                "type": "boolean"
              },
              "sample": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "change_30": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Percent change in the usual price over 30 days. Null under 10 similar listings, where there is no usual price."
              },
              "change_90": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Percent change in the usual price over 90 days. Null under 10 similar listings, where there is no usual price."
              },
              "new_week": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "gone_in_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "gone_in_days_30": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days similar listings that came up in the last 30 days usually stayed up, beside gone_in_days. Null when gone_in_days is null or the last 30 days are under the same floors."
              },
              "gone_in_days_gone": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many similar listings left Marketplace in the last 90 days behind gone_in_days, sold or removed. Null when gone_in_days is null."
              },
              "gone_in_days_sold": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many of gone_in_days_gone were confirmed sold. Null when gone_in_days is null."
              },
              "gone_in_days_missing": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "not_checked",
                  "stale",
                  "census",
                  "exits",
                  "half",
                  "on_time",
                  "failed",
                  null
                ],
                "description": "Why gone_in_days is null: not_checked, we do not check this market yet; stale, our nightly count of it is more than 3 days old; census, fewer than 21 days of our checks; exits, fewer than 5 similar listings gone; half, half of them have not gone yet; on_time, too few of our checks ran on time; failed, too many of our checks failed. Null when gone_in_days has a number."
              },
              "gone_in_days_missing_words": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The reason in gone_in_days_missing as the app says it, such as \"3 of 5 listings gone so far.\" Null when gone_in_days has a number."
              },
              "days_of_supply": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days the listings for sale now would last at the pace of the last 30 days. Null with fewer than 5 sold in those days, or where sold listings were not checked on most of them."
              },
              "for_sale_now": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Similar listings for sale now in the area. The count days of supply divides."
              },
              "sold_last_30_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Similar listings seen marked sold in the 30 days before `updated_on`. Null under 5, and under 10 the days of supply is thin."
              },
              "cuts_per_100": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "MarketsReport": {
        "type": "object",
        "description": "A read-only link to one market for a manager or a client.",
        "required": [
          "id",
          "url",
          "segment",
          "area",
          "period",
          "period_label",
          "shared_by",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The report's id for rotate and stop sharing, not the secret token in its link."
          },
          "url": {
            "type": "string",
            "description": "The read-only link anyone can open."
          },
          "segment": {
            "type": "object",
            "required": [
              "id",
              "key",
              "label",
              "category"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "The market's id, like seg_K3mP9xQ2aL."
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "category": {
                "type": "string"
              }
            }
          },
          "area": {
            "type": "object",
            "required": [
              "type",
              "id",
              "value",
              "name"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "city",
                  "region",
                  "country"
                ]
              },
              "id": {
                "type": "integer"
              },
              "value": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "period": {
            "type": "string",
            "enum": [
              "30d",
              "90d",
              "1y"
            ]
          },
          "period_label": {
            "type": "string"
          },
          "shared_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "A stable word to switch on.",
                "enum": [
                  "invalid_request",
                  "validation_failed",
                  "unauthorized",
                  "forbidden",
                  "plan_required",
                  "outside_contract",
                  "email_unconfirmed",
                  "upgrade_required",
                  "not_found",
                  "no_account",
                  "conflict",
                  "apple_reauth_required",
                  "delete_failed",
                  "password_required",
                  "password_wrong",
                  "code_required",
                  "code_wrong",
                  "code_expired",
                  "search_limit_reached",
                  "people_limit_reached",
                  "saved_market_limit_reached",
                  "saved_limit_reached",
                  "own_listing_limit_reached",
                  "needs_place",
                  "not_a_search",
                  "needs_confirmation",
                  "goal_changes_reached",
                  "saved_market_daily_limit",
                  "new_market_daily_limit",
                  "markets_filling_limit",
                  "market_budget_reached",
                  "listing_pages_reached",
                  "city_feed_daily_limit",
                  "segment_search_daily_limit",
                  "unsaved_estimates_limit",
                  "watch_limit_reached",
                  "limit",
                  "too_many_tries",
                  "rate_limited",
                  "server_error",
                  "unavailable"
                ]
              },
              "message": {
                "type": "string",
                "description": "A plain sentence to show a person."
              },
              "resets_at": {
                "type": "string",
                "description": "When a daily limit lifts, in UTC, like 2026-11-28T00:00:00Z."
              }
            }
          }
        }
      },
      "Pagination": {
        "type": "object",
        "required": [
          "has_more",
          "after"
        ],
        "properties": {
          "has_more": {
            "type": "boolean"
          },
          "after": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "responses": {
      "InvalidRequest": {
        "description": "A field is missing or of the wrong type (`invalid_request`), or a value is not allowed (`validation_failed`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "No key, a revoked key, or a wrong password or code (`unauthorized`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The key cannot do this or belongs to another product (`forbidden`), the plan does not include it (`plan_required`), the email is not confirmed (`email_unconfirmed`), or the app is too old (`upgrade_required`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such thing for this key (`not_found`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "The same Idempotency-Key with a different body, or a state that does not allow this (`conflict`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Over the calls allowed each minute (`rate_limited`).",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}