Wednesday, January 31, 2024

Not the API I Had in Mind

 For years, I have wished that there were a website that could tell me who is demonstrating which day near the White House. Some group often is, and anyone without an encyclopedic knowledge of flags must sometimes walk over to the edge and ask someone what the group, and perhaps the grievance, is. I have to think that most of the groups have a permit. I suppose that the two or three fellows I see with East Turkmenistan flags on Pennsylvania Avenue don't have or really need one, nor probably does the bagpiper who is often there. But the people who march for blocks to get to Lafayette Square or set up stands and sound systems must have one.

 A couple of weeks ago, I saw a post on Hacker News that linked to the page for an API offered by the US Park Service. This, I thought, was just the thing, for the US Park Police is in charge of Lafayette Square, among other areas around the White House. With the free API key and the clear documentation, it took little time to put together a script to retrieve and print information about sites in the District of Columbia. It took not much more to write a script to retrieve and print out information about all of the week's events at the White House and President's Park. But there were no such events. A closer look said that the events listed would be those arranged by Park Service. I thought perhaps alerts would serve me better than events. They did not--the only alert told of masking status at the White House.

1 comment: