{
  "openapi": "3.0.1",
  "info": {
    "title": "Municibid Government Surplus Auction Scraper",
    "description": "Scrape live government-surplus auction listings from Municibid.com - browse by category, search by keyword, filter by ZIP/radius or seller agency, sort by price/bids/ending time, and get full listing detail: description, condition, seller, current bid, bid count, auction end time, and images.",
    "version": "1.0",
    "x-build-id": "FhTOnazlqemDvIvba"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~municibid-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-municibid-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/crawlerbros~municibid-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-municibid-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/crawlerbros~municibid-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-municibid-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "browse",
              "byListingId"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "browse"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword search (mode=browse), e.g. `truck`, `laptop`, `mower`. Leave blank to browse all active listings. Note: Municibid's own search falls back to showing popular listings when a query matches nothing, rather than returning zero results — this is upstream site behavior.",
            "default": ""
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "C5764318",
              "C160883",
              "C160884",
              "C24200839",
              "C169055",
              "C160887",
              "C169069",
              "C169084",
              "C169085",
              "C160885",
              "C169089",
              "C169090",
              "C169105",
              "C169106",
              "C169118",
              "C169119",
              "C169120",
              "C169121",
              "C169128",
              "C169130",
              "C169131",
              "C169142",
              "C169143",
              "C169146",
              "C169147",
              "C169149",
              "C169168",
              "C169169",
              "C169170",
              "C5852560",
              "C169171",
              "C169172"
            ],
            "type": "string",
            "description": "Restrict to a Municibid category (mode=browse).",
            "default": ""
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7"
            ],
            "type": "string",
            "description": "Listing sort order (mode=browse).",
            "default": "0"
          },
          "status": {
            "title": "Auction status",
            "enum": [
              "active_only",
              "completed_only"
            ],
            "type": "string",
            "description": "Active (live, biddable) or completed (ended) auctions (mode=browse).",
            "default": "active_only"
          },
          "zipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "Center point for a location radius search (mode=browse). Must be paired with `milesRadius` to take effect."
          },
          "milesRadius": {
            "title": "Radius in miles",
            "minimum": 5,
            "maximum": 1000,
            "type": "integer",
            "description": "Only include listings within this many miles of `zipCode` (mode=browse). Requires `zipCode` to be set.",
            "default": 100
          },
          "seller": {
            "title": "Seller / agency slug",
            "type": "string",
            "description": "Restrict to one seller/agency, using the exact slug from a listing's `sellerSlug` output field (mode=browse), e.g. `CityofFarmingtonILPD`."
          },
          "minCurrentBid": {
            "title": "Min current bid (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop listings with a current bid below this amount (applied after fetch)."
          },
          "maxCurrentBid": {
            "title": "Max current bid (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop listings with a current bid above this amount (applied after fetch)."
          },
          "minBidCount": {
            "title": "Min bid count",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop listings with fewer bids than this (applied after fetch)."
          },
          "maxBidCount": {
            "title": "Max bid count",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop listings with more bids than this (applied after fetch)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "New",
              "Used",
              "Refurbished",
              "Damaged"
            ],
            "type": "string",
            "description": "Only include listings with this item condition (applied after fetch).",
            "default": ""
          },
          "listingIds": {
            "title": "Listing IDs (mode=byListingId)",
            "type": "array",
            "description": "Municibid numeric listing IDs, e.g. `83611256`. Also accepts full listing URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Only used as an automatic fallback if Municibid starts blocking requests (403/429). Leave the default on.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}