returns JSON in graphable format from API