partially working api call