Get graph data from API