{"openapi": "3.1.0", "info": {"title": "ScoutABiz", "version": "1.0.0", "description": "Public seller-reported business listings. Financials use whole USD. TTM is the trailing 12 months. Null financials are undisclosed."}, "servers": [{"url": "https://scoutabiz.com"}], "components": {"schemas": {"Listing": {"type": "object", "properties": {"id": {"type": "string", "format": "uuid"}, "title": {"type": "string"}, "industry": {"type": "string", "enum": ["services", "retail", "food", "manufacturing", "software", "other"]}, "location": {"type": "string"}, "summary": {"type": "string"}, "asking_price_usd": {"type": "integer", "minimum": 0}, "revenue_ttm_usd": {"type": ["integer", "null"], "minimum": 0}, "sde_ttm_usd": {"type": ["integer", "null"]}, "financial_source": {"type": "string", "enum": ["seller_reported"]}, "updated_at": {"type": "string", "format": "date-time"}, "url": {"type": "string", "format": "uri"}, "api_url": {"type": "string", "format": "uri"}}, "required": ["id", "title", "industry", "location", "summary", "asking_price_usd", "revenue_ttm_usd", "sde_ttm_usd", "financial_source", "updated_at", "url", "api_url"]}}}, "paths": {"/api/v1/listings/": {"get": {"operationId": "searchBusinesses", "parameters": [{"name": "q", "in": "query", "description": "Search headline, description or location", "schema": {"type": "string", "maxLength": 100}}, {"name": "industry", "in": "query", "description": "Industry code", "schema": {"type": "string", "enum": ["services", "retail", "food", "manufacturing", "software", "other"]}}, {"name": "max_price", "in": "query", "description": "Maximum asking price, whole USD", "schema": {"type": "integer", "minimum": 0, "maximum": 9223372036854775807}}, {"name": "min_sde", "in": "query", "description": "Minimum trailing 12-month seller\u2019s discretionary earnings, whole USD", "schema": {"type": "integer", "minimum": -9223372036854775808, "maximum": 9223372036854775807}}, {"name": "page", "in": "query", "description": "Page number", "schema": {"type": "integer", "minimum": 1, "maximum": 1000000000}}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object", "required": ["count", "next", "previous", "results"], "properties": {"count": {"type": "integer"}, "next": {"type": ["string", "null"], "format": "uri"}, "previous": {"type": ["string", "null"], "format": "uri"}, "results": {"type": "array", "maxItems": 25, "items": {"$ref": "#/components/schemas/Listing"}}}}}}}, "400": {"description": "Invalid search filters"}, "404": {"description": "Page out of range"}}}}, "/api/v1/listings/{id}/": {"get": {"operationId": "getBusiness", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string", "format": "uuid"}}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Listing"}}}}, "404": {"description": "No active listing with this ID"}}}}}}