how to make api call from chrome