{
  "openapi": "3.0.1",
  "info": {
    "title": "US Medical Equipment & DMEPOS Supplier Leads Scraper",
    "description": "Scrape the official CMS Medicare medical-equipment (DMEPOS) supplier directory: business name, phone, full address, Medicare participation, product lines (CPAP, oxygen, wheelchairs, diabetic, orthotics), geo & lead score. Filter by state, product & enrollment date. B2B leads + monitoring.",
    "version": "0.1",
    "x-build-id": "HEEpeDynukksNJ5s1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~medical-equipment-supplier-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-medical-equipment-supplier-leads",
        "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/scrapesage~medical-equipment-supplier-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-medical-equipment-supplier-leads",
        "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/scrapesage~medical-equipment-supplier-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-medical-equipment-supplier-leads",
        "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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Filter by the supplier's state — two-letter USPS codes, e.g. <code>CA</code>, <code>TX</code>, <code>FL</code>, <code>NY</code>. Leave empty to pull from <b>all</b> states &amp; territories. Filtering by state is server-side and much faster than a national scan.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Filter by the supplier's city (case-insensitive, exact city name), e.g. <code>Dallas</code>, <code>Miami</code>, <code>Phoenix</code>.",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes (prefix)",
            "type": "array",
            "description": "Filter by ZIP — full ZIP (<code>75201</code>) or a prefix (<code>752</code> matches all 752xx). The 5-digit ZIP is used for matching.",
            "items": {
              "type": "string"
            }
          },
          "centerLatitude": {
            "title": "Radius search — center latitude",
            "type": "string",
            "description": "Optional radius search. Latitude of the center point, e.g. <code>32.7767</code>. Set all three radius fields to only return suppliers within the radius."
          },
          "centerLongitude": {
            "title": "Radius search — center longitude",
            "type": "string",
            "description": "Longitude of the center point, e.g. <code>-96.7970</code>."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "type": "integer",
            "description": "Only return suppliers within this many miles of the center point (uses each supplier's geo coordinates)."
          },
          "supplyCategories": {
            "title": "Product categories",
            "type": "array",
            "description": "Only return suppliers that carry at least one of the selected product categories (mapped from the supplier's raw product list). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Respiratory & Oxygen",
                "Mobility & Wheelchairs",
                "Diabetic Supplies & Shoes",
                "Orthotics & Prosthetics",
                "Wound Care",
                "Hospital Beds & Support Surfaces",
                "Urological & Ostomy",
                "Enteral & Parenteral Nutrition",
                "Pain & Stimulation Devices",
                "Compression & Lymphedema",
                "Monitoring & Diagnostics",
                "Bath & Daily-Living Safety",
                "Vision & Ocular",
                "Hearing"
              ]
            }
          },
          "supplyKeywords": {
            "title": "Product keywords (contains)",
            "type": "array",
            "description": "Only return suppliers whose raw product list contains one of these keywords (case-insensitive), e.g. <code>CPAP</code>, <code>oxygen</code>, <code>wheelchair</code>, <code>diabetic shoes</code>, <code>hospital bed</code>. Combine with categories for precise targeting.",
            "items": {
              "type": "string"
            }
          },
          "minSupplyCategories": {
            "title": "Min product categories",
            "type": "integer",
            "description": "Only suppliers carrying at least this many distinct product categories — a useful proxy for larger, full-line DME businesses."
          },
          "specialtyQuery": {
            "title": "Specialty contains",
            "type": "string",
            "description": "Only suppliers whose specialty list contains this text (case-insensitive), e.g. <code>orthotic</code>, <code>pharmacy</code>, <code>rehab</code>."
          },
          "providerTypeQuery": {
            "title": "Provider type contains",
            "type": "string",
            "description": "Only suppliers whose provider-type list contains this text (case-insensitive), e.g. <code>pedorthic</code>, <code>pharmacy</code>, <code>physical therap</code>."
          },
          "businessNameQuery": {
            "title": "Business name contains",
            "type": "string",
            "description": "Only suppliers whose business or practice name contains this text (case-insensitive), e.g. <code>medical</code>, <code>home care</code>, or a specific company name."
          },
          "acceptsAssignmentOnly": {
            "title": "Medicare-participating only (accepts assignment)",
            "type": "boolean",
            "description": "Only suppliers that accept Medicare assignment — i.e. participating suppliers actively billing Medicare. A strong signal of an established, active business.",
            "default": false
          },
          "competitiveBidOnly": {
            "title": "Competitive-bid contractors only",
            "type": "boolean",
            "description": "Only suppliers holding a Medicare Competitive Bidding Area (CBA) contract — vetted, established suppliers in competitive-bid product areas.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "With phone number only",
            "type": "boolean",
            "description": "Only return suppliers that have a phone number (the vast majority do).",
            "default": false
          },
          "excludePharmacies": {
            "title": "Exclude pharmacies",
            "type": "boolean",
            "description": "Skip suppliers whose name indicates a pharmacy — handy when you only want dedicated DME / home-medical-equipment businesses.",
            "default": false
          },
          "newlyEnrolledOnly": {
            "title": "Newly enrolled only (last 12 months)",
            "type": "boolean",
            "description": "Only suppliers whose Medicare participation began within the last 365 days — fresh businesses with high buying intent (billing, accreditation, software, supplies). Combines with date-sorted scanning for fast, cheap runs.",
            "default": false
          },
          "newlyEnrolledWithinDays": {
            "title": "Newly enrolled within N days",
            "type": "integer",
            "description": "Only suppliers whose participation began within this many days (e.g. <code>90</code> for the last quarter). Overrides the 12-month toggle when set."
          },
          "enrolledAfter": {
            "title": "Enrolled on/after",
            "type": "string",
            "description": "Only suppliers whose Medicare participation began on or after this date, <code>YYYY-MM-DD</code>."
          },
          "enrolledBefore": {
            "title": "Enrolled on/before",
            "type": "string",
            "description": "Only suppliers whose Medicare participation began on or before this date, <code>YYYY-MM-DD</code>."
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return suppliers with a derived lead score (0-100) at or above this value."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of supplier records to return in this run.",
            "default": 1000
          },
          "maxResultsPerState": {
            "title": "Max results per state",
            "type": "integer",
            "description": "Optional cap on the number of suppliers returned per state — useful for an even spread across many states."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "leadScore",
              "name",
              "state",
              "source"
            ],
            "type": "string",
            "description": "<b>Newest enrolled</b> = most recently enrolled suppliers first (best for fresh leads; fastest). <b>Lead score</b> = highest-scoring leads first (scans a larger pool). <b>Name / State</b> = alphabetical. <b>Source order</b> = fastest on very large limits.",
            "default": "newest"
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Skip duplicate supplier locations within this run (recommended).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new / changed suppliers",
            "type": "boolean",
            "description": "Remember which suppliers were already returned (in a named key-value store) and emit ONLY suppliers that are <b>new</b> or <b>changed</b> since the last run — each tagged <code>monitorEvent: \"new\"</code> or <code>\"updated\"</code>. CMS refreshes this directory regularly; run on a Schedule to capture newly-enrolled suppliers as fresh leads. Works alongside Apify Schedules (the schedule starts the run; monitoring decides what's new).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved watch (e.g. per state or product category) so different monitors don't share state.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. The CMS data API is queried directly and needs no proxy — leave this off for the fastest runs. Enable Apify Proxy only if your network requires it.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}