built method to parse json and pull out urls for api access