make api call
properly querying the api