Pin LeonidaGTA 6 map & tracker Sign in Unofficial

API documentation

Everything you need to use your Pin Leonida API key: sign-up, auth, every endpoint and parameter, full examples in curl, JavaScript and Python, response fields, limits, errors and the rules.

1. Quick start

  1. Make a free key on the Developers page (needs a free Pin Leonida account).
  2. Copy the key. It starts with plk_.
  3. Run this, with your key in place of YOUR_KEY:
curl -H "X-API-Key: YOUR_KEY" "https://pinleonida.com/api/v1/pins?per_page=5"

You get JSON with up to 5 pins. Show β€œData: Pin Leonida” with a link wherever you use the data (see credit rules).

↑ Back to top

2. Get a key, step by step

  1. Open pinleonida.com/developers and scroll to Your API keys.
  2. Not signed in? Press πŸ‘€ Sign in or create account. On the account page, choose Create account, enter your email, a username and a password, then confirm. Already have an account (from pinning a find or the giveaway)? Just sign in β€” it's the same account.
  3. Come back to /developers/#keys. You now see Make a free key.
  4. Type a name for your app (optional, e.g. β€œMy GTA 6 bot”).
  5. Tick the box to accept the API terms (non-commercial use + visible credit).
  6. Press πŸ”‘ Make my free key.
  7. Your key appears in a yellow dashed box. Press πŸ“‹ Copy key and save it somewhere safe (a password manager or your server's environment variables).
⚠ The full key is shown only once. We store only a scrambled (hashed) copy, so nobody β€” not even us β€” can show it again. Lost it? Revoke it and make a new one. You can have up to 3 active keys.
↑ Back to top

3. Find, copy or revoke your key

↑ Back to top

4. Authentication

Every endpoint except /api/v1/ needs a key. Send it one of two ways:

A. Header (recommended)

X-API-Key: plk_your_key_here

B. Query string

https://pinleonida.com/api/v1/pins?key=plk_your_key_here

If both are sent, the header wins. The query string is handy for quick tests, but it can end up in logs and browser history, so prefer the header in real apps.

Keep keys secret. Don't commit them to GitHub. In a public web page anyone can see the key β€” that's OK for a Free key on a small fan site, but for anything bigger call the API from your server and cache the results.
↑ Back to top

5. Base URL and format

↑ Back to top

6. GET /pins

List all pins (map pins + approved community pins), with filters and pages.

ParamTypeDefaultWhat it does
categorytextallOne of town, landmark, island, water, loot (unique weapons, vehicles, safes, collectibles), community. Alias: type.
regiontextallRegion id: vice-city, port-gellhorn, leonida-keys, mount-kalaga, grassrivers, ambrosia. Area names also work (e.g. The Keys).
qtextnoneCase-insensitive search in name and description.
pagenumber1Page number, from 1.
per_pagenumber25Pins per page. Max 50 on Free, 200 on Developer (higher values are capped).
keytextβ€”Your key, if you don't use the header.

Filters combine (AND). Pins come in map order. Use next to get the following page; it's null on the last page.

curl

curl -H "X-API-Key: YOUR_KEY" \
  "https://pinleonida.com/api/v1/pins?category=loot&region=port-gellhorn&per_page=1"

JavaScript (fetch)

const KEY = "YOUR_KEY";
const url = "https://pinleonida.com/api/v1/pins?category=loot&region=port-gellhorn&per_page=50";
const res = await fetch(url, { headers: { "X-API-Key": KEY } });
if (!res.ok) throw new Error((await res.json()).message);
const body = await res.json();
console.log(body.total, "pins");
for (const pin of body.data) console.log(pin.name, pin.square, pin.url);

Python (requests)

import requests

KEY = "YOUR_KEY"
r = requests.get(
    "https://pinleonida.com/api/v1/pins",
    headers={"X-API-Key": KEY},
    params={"category": "loot", "region": "port-gellhorn", "per_page": 50},
    timeout=20,
)
r.raise_for_status()
body = r.json()
for pin in body["data"]:
    print(pin["name"], pin["square"], pin["url"])

Get every pin (all pages)

# Python
import requests
KEY, out, page = "YOUR_KEY", [], 1
while True:
    r = requests.get("https://pinleonida.com/api/v1/pins",
                     headers={"X-API-Key": KEY},
                     params={"per_page": 50, "page": page}, timeout=20)
    r.raise_for_status()
    b = r.json()
    out += b["data"]
    if not b["next"]:
        break
    page += 1
print(len(out), "pins")
// JavaScript
async function allPins(key) {
  let page = 1, out = [];
  while (true) {
    const r = await fetch(`https://pinleonida.com/api/v1/pins?per_page=50&page=${page}`,
                          { headers: { "X-API-Key": key } });
    const b = await r.json();
    out = out.concat(b.data);
    if (!b.next) return out;
    page++;
  }
}

Example response (200)

{
  "data": [
    {
      "id": "gutterball-shotgun-kingpin-bowling",
      "name": "Gutterball Moreland 850 Shotgun (Kingpin Bowling)",
      "category": "loot",
      "region": "port-gellhorn",
      "area": "West coast",
      "square": "E3",
      "x": 289,
      "y": 435,
      "description": "Unique shotgun variant, a Key Valuable of the Kolt & Associates Illegal Operation at Kingpin Bowling, Port Gellhorn. On a pool table at the back (east side), just left of the safe office.",
      "credit": "Hades65036",
      "source_url": "https://x.com/ign/status/2127132998583591031",
      "image_url": null,
      "community": false,
      "url": "https://pinleonida.com/pins/gutterball-shotgun-kingpin-bowling/"
    }
  ],
  "page": 1,
  "per_page": 1,
  "total": 37,
  "pages": 37,
  "next": "/api/v1/pins?category=loot&region=port-gellhorn&per_page=1&page=2",
  "attribution": "Data: Pin Leonida (https://pinleonida.com)",
  "tier": "free",
  "commercial_use": false
}
FieldMeaning
dataArray of pin objects
page, per_pageThe page you got and its size
totalPins matching your filters (all pages)
pagesNumber of pages
nextPath for the next page, or null
attribution, tier, commercial_useCredit text, your plan, and whether commercial use is allowed on it
↑ Back to top

7. GET /pins/{id}

One pin. The id is the same as in the pin's page URL (pinleonida.com/pins/{id}/). Community pins have ids like c12.

curl -H "X-API-Key: YOUR_KEY" https://pinleonida.com/api/v1/pins/gutterball-shotgun-kingpin-bowling
const r = await fetch("https://pinleonida.com/api/v1/pins/gutterball-shotgun-kingpin-bowling",
                      { headers: { "X-API-Key": "YOUR_KEY" } });
const { data: pin } = await r.json();
import requests
pin = requests.get("https://pinleonida.com/api/v1/pins/gutterball-shotgun-kingpin-bowling",
                   headers={"X-API-Key": "YOUR_KEY"}, timeout=20).json()["data"]

Example response (200)

{
  "data": {
    "id": "gutterball-shotgun-kingpin-bowling",
    "name": "Gutterball Moreland 850 Shotgun (Kingpin Bowling)",
    "category": "loot",
    "region": "port-gellhorn",
    "area": "West coast",
    "square": "E3",
    "x": 289,
    "y": 435,
    "description": "Unique shotgun variant, a Key Valuable of the Kolt & Associates Illegal Operation at Kingpin Bowling, Port Gellhorn. On a pool table at the back (east side), just left of the safe office.",
    "credit": "Hades65036",
    "source_url": "https://x.com/ign/status/2127132998583591031",
    "image_url": null,
    "community": false,
    "url": "https://pinleonida.com/pins/gutterball-shotgun-kingpin-bowling/"
  },
  "attribution": "Data: Pin Leonida (https://pinleonida.com)",
  "tier": "free",
  "commercial_use": false
}

Unknown id β†’ 404 not_found.

↑ Back to top

8. GET /regions

The six map regions with live pin counts, a center point on the map grid and the region page link. No parameters.

curl -H "X-API-Key: YOUR_KEY" https://pinleonida.com/api/v1/regions
const { data: regions } = await (await fetch("https://pinleonida.com/api/v1/regions",
  { headers: { "X-API-Key": "YOUR_KEY" } })).json();
regions = requests.get("https://pinleonida.com/api/v1/regions",
                       headers={"X-API-Key": "YOUR_KEY"}, timeout=20).json()["data"]

Example response (200, shortened to 2 of 6 regions)

{
  "data": [
    {
      "id": "vice-city",
      "name": "Vice City",
      "area": "Vice City area",
      "pins": 50,
      "x": 630.0,
      "y": 735.0,
      "url": "https://pinleonida.com/vice-city/"
    },
    {
      "id": "port-gellhorn",
      "name": "Port Gellhorn",
      "area": "West coast",
      "pins": 30,
      "x": 300.0,
      "y": 500.0,
      "url": "https://pinleonida.com/port-gellhorn/"
    }
  ],
  "attribution": "Data: Pin Leonida (https://pinleonida.com)",
  "tier": "free",
  "commercial_use": false
}
↑ Back to top

9. GET /stats

Totals: all pins, map pins, community pins, counts by category and by region, and when the map last changed (updated_at, ISO 8601 UTC). No parameters.

curl -H "X-API-Key: YOUR_KEY" https://pinleonida.com/api/v1/stats
const { data: stats } = await (await fetch("https://pinleonida.com/api/v1/stats",
  { headers: { "X-API-Key": "YOUR_KEY" } })).json();
console.log(stats.total_pins);
stats = requests.get("https://pinleonida.com/api/v1/stats",
                     headers={"X-API-Key": "YOUR_KEY"}, timeout=20).json()["data"]

Example response (200, numbers are an example)

{
  "data": {
    "total_pins": 199,
    "map_pins": 196,
    "community_pins": 3,
    "by_category": {
      "loot": 157,
      "town": 17,
      "island": 10,
      "water": 8,
      "landmark": 6,
      "community": 3
    },
    "by_region": {
      "vice-city": 51,
      "port-gellhorn": 30,
      "leonida-keys": 28
    },
    "updated_at": "2026-11-30T20:30:00+00:00"
  },
  "attribution": "Data: Pin Leonida (https://pinleonida.com)",
  "tier": "free",
  "commercial_use": false
}
↑ Back to top

10. GET / (API info)

https://pinleonida.com/api/v1/ needs no key and does not count toward limits. It returns the API name, version, docs link, auth methods and endpoint list β€” useful as a health check.

↑ Back to top

11. Pin object fields

FieldTypeMeaning
idstringStable id, also used in the pin page URL. Community pins start with c.
namestringPin title
categorystringtown, landmark, island, water, loot or community
regionstringRegion id (see /regions); empty if none
areastringBroad area: North, West coast, Central & east, Vice City area, South & wetlands, The Keys
squarestringGrid square on our map, letter = row (A at top), number = column (1 at left), e.g. E3
x, ynumberPosition on Pin Leonida's map grid: x grows to the right, y grows downward; each grid square is 100Γ—100 units. Same units as our interactive map. Not in-game world coordinates.
descriptionstringWhere it is and how to get it (plain text)
creditstringWho found or submitted it (may be empty)
source_urlstring or nullOriginal source post, if any
image_urlstring or nullImage, if the pin has one
communitybooleantrue for approved community pins
urlstringThe pin's page on pinleonida.com β€” link to it when you show the pin

Before release, many pins are community research or rumors; descriptions say β€œunverified” where that applies. New fields may be added later (see versioning) β€” ignore fields you don't know.

↑ Back to top

12. Rate limits and headers

PlanRequests per dayMax per_pageCommercial use
Free1,00050βœ— No
Developer50,000200βœ“ Yes

The day resets at 00:00 UTC (7:00 PM Eastern, 8:00 PM during daylight time). Every call with a valid key counts, including ones that return 404, 304 or 429. Calls to /api/v1/ and preflight OPTIONS don't count.

Headers on every keyed reply

HeaderMeaning
X-RateLimit-LimitYour daily limit
X-RateLimit-RemainingCalls left today
X-RateLimit-ResetSeconds until the 00:00 UTC reset
Retry-AfterOn 429 only: seconds to wait
X-AttributionThe credit text
ETagOn 200 only: version tag of the reply (see caching)
curl -i -H "X-API-Key: YOUR_KEY" https://pinleonida.com/api/v1/stats

HTTP/2 200
content-type: application/json; charset=utf-8
x-ratelimit-limit: 1000
x-ratelimit-remaining: 997
x-ratelimit-reset: 18000
x-attribution: Data: Pin Leonida (https://pinleonida.com)
etag: "3f2a9c0d1e7b44aa9c10"
cache-control: private, max-age=60
↑ Back to top

13. Errors

Errors always return JSON with error (a fixed code you can check in your program), message (human text) and docs.

HTTPerrorWhenWhat to do
401missing_keyNo key sentAdd the X-API-Key header
401invalid_keyKey is wrong or mistypedCopy it again, or make a new one
401revoked_keyKey was revokedMake a new key
403β€”Access to a blocked path (e.g. internal files), or a failed session check on the key pageUse only the documented endpoints; reload the key page
404not_foundUnknown pin id or endpointCheck the id / path
405method_not_allowedNot a GETUse GET
429rate_limitedDaily limit reachedWait Retry-After seconds, cache more, or upgrade
429too_many_bad_keysOver 60 invalid keys from one network in an hourFix your key, wait an hour
500server_errorBug on our sideRetry in a minute; tell us if it keeps happening
503unavailableBackend briefly busy or in maintenanceRetry with a short wait

401 examples

{
  "error": "missing_key",
  "message": "Send your API key in the X-API-Key header or ?key=. Get a free key at https://pinleonida.com/developers/",
  "docs": "https://pinleonida.com/developers/docs/"
}
{
  "error": "invalid_key",
  "message": "That API key is not valid.",
  "docs": "https://pinleonida.com/developers/docs/"
}
{
  "error": "revoked_key",
  "message": "That API key was revoked. Make a new one at https://pinleonida.com/developers/",
  "docs": "https://pinleonida.com/developers/docs/"
}

403 example

HTTP/2 403   (internal files such as /api/v1/_plapi.php are blocked by the server; plain HTML/empty body)

// On the key page (/fan-api/dev-keys.php), a failed session check:
{"ok": false, "error": "Session check failed. Reload the page and try again."}

404 example

{
  "error": "not_found",
  "message": "No pin with that id.",
  "docs": "https://pinleonida.com/developers/docs/"
}

405 example

{
  "error": "method_not_allowed",
  "message": "This API is read-only. Use GET.",
  "docs": "https://pinleonida.com/developers/docs/"
}

429 examples

{
  "error": "rate_limited",
  "message": "Daily limit of 1000 requests reached for the Free tier. Resets at 00:00 UTC.",
  "docs": "https://pinleonida.com/developers/docs/"
}
{
  "error": "too_many_bad_keys",
  "message": "Too many invalid keys from your network. Wait an hour.",
  "docs": "https://pinleonida.com/developers/docs/"
}

500 example

{
  "error": "server_error",
  "message": "Something went wrong on our side. Try again in a minute.",
  "docs": "https://pinleonida.com/developers/docs/"
}

503 example

{
  "error": "unavailable",
  "message": "API backend busy. Try again soon.",
  "docs": "https://pinleonida.com/developers/docs/"
}

Handling errors (JavaScript)

const r = await fetch(url, { headers: { "X-API-Key": KEY } });
if (r.status === 429) {
  const wait = Number(r.headers.get("Retry-After") || 60);
  console.log(`Limit reached, try again in ${wait}s`);
} else if (!r.ok) {
  const e = await r.json();
  console.log(r.status, e.error, e.message);
}

Handling errors (Python)

r = requests.get(url, headers={"X-API-Key": KEY}, timeout=20)
if r.status_code == 429:
    print("Limit reached, retry in", r.headers.get("Retry-After"), "seconds")
elif not r.ok:
    e = r.json()
    print(r.status_code, e["error"], e["message"])
↑ Back to top

14. CORS (browser use)

CORS is on for every origin: Access-Control-Allow-Origin: *. Allowed: GET, OPTIONS; request headers X-API-Key, Content-Type, If-None-Match. Your script can read X-RateLimit-*, X-Attribution, ETag and Retry-After. Preflight answers are cached for a day. No cookies are used or needed.

↑ Back to top

15. Caching and ETag

curl -H "X-API-Key: YOUR_KEY" -H 'If-None-Match: "3f2a9c0d1e7b44aa9c10"' \
  -i https://pinleonida.com/api/v1/stats
# HTTP/2 304  (use your cached copy)
↑ Back to top

16. Attribution (credit) rules

Required on Free, appreciated on Developer. Show this exact text where people can see it, on every page or screen that shows Pin Leonida data, linked to https://pinleonida.com:

Data: Pin Leonida

HTML snippet

<a href="https://pinleonida.com" target="_blank" rel="noopener">Data: Pin Leonida</a>

Markdown (Discord bots, READMEs)

[Data: Pin Leonida](https://pinleonida.com)
↑ Back to top

17. Free vs commercial use

FreeDeveloper
Personal projects, learning, hobby botsβœ“βœ“
Fan site with no ads and nothing for saleβœ“βœ“
Ads, paid apps, subscriptions, donations-for-perks, sponsored contentβœ—βœ“
Client or agency workβœ—βœ“
Visible creditRequiredAppreciated

For everyone

  1. Keys are personal. Don't share, sell or publish them, and don't use many keys to get around limits.
  2. Don't republish the whole dataset as a competing map or bulk download.
  3. Cache sensibly and don't hammer the API.
  4. We may change limits or revoke keys that break these terms. Big changes are posted on this page first.
  5. Pin Leonida is an unofficial fan site, not connected to Rockstar Games or Take-Two Interactive. Data is provided as-is, without warranty, and may be wrong before the game is out.
↑ Back to top

18. Upgrading to Developer

Developer plan: $4.99/month or $39/year (US dollars). 50,000 requests a day, up to 200 pins per page, commercial use.

  1. Sign in and open your key page. No key yet? Make a free one first (steps).
  2. On the key you want to upgrade, press ⭐ Upgrade: $4.99/month or ⭐ Upgrade: $39/year.
  3. You go to a secure Stripe checkout page. Enter your card and confirm. (Promo codes work there too.)
  4. You come back to Pin Leonida and see βœ“ Upgraded to Developer. Your key stays the same β€” no code changes. Replies now say "tier": "developer" and "commercial_use": true.

Manage or cancel

Billing: monthly or yearly, cancel any time, access continues to the end of the paid period. Payments are handled by Stripe; we never see your card number.

↑ Back to top

19. Versioning and changelog

Changelog

↑ Back to top

20. FAQ

Is it free?

Yes, for non-commercial use with credit: 1,000 calls a day. Commercial use is the Developer plan, $4.99/month or $39/year.

How do I pay?

Press Upgrade on your key page and pay by card on Stripe's secure checkout. Cancel any time from the same page.

Does it cost anything to sign up?

No. You only need a free Pin Leonida account. No card.

I lost my key. Can you show it again?

No β€” we only keep a hashed copy. Revoke it and make a new one in 10 seconds.

How fresh is the data?

Live. When a pin is added or edited on the map, the API has it right away.

Are the x/y numbers real in-game coordinates?

No. They're positions on our own map grid, so they line up with pinleonida.com/map/.

Can I use it in a Discord bot?

Yes. On Free, put [Data: Pin Leonida](https://pinleonida.com) in the bot's replies or embed footer.

Can I call it from a web page?

Yes, CORS is on. Remember the key is visible in a public page β€” fine for small Free use; for bigger apps call it from a server.

What counts as commercial?

Anything that makes money: ads, paid apps, subscriptions, paid perks, or work for a client. If unsure, ask us.

What happens when I hit the limit?

You get 429 rate_limited until 00:00 UTC. Nothing is charged, ever, on Free.

Can I get images?

Pins with images include image_url. Most pins link to a page with a share card at url.

Is this official?

No. Pin Leonida is an unofficial fan site, not affiliated with Rockstar Games or Take-Two.

↑ Back to top

21. Support

Email support@pinleonida.com. Include the endpoint, the HTTP status, the error code and your key's first characters (like plk_1a2b…). Never send your full key.