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
- Make a free key on the Developers page (needs a free Pin Leonida account).
- Copy the key. It starts with
plk_. - 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 top2. Get a key, step by step
- Open pinleonida.com/developers and scroll to Your API keys.
- 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.
- Come back to /developers/#keys. You now see Make a free key.
- Type a name for your app (optional, e.g. βMy GTA 6 botβ).
- Tick the box to accept the API terms (non-commercial use + visible credit).
- Press π Make my free key.
- 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).
3. Find, copy or revoke your key
- Where: pinleonida.com/developers/#keys while signed in.
- What you see per key: β ACTIVE or β REVOKED, the first characters (e.g.
plk_1a2b3c4dβ¦), plan, app name, requests today vs your daily limit, last 30 days, total, the date it was made and when it was last used. - Revoke: press β Revoke this key and confirm. It stops working at once (calls get
401 revoked_key). This can't be undone by you β make a new key instead. - Leaked a key? Revoke it right away and make a new one.
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.
5. Base URL and format
- Base URL:
https://pinleonida.com/api/v1(HTTPS only) - Method:
GETonly (plusOPTIONSfor CORS). The API is read-only. - Format: JSON, UTF-8,
Content-Type: application/json - Every successful reply includes
attribution,tierandcommercial_usenext todata. - Live data: new pins show up in the API the moment they're added to the map.
6. GET /pins
List all pins (map pins + approved community pins), with filters and pages.
| Param | Type | Default | What it does |
|---|---|---|---|
category | text | all | One of town, landmark, island, water, loot (unique weapons, vehicles, safes, collectibles), community. Alias: type. |
region | text | all | Region id: vice-city, port-gellhorn, leonida-keys, mount-kalaga, grassrivers, ambrosia. Area names also work (e.g. The Keys). |
q | text | none | Case-insensitive search in name and description. |
page | number | 1 | Page number, from 1. |
per_page | number | 25 | Pins per page. Max 50 on Free, 200 on Developer (higher values are capped). |
key | text | β | 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®ion=port-gellhorn&per_page=1"
JavaScript (fetch)
const KEY = "YOUR_KEY";
const url = "https://pinleonida.com/api/v1/pins?category=loot®ion=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®ion=port-gellhorn&per_page=1&page=2",
"attribution": "Data: Pin Leonida (https://pinleonida.com)",
"tier": "free",
"commercial_use": false
}
| Field | Meaning |
|---|---|
data | Array of pin objects |
page, per_page | The page you got and its size |
total | Pins matching your filters (all pages) |
pages | Number of pages |
next | Path for the next page, or null |
attribution, tier, commercial_use | Credit text, your plan, and whether commercial use is allowed on it |
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.
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.
11. Pin object fields
| Field | Type | Meaning |
|---|---|---|
id | string | Stable id, also used in the pin page URL. Community pins start with c. |
name | string | Pin title |
category | string | town, landmark, island, water, loot or community |
region | string | Region id (see /regions); empty if none |
area | string | Broad area: North, West coast, Central & east, Vice City area, South & wetlands, The Keys |
square | string | Grid square on our map, letter = row (A at top), number = column (1 at left), e.g. E3 |
x, y | number | Position 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. |
description | string | Where it is and how to get it (plain text) |
credit | string | Who found or submitted it (may be empty) |
source_url | string or null | Original source post, if any |
image_url | string or null | Image, if the pin has one |
community | boolean | true for approved community pins |
url | string | The 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 top12. Rate limits and headers
| Plan | Requests per day | Max per_page | Commercial use |
|---|---|---|---|
| Free | 1,000 | 50 | β No |
| Developer | 50,000 | 200 | β 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
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Your daily limit |
X-RateLimit-Remaining | Calls left today |
X-RateLimit-Reset | Seconds until the 00:00 UTC reset |
Retry-After | On 429 only: seconds to wait |
X-Attribution | The credit text |
ETag | On 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.
| HTTP | error | When | What to do |
|---|---|---|---|
| 401 | missing_key | No key sent | Add the X-API-Key header |
| 401 | invalid_key | Key is wrong or mistyped | Copy it again, or make a new one |
| 401 | revoked_key | Key was revoked | Make a new key |
| 403 | β | Access to a blocked path (e.g. internal files), or a failed session check on the key page | Use only the documented endpoints; reload the key page |
| 404 | not_found | Unknown pin id or endpoint | Check the id / path |
| 405 | method_not_allowed | Not a GET | Use GET |
| 429 | rate_limited | Daily limit reached | Wait Retry-After seconds, cache more, or upgrade |
| 429 | too_many_bad_keys | Over 60 invalid keys from one network in an hour | Fix your key, wait an hour |
| 500 | server_error | Bug on our side | Retry in a minute; tell us if it keeps happening |
| 503 | unavailable | Backend briefly busy or in maintenance | Retry 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.
15. Caching and ETag
- Replies carry
Cache-Control: private, max-age=60(pins, pin, stats) or300(regions, info). Errors areno-store. - Each 200 reply has an
ETag. Send it back asIf-None-Match; if nothing changed you get304 Not Modifiedwith an empty body (fast, but it still counts as a call). - Pins change a few times a day. For most apps, caching for 10β60 minutes on your side is plenty and keeps you far under the limit.
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)
- It must be readable (normal text size, not hidden, not the same color as the background).
- Apps with no links (e.g. images, video): show
Data: Pin Leonida (pinleonida.com)as text. - When you show one pin, linking to its
urlis great too. - Don't suggest Pin Leonida endorses your product, and don't use our logo as your own.
17. Free vs commercial use
| Free | Developer | |
|---|---|---|
| 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 credit | Required | Appreciated |
For everyone
- Keys are personal. Don't share, sell or publish them, and don't use many keys to get around limits.
- Don't republish the whole dataset as a competing map or bulk download.
- Cache sensibly and don't hammer the API.
- We may change limits or revoke keys that break these terms. Big changes are posted on this page first.
- 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.
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.
- Sign in and open your key page. No key yet? Make a free one first (steps).
- On the key you want to upgrade, press β Upgrade: $4.99/month or β Upgrade: $39/year.
- You go to a secure Stripe checkout page. Enter your card and confirm. (Promo codes work there too.)
- 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
- π³ Manage billing on the key opens Stripe's billing page (change card, see invoices).
- β Cancel plan stops renewal. Developer stays on until the end of the period you paid for, then the key goes back to Free (1,000/day, non-commercial). Changed your mind? Press βΊ Keep my plan before it ends.
- Revoking a paid key also stops its renewal.
- If a payment fails, you get a short grace period to update your card before the key drops to Free.
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 top19. Versioning and changelog
- The version is in the path:
/api/v1. - Inside v1 we only make non-breaking changes: new endpoints, new optional parameters, new fields in objects. Write your code to ignore unknown fields.
- Breaking changes (renaming or removing fields, changing meanings) go into
/api/v2. v1 keeps working for at least 6 months after v2 launches, announced here.
Changelog
- 2026-11-30 β Developer plan ($4.99/month, $39/year) with upgrade-in-place checkout.
- 2026-11-30 β v1 launch. Endpoints
/pins,/pins/{id},/regions,/stats; key auth by header or?key=; daily limits per plan; CORS; ETag/304.
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 top21. 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.