{
  "openapi": "3.0.1",
  "info": {
    "title": "Businesses For Sale Scraper",
    "description": "Collect public BusinessesForSale listings from search, category, franchise, and individual listing URLs or keyword targets. Get titles, prices, revenue, cash flow, locations, categories, images, and public contact links in structured dataset rows.",
    "version": "1.0",
    "x-build-id": "j7hjubvjoMzNP0DzC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~businessesforsale-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-businessesforsale-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/maximedupre~businessesforsale-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-businessesforsale-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/maximedupre~businessesforsale-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-businessesforsale-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",
        "properties": {
          "startUrls": {
            "title": "Search or listing URLs",
            "type": "array",
            "description": "BusinessesForSale search, category, franchise, or listing URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "A BusinessesForSale search, category, franchise, or listing URL.",
                  "minLength": 1
                }
              }
            }
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Business types, sectors, brands, or other words to search for.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "maxResults": {
            "title": "Listing limit",
            "minimum": 1,
            "type": "integer",
            "description": "Optional positive limit for saved listings across all URLs and keyword searches. Leave it empty to return all available listings until the source is exhausted."
          },
          "includeListingDetails": {
            "title": "Fetch listing details",
            "type": "boolean",
            "description": "Open each listing page to add fuller public details and media when available. Turn this off to use source list-page data only.",
            "default": false
          },
          "country": {
            "title": "Keyword search country",
            "enum": [
              "global",
              "us",
              "uk",
              "ca",
              "au",
              "nz"
            ],
            "type": "string",
            "description": "BusinessesForSale country site for generated keyword searches.",
            "default": "global"
          },
          "industry": {
            "title": "Industry or category slug",
            "type": "string",
            "description": "Optional BusinessesForSale category slug, such as restaurants or coffee-shops.",
            "default": ""
          },
          "locationText": {
            "title": "Location text",
            "type": "string",
            "description": "Optional city, region, state, or country words for generated keyword searches.",
            "default": ""
          },
          "sortOrder": {
            "title": "Sort listings by",
            "enum": [
              "newest",
              "featured",
              "price-desc",
              "price-asc",
              "revenue-desc",
              "revenue-asc",
              "profit-desc",
              "profit-asc"
            ],
            "type": "string",
            "description": "Order for generated keyword searches.",
            "default": "newest"
          },
          "minPrice": {
            "title": "Minimum asking price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest visible asking price for generated searches."
          },
          "maxPrice": {
            "title": "Maximum asking price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest visible asking price for generated searches."
          },
          "minRevenue": {
            "title": "Minimum revenue",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest visible revenue for generated searches."
          },
          "maxRevenue": {
            "title": "Maximum revenue",
            "minimum": 0,
            "type": "integer",
            "description": "Highest visible revenue for generated searches."
          },
          "minCashFlow": {
            "title": "Minimum cash flow",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest visible cash flow for generated searches."
          },
          "maxCashFlow": {
            "title": "Maximum cash flow",
            "minimum": 0,
            "type": "integer",
            "description": "Highest visible cash flow for generated searches."
          },
          "onlyDisclosedPrice": {
            "title": "Only disclosed asking prices",
            "type": "boolean",
            "description": "Keep only generated-search listings that show an asking price.",
            "default": false
          },
          "onlyDisclosedRevenue": {
            "title": "Only disclosed revenue",
            "type": "boolean",
            "description": "Keep only generated-search listings that show revenue.",
            "default": false
          },
          "onlyDisclosedCashFlow": {
            "title": "Only disclosed cash flow",
            "type": "boolean",
            "description": "Keep only generated-search listings that show cash flow.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}