{
  "openapi": "3.0.1",
  "info": {
    "title": "FCC Broadcast Station & Owner Leads Scraper",
    "description": "Scrape the official FCC AM, FM & TV broadcast database: call sign, frequency, service, class, market, licensee (station owner), facility ID, power, GPS, license status & construction permits. Station + owner-portfolio B2B leads with filters, lead scoring & monitoring. No browser, no API key.",
    "version": "0.1",
    "x-build-id": "LF9SVcJnpfdBrllKN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~fcc-broadcast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-fcc-broadcast-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/scrapesage~fcc-broadcast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-fcc-broadcast-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/scrapesage~fcc-broadcast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-fcc-broadcast-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": {
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "stations",
              "owners"
            ],
            "type": "string",
            "description": "‘Broadcast stations’ returns one record per AM/FM/TV station (call sign + licensee). ‘Station owners (grouped)’ aggregates stations by licensee into owner/group portfolios (station count, bands, markets) — ideal for M&A and group-owner targeting.",
            "default": "stations"
          },
          "bands": {
            "title": "Bands",
            "type": "array",
            "description": "Which broadcast bands to include. FM covers full-power FM, LPFM, FM translators & boosters; TV covers full-power, Class A, LPTV & TV translators.",
            "items": {
              "type": "string",
              "enum": [
                "AM",
                "FM",
                "TV"
              ],
              "enumTitles": [
                "AM Radio",
                "FM Radio (incl. LPFM/translators)",
                "Television (incl. Class A/LPTV)"
              ]
            },
            "default": [
              "AM",
              "FM",
              "TV"
            ]
          },
          "states": {
            "title": "States / territories",
            "type": "array",
            "description": "Two-letter state/territory codes (e.g. CA, TX, NY, PR). Leave empty to scan all 50 states + DC + territories.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Licensed (on-air) only",
            "type": "boolean",
            "description": "Only return stations with a current LICENSED authorization. Turn OFF to also include construction permits (CP), applications and special temporary authorities — the highest-intent leads for equipment & engineering vendors.",
            "default": false
          },
          "licenseStatuses": {
            "title": "License statuses",
            "type": "array",
            "description": "Filter by authorization status code: LIC (Licensed), CP (Construction Permit), NCECP (Noncommercial Educational CP), APP (Application), MOD (Modification), STA (Special Temporary Authority). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "serviceCodes": {
            "title": "Service codes",
            "type": "array",
            "description": "Narrow to specific FCC service codes, e.g. FM (full-power FM), FL (LPFM), FX (FM translator), DT (full-power digital TV), DC (Class A TV), LD (low-power TV). Empty = all in the selected bands.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stationClasses": {
            "title": "Station classes",
            "type": "array",
            "description": "Filter by station class, e.g. A, B, B1, C, C0, C1, C2, C3, D (FM) or A, B, C, D (AM). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "communities": {
            "title": "Community of license contains",
            "type": "array",
            "description": "Keep only stations whose community of license (city) contains one of these terms. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "callSignQuery": {
            "title": "Call sign contains",
            "type": "string",
            "description": "Filter by call sign (substring match, e.g. KQ or WXYZ)."
          },
          "licenseeQuery": {
            "title": "Licensee / owner contains",
            "type": "string",
            "description": "Filter by licensee (station owner) name — e.g. ‘iHeart’, ‘Townsquare’, ‘Cumulus’, ‘Educational’. Substring match."
          },
          "nameQuery": {
            "title": "Keyword (owner / call sign / community)",
            "type": "string",
            "description": "Free-text keyword matched across licensee name, call sign and community of license."
          },
          "minErpKw": {
            "title": "Minimum power (ERP, kW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return stations with effective radiated power at or above this value (kW). Useful to target larger, higher-budget stations."
          },
          "authorizedAfter": {
            "title": "Authorized after (YYYY-MM-DD)",
            "type": "string",
            "description": "Only return authorizations whose file/action date is on or after this date (great for catching fresh construction permits & new applications). Note: TV LMS records may not carry a parseable date."
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return records with a lead score (0–100) at or above this value."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "powerHigh",
              "newest",
              "callSign"
            ],
            "type": "string",
            "description": "Order of results before the max-results cap is applied.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to return (stations or owner profiles depending on output mode).",
            "default": 1000
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the complete raw pipe-delimited field array (rawFields) from the FCC feed to every station record, so no source data is ever lost.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember what was returned on previous runs (per monitor key) and emit only NEW stations (or owners whose station count changed). Perfect for a recurring Apify Schedule that feeds fresh construction permits, new stations and ownership changes into your CRM. Works alongside Apify scheduling — they are independent.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the saved monitor state, so different filter setups track new records independently. Use a distinct key per saved configuration.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The FCC open data feeds work directly from Apify with no proxy; you can enable one if you prefer.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}