The API Briefing: APIs Come In Many (Data) Flavors
This week, we will look at three different APIs that demonstrate how agencies use different technologies to serve out data. Presenting data in various formats encourages developers to build on federal APIs. As past columns have shown, the innovative apps created with federal data are quickly growing.
The latest API news this week is how quickly the Department of Labor (DOL) built a Software Developer Kit (SDK) for Apple’s new programming language. Apple just released the Swift programming language, which is optimized for building apps. Two weeks later, DOL has an SDK that allows Swift developers to access numerous federal APIs including all the APIs from the Census Bureau and selected APIs from over 15 agencies. The federal government API community demonstrates how responsive and cutting-edge the agencies are.
In a past column, we talked about how to read JSON data. As you may remember, JSON stands for JavaScript Object Notation and is a structured way to deliver federal data to apps. Before JSON, there was eXtensible Markup Language (XML). Like JSON, it uses a key and value structure to structure the data. If you examine the Federal Aviation Administration (FAA)’s Airport Service API, you can view a sample of the XML response. Notice the HTML-like tags such as “
Besides JSON and XML, there are several specialized data formats depending on the type of federal data provided. The U.S. Geological Survey (USGS) provides water data through XML and JSON but also in several different geospatial-based data formats. Developers can receive data through WaterML (Water Markup Language), which is an industry-defined standard for exchanging hydrological data. Alternatively, developers can use Keyhole Markup Language (KML) which is the XML-like language used for Google Earth.
The number of federal APIs and the myriad ways of using the APIs can be overwhelming. An excellent reference site for the API developer is the General Services Administration (GSA)’s Mobile Code Catalog. Along with the Data.gov Federal APIs Catalog, developers can read about the various code frameworks for mobile Web applications and view code samples for Android and iPhone apps. Not only are the federal agencies committed to providing APIs, they are also providing great developer resources for building useful and informative apps for the American public.Each week in “The API Briefing,” I will showcase government APIs and the latest API news and trends. Visit this blog every week to learn how government APIs are transforming government and improving government services for the American people. If you have ideas for a topic or have questions about APIs, please contact me via email. Dr. William A. Brantley, PMP, is a Program Analyst, in Forecasting and Methods at the U.S. Office of Personnel Management (OPM). You can find out more about his work in this space at BillBrantley.com.