{
  "openapi": "3.0.1",
  "info": {
    "title": "FCC ULS License Scraper - Business Radio & Microwave Licenses",
    "description": "Scrape FCC Universal Licensing System (ULS) business/industrial land-mobile radio (IG, YG) and point-to-point microwave (CF, MG) licenses by state, status, and expiration window from FCC bulk files.",
    "version": "0.1",
    "x-build-id": "OKizNDWqecw9AfYlg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/groundplanes~fcc-uls-business-radio-licenses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-groundplanes-fcc-uls-business-radio-licenses",
        "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/groundplanes~fcc-uls-business-radio-licenses/runs": {
      "post": {
        "operationId": "runs-sync-groundplanes-fcc-uls-business-radio-licenses",
        "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/groundplanes~fcc-uls-business-radio-licenses/run-sync": {
      "post": {
        "operationId": "run-sync-groundplanes-fcc-uls-business-radio-licenses",
        "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": {
          "expiringWithinDays": {
            "title": "Expiring Within Days (EXPIRING Mode Only)",
            "minimum": 1,
            "type": "integer",
            "description": "When status is EXPIRING, keeps active licenses whose expirationDate is between today and today + expiringWithinDays.",
            "default": 180
          },
          "includeContacts": {
            "title": "Include Named Contact, Email & Phone Number",
            "type": "boolean",
            "description": "Defaults to false for privacy compliance because FCC ULS EN.dat contains a named attention contact, email, and telephone number. Enable only when needed for authorized compliance or renewal workflows.",
            "default": false
          },
          "includeIndividualLicensees": {
            "title": "Include Individual Person Licensees",
            "type": "boolean",
            "description": "Defaults to false for privacy compliance; drops rows where the licensee is an individual person (has first/last name and no business/entity name).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of license rows to return.",
            "default": 200
          },
          "radioServiceCodes": {
            "title": "FCC Radio Service Codes",
            "type": "array",
            "description": "FCC ULS radio service codes to include, as 2-letter codes. Common choices: IG (Industrial/Business Pool Conventional), YG (Industrial/Business Pool Trunked), CF (Common Carrier Fixed Point-to-Point Microwave), MG (Microwave Industrial/Business Pool). All codes present in the two bulk archives are supported: land mobile (l_LMpriv.zip) GB, GI, GJ, GO, GP, GU, IG, IK, LN, NC, PW, QD, QO, QQ, QT, RS, SG, SL, SP, SY, WP, WX, YB, YG, YI, YK, YM, YO, YU, YW, YX; microwave (l_micro.zip) CE, CF, CJ, CT, MG, MW, NN, PC, PE, TI, TN, TP, TS, TT, WA, WM, WR. Unsupported codes fail the run with a clear message.",
            "items": {
              "pattern": "^[A-Za-z]{2}$",
              "type": "string"
            },
            "default": [
              "IG",
              "YG"
            ]
          },
          "states": {
            "title": "Licensee States (2-letter codes)",
            "type": "array",
            "description": "Two-letter US state or territory postal codes for the licensee address (e.g. [\"AZ\"] or [\"AZ\", \"NV\"]). Leave empty to match all states.",
            "items": {
              "type": "string"
            },
            "default": [
              "AZ"
            ]
          },
          "status": {
            "title": "License Status Mode",
            "enum": [
              "EXPIRING",
              "ACTIVE",
              "EXPIRED",
              "CANCELLED"
            ],
            "type": "string",
            "description": "Filter by license status: EXPIRING (active licenses expiring within expiringWithinDays), ACTIVE (all active licenses), EXPIRED, or CANCELLED.",
            "default": "EXPIRING"
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}