When using WARP+ or Gateway, your egress IP changes - endpoints on Cloudflare see your “real” WAN IP address, and endpoints elsewhere on the internet see a Cloudflare IP as your client address per FAQ · Cloudflare WARP client docs
I’d like to understand whether there is a Cloudflare provided endpoint I can call to get what that egress VIP “would” be?
Correct - the one that the site you’re visiting is seeing would be best, since I can refresh the extension’s state on tab loading or completion events.
IIRC, WARP egress IPs are based on the colo (“edge PoP”) closest to you [from a networking PoV] - e.g. I consistently get an IP that geolocates to San Jose (SJC), regardless of where the site is hosted.
That IP might change over time but I’d expect it to be the same no matter the site I’m visiting in a given moment of time. Put another way, I would expect any off-Cloudflare site I visit in the next 5 minutes to see the same 8.45.41.237 address. It’s that address I want to be able to retrieve.
There is not. And because of smart routing it’s possible that address could be different depending on the origin’s location. You could certainly build a tool to determine this based on a unique query url (or similar strategy).