fixed the request error. now needa figure out the api part