In a recent project, one of the features that I was working on required that the application make periodic calls to a third-party API in order to retrieve a piece of information to be used later throughout the application.
This piece of data changes over time (though the intervals are irregular) and the end point to which the application connects doesn’t return a standard XML, JSON, or the information in any other standard protocol. Instead, it returns a string of mixed HTML and JavaScript.
The piece of key information is prefixed stored in a JavaScript so it’s easy to get the proverbial bearings from the API’s response, but in terms of grabbing the unique data, it requires some work to extract the data with a regular expression.

