The FCC has at least two APIs related to broadcast station data. One is TV Query, which can return pipe-delimited results like this (keys):
|K02JU |- |TX |2 |DA | |- |- |LIC |SELAWIK |AK |US |BLTTV -19800620IA |0.018 kW |- |0.0 |- |11543 |N |66 |35 |57.00 |W |160 |0 |0.00 |CITY OF SELAWIK | 0.00 km | 0.00 mi | 0.00 deg |72. m|H |20773 |210. |- |0. |21309 |- |
|K02KB |- |TX |2 |DA | |- |- |LIC |ALLAKAKET |AK |US |BLTTV -19800908IY |0.018 kW |- |0.0 |- |1036 |N |66 |33 |53.00 |W |152 |38 |38.00 |ALLAKAKET CITY COUNCIL | 0.00 km | 0.00 mi | 0.00 deg |113. m|H |20773 |90. |- |0. |23306 |- |
I'm trying to use the facilityID
field from its results as input for the FCC's TV Stations API (specifically, the broadcast contour method [see example]). The problem is that many of the facilityIDs yield no results. I'm guessing this simply means that the TV Query query is scooping up types of facilities that aren't in the same category as those in the Stations database.
So: How can I refine the TV Query query to only include the "right type" of station?