DocumentationCode samples

SATIK DEVELOPER DOCS · V1 BETA

Plain HTTP. Your language.

Use your standard HTTP client. An official SDK is not required.

Node.js

Keep SATIK_KEY in a server environment variable.

const response = await fetch("https://api.satik.in/v1/addresses/normalize", {
  method: "POST",
  headers: { "Authorization": `Bearer ${process.env.SATIK_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({address: "H.No 12, MG Rd, Bangalore 560001"})
});
if (!response.ok) throw new Error(`Satik returned ${response.status}`);
console.log(await response.json());

Python

Use urllib from the standard library, or your existing requests client.

import os, json, urllib.request
request = urllib.request.Request(
  "https://api.satik.in/v1/addresses/normalize",
  data=json.dumps({"address":"H.No 12, MG Rd, Bangalore 560001"}).encode(),
  headers={"Authorization":"Bearer " + os.environ["SATIK_KEY"], "Content-Type":"application/json"})
with urllib.request.urlopen(request) as response:
  print(json.load(response))