{
  "openapi": "3.0.1",
  "info": {
    "title": "Anytime Mailbox Scraper — Virtual Mailbox Locations + CMRA",
    "description": "Scrape 2,000+ US + international Anytime Mailbox virtual mailbox locations: street address, operator, starting price. Optional Smarty verification adds CMRA, DPV, county and geocode — a ready CMRA registry for fraud detection, KYC, and address intelligence.",
    "version": "0.0",
    "x-build-id": "MXEIMVlSUQihdFQUn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/autofacts~anytime-mailbox-scraper-virtual-mailbox-locations-cmra/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-autofacts-anytime-mailbox-scraper-virtual-mailbox-locations-cmra",
        "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/autofacts~anytime-mailbox-scraper-virtual-mailbox-locations-cmra/runs": {
      "post": {
        "operationId": "runs-sync-autofacts-anytime-mailbox-scraper-virtual-mailbox-locations-cmra",
        "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/autofacts~anytime-mailbox-scraper-virtual-mailbox-locations-cmra/run-sync": {
      "post": {
        "operationId": "run-sync-autofacts-anytime-mailbox-scraper-virtual-mailbox-locations-cmra",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Entry points into the Anytime Mailbox location directory. The prefilled value is one state, so a first run is fast and costs a few cents while showing complete records. Use https://www.anytimemailbox.com/locations to crawl the whole site, or any /l/{country}[/{state}] page to scope it.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxRequestsPerCrawl": {
            "title": "Max Requests per Crawl",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of pages to crawl. 0 = unlimited (full site). The prefilled value keeps a first trial run short and cheap — clear it, or set 0, for a complete crawl.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max parallel requests. Lower this if you start getting blocked.",
            "default": 10
          },
          "restrictToCountry": {
            "title": "Restrict to country",
            "type": "string",
            "description": "Limit the crawl to one country's directory subtree by slug, e.g. 'usa' for US-only (otherwise every country is followed). Pair with a matching startUrl such as https://www.anytimemailbox.com/l/usa."
          },
          "searchTerm": {
            "title": "Search term (grep across every location)",
            "type": "string",
            "description": "Free-text search over each location's text: address, city, state, zipcode, mail-center operator, country, slug, URL and starting price. Multiple words must all appear (e.g. 'los angeles suite'). Case-insensitive. Applied to the finished records, so it also searches detail-page fields such as the operator."
          },
          "searchIsRegex": {
            "title": "Treat the search term as a regular expression",
            "type": "boolean",
            "description": "Match the search term as a case-insensitive regular expression instead of plain words, e.g. '\\b9\\d{4}\\b' or 'mail ?box'. An invalid pattern fails the run immediately.",
            "default": false
          },
          "searchFields": {
            "title": "Search in these fields",
            "type": "array",
            "description": "Restrict the search term to specific fields. Leave empty to search all of them.",
            "items": {
              "type": "string",
              "enum": [
                "slug",
                "operator",
                "address",
                "country",
                "url",
                "price"
              ],
              "enumTitles": [
                "Slug",
                "Mail-center operator",
                "Address (street, suite, city, state, zipcode)",
                "Country",
                "URL",
                "Starting price"
              ]
            }
          },
          "states": {
            "title": "US states",
            "type": "array",
            "description": "Keep only locations in these US states. Accepts a two-letter code (CA), full name (California) or directory slug (new-york). This also narrows the crawl itself — only the matching state directories are visited, making a single-state run far cheaper. Clear it to crawl every state.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Keep only locations in these cities (exact name, case-insensitive, e.g. 'Los Angeles'). For partial matches use the search term instead.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Keep only locations in these countries. Accepts the display name (United Kingdom) or the directory slug (united-kingdom).",
            "items": {
              "type": "string"
            }
          },
          "zipcodes": {
            "title": "Zipcodes / zipcode prefixes",
            "type": "array",
            "description": "Keep only US locations with these zipcodes. A full 5-digit value matches exactly; anything shorter matches as a prefix, so '902' keeps every 902xx location.",
            "items": {
              "type": "string"
            }
          },
          "locationType": {
            "title": "Location type",
            "enum": [
              "any",
              "us",
              "international"
            ],
            "type": "string",
            "description": "Keep only US locations, only international ones, or both.",
            "default": "any"
          },
          "minStartingPrice": {
            "title": "Min starting price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only locations whose starting price is at least this many US dollars. Locations with no listed price are excluded when a price bound is set."
          },
          "maxStartingPrice": {
            "title": "Max starting price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only locations whose starting price is at most this many US dollars, e.g. 15 for the cheapest mailboxes."
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies used for crawling. Residential US is recommended."
          },
          "fetchDetails": {
            "title": "Fetch per-location detail pages",
            "type": "boolean",
            "description": "Addresses always come from the state listing pages (fast, complete). With this on, each location's /s/ detail page is also fetched to add the building suite + mail-center operator (more requests; the site occasionally soft-404s these under load, which is retried).",
            "default": true
          },
          "enrichWithSmarty": {
            "title": "Enrich with Smarty",
            "type": "boolean",
            "description": "Verify each scraped address via Smarty. If off (or no credentials are provided), the actor only scrapes addresses.",
            "default": true
          },
          "forceReenrich": {
            "title": "Force re-enrich (ignore cache)",
            "type": "boolean",
            "description": "Re-send every address to Smarty even if already cached. Normally only new or changed addresses are verified.",
            "default": false
          },
          "smartyAuthId": {
            "title": "Smarty Auth ID",
            "type": "string",
            "description": "Smarty secret-key auth-id. Falls back to the SMARTY_AUTH_ID environment variable."
          },
          "smartyAuthToken": {
            "title": "Smarty Auth Token",
            "type": "string",
            "description": "Smarty secret-key auth-token. Falls back to the SMARTY_AUTH_TOKEN environment variable."
          },
          "smartyMatch": {
            "title": "Smarty US match strategy",
            "enum": [
              "enhanced",
              "strict",
              "invalid"
            ],
            "type": "string",
            "description": "US Street API match mode.",
            "default": "enhanced"
          },
          "usCandidates": {
            "title": "US candidates per address",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Max US Street API candidates to return per address (1-10).",
            "default": 1
          },
          "intlGeocode": {
            "title": "International geocoding",
            "type": "boolean",
            "description": "Request latitude/longitude for international addresses.",
            "default": true
          },
          "intlConcurrency": {
            "title": "International verify concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests to the Smarty International API (GET, one address each).",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}