On this page
Prepare a key
- 01Sign in to the GGX Labs Developer Console.
- 02Create an API key and copy its secret when it is displayed.
- 03Keep the secret server-side and outside source control.
- 04Make sure the key has the scope required by the endpoint you are calling.
cURL
curl "https://backend.ggxlabs.in/v1/ip/8.8.8.8" \ -H "Authorization: Bearer ggx_live_..."Node.js
const res = await fetch( "https://backend.ggxlabs.in/v1/ip/8.8.8.8", { headers: { Authorization: "Bearer ggx_live_...", }, } ); const data = await res.json(); console.log(data);Python
import requests res = requests.get( "https://backend.ggxlabs.in/v1/ip/8.8.8.8", headers={"Authorization": "Bearer ggx_live_..."}, ) data = res.json() print(data)Production practice
Store API secrets in environment variables or a dedicated secret manager. The key shown in these examples is intentionally only a placeholder.
