Switch code API to GET.