Loading
GGX_LABS
DEVELOPER API / QUICKSTART

Quickstart

Make a first authenticated request using the same examples exposed by the Developer Console.

Prepare a key

  1. 01Sign in to the GGX Labs Developer Console.
  2. 02Create an API key and copy its secret when it is displayed.
  3. 03Keep the secret server-side and outside source control.
  4. 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.