{
  "openapi": "3.0.1",
  "info": {
    "title": "Alignable Business Scraper — SMB Leads: Phone, Address, Site",
    "description": "Scrape every Alignable business in a city into SMB leads: name, full postal address, phone, website and industry tags. Enumerated from Alignable's own sitemap, so you get the whole city, not page one. Optional industry filter. No login. $2 per 1,000. Export JSON/CSV.",
    "version": "0.1",
    "x-build-id": "PZD5HOthHeNYZdTGc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~alignable-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-alignable-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/scrapersdelight~alignable-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-alignable-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/scrapersdelight~alignable-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-alignable-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": [
          "citySlugs"
        ],
        "properties": {
          "citySlugs": {
            "title": "City slugs",
            "type": "array",
            "description": "One entry per city. Three formats are accepted and normalised to the same slug: the Alignable slug (\"scottsdale-az\"), the human form (\"Scottsdale, AZ\"), or any Alignable URL (\"https://www.alignable.com/scottsdale-az/mirage-limousines\"). The three prefilled entries are all the SAME city, shown so you can see every accepted format — the Actor deduplicates them to one city before it fetches anything. Slug = lowercase city + dash + two-letter state/province code, exactly as it appears in the alignable.com URL. Measured city sizes: san-antonio-tx 7,686 profiles, scottsdale-az 4,788, austin-tx 1,926, denver-co 936, boston-ma 248.",
            "default": [
              "scottsdale-az"
            ],
            "items": {
              "type": "string"
            }
          },
          "categoryFilter": {
            "title": "Industry / keyword filter",
            "type": "array",
            "description": "Keep only businesses whose Alignable category tags contain any of these words (case-insensitive substring match, OR-ed together). Real tag values look like \"Real Estate Agent\", \"Financial Coach\", \"Limo Service\", \"Life Insurance\". Leave empty to get every business in the city. Cost note: filtering happens AFTER the profile is fetched, so a narrow filter costs the Actor time and proxy budget but costs you nothing — filtered-out rows are never pushed and never charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxBusinessesPerCity": {
            "title": "Max businesses per city",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on profiles fetched per city, and therefore your cost ceiling: 200 businesses = $0.40. Set 0 for every business in the city — measured city sizes run from 1 to 7,686 profiles (san-antonio-tx is the largest), so 0 on a big city can cost $15+. Duplicates are dropped before billing and never count against this cap.",
            "default": 200
          },
          "requestConcurrency": {
            "title": "Request concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel profile fetches. 5 is the measured default: the fetch phase of a 400-profile city run took 78-194 seconds with 0 HTTP failures (92-228 seconds of total run time, sitemap scan included). Raising it to 10 speeds the fetch phase up but gives the site less breathing room; the sitemap scan is serial either way.",
            "default": 5
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Politeness pause each worker waits after finishing a profile before starting the next one. At 250 ms with 5 workers, 1,848 profile fetches returned 0 blocks and 0 failures. Raise it if you are running a whole large city and want to be gentler; set 0 only for small runs.",
            "default": 250
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Alignable is not walled. Measured through Apify on 2026-08-12: the sitemap index and all 36 gzipped shards returned HTTP 200 over the shared datacenter pool, and 1,848 of 1,848 profile pages returned HTTP 200 with 0 failures. So the cheap datacenter rung is the default and you should leave it alone — RESIDENTIAL also measured 20/20 but was slower (36s vs 22s for the same 20 pages) and costs more. Switch groups only if you ever see 403s.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}