Server location for Pages or Workers

I have some specific APIs that I need to call in my server code, they only allow certain locations to access, looks like most of the times it’s not working for my users, so I need a way to make sure these are served from servers with IP addresses in the allowed locations of the API that I’m using, is that possible to configure?