// backend/getIP.jsw import { fetch } from 'wix-fetch'; export async function getVisitorIP() { try { const response = await fetch("https://api.ipify.org?format=json", { method: "get" }); if (response.ok) { const json = await response.json(); return json.ip; // returns the visitor's IP address } else { return "Error fetching IP"; } } catch (err) { console.error("IP fetch failed", err); return "Unavailable"; } }
top of page
CG TITLE.png
CG TITLE SUB.png
Capy - Grams
Important Questions
SEE HOW!
Happy Birthday
Valentine's Day
Happy Birthday
Holiday
Prank
WYG.png
WYG copy.png
CG ELEMENT.png
DETAILS.png
bottom of page