Help Centre / API / SDKs

SDKs

Updated just now · 6 views ·

MapVS doesn't ship official SDKs yet. The API is straightforward enough to call directly with your language's HTTP client - see the quick starts below.

Python

import requests

API_KEY = "vs_..."
BASE = "https://mapvs.com/api/v1"

def get_maps():
    r = requests.get(f"{BASE}/maps", headers={"Authorization": f"Bearer {API_KEY}"})
    r.raise_for_status()
    return r.json()["data"]

Node

import fetch from 'node-fetch';

const API_KEY = 'vs_...';
const BASE = 'https://mapvs.com/api/v1';

async function getMaps() {
  const r = await fetch(`${BASE}/maps`, { headers: { Authorization: `Bearer ${API_KEY}` } });
  if (!r.ok) throw new Error(await r.text());
  return (await r.json()).data;
}

Community SDKs

If you build one, tell us and we'll link it here. We're keen to see Ruby, Go, and Java clients from the community.

Was this article helpful?

0 found this helpful