# 000000book
> An open archive of Graffiti Markup Language (GML) files, running since 2009.
> Tens of thousands of graffiti motion-capture tags. Everything is public and
> anonymous: there is no API key, and none is needed.
GML is an XML format that records a graffiti tag as timed stroke points, so the
same gesture can be replayed by a laser projector, a browser canvas, or a robot
arm. Every endpoint below allows cross-origin requests from any origin, and also
accepts a `?callback=` parameter for JSONP.
Reads are limited to 300 requests a minute per IP address, uploads to 30 an hour.
Responses carry `ETag` and `Last-Modified`; send `If-None-Match` and you will get
a `304` instead of a body. Please do that if you are polling.
## Endpoints
Base URL `https://000000book.com`.
- `GET /data.json` — list tags, newest first. Filter with `app`, `user`,
`location` or `keywords`. Page with `page` and `per_page` (default 15, max 100).
Also available as `.xml` and `.rss`.
- `GET /data/{id}.json` — one tag, with its full GML parsed into nested JSON.
`?preview=1` cuts it to about 300 points for drawing small; `?player=1` is
the full-fidelity payload the site's own player uses.
- `GET /data/{id}.gml` — the raw GML file. This is the canonical format.
- `GET /data/{id}.xml` — tag metadata only, without the GML.
- `GET /latest.gml` — the most recently uploaded tag. Takes no filters.
- `GET /random.gml` — a random tag. Takes no filters.
- `POST /data` — upload a tag. Send `gml` and `application`. Returns the new
tag's id as plain text. No authentication.
- `POST /validate.json` — check a GML document. Send `gml`. Returns errors,
warnings and recommendations.
- `GET /apps.json` — applications that read or write GML.
`.json` on a single tag includes the whole GML document as nested JSON, so you
do not have to parse XML. `.xml` is metadata only.
## Documentation
Append `.md` to any page under `/docs` for the markdown itself, for example
`https://000000book.com/docs/api/downloading-gml.md`.
- [Graffiti Markup Language (GML)](https://000000book.com/docs): Graffiti Markup Language (`.gml`) is an open XML format for recording how a drawing was made: the points of each stroke, their order and their timestamps. Blackbook is an archive of these recordings, not just pictures of finished tags.
- [The 000000book API](https://000000book.com/docs/api): Use HTTPS to upload and download tags. No API key or SDK is required. Append `.gml` for the drawing, `.json` for metadata and GML, or `.xml` for metadata only.
- [Downloading GML](https://000000book.com/docs/api/downloading-gml): Downloads require no API key.
- [Uploading GML to 000000book.com](https://000000book.com/docs/api/uploading-gml): Send an HTTPS POST to `https://000000book.com/data` with a `gml` parameter containing the complete XML. No account or API key is required. Uploads are limited to 30 per hour per IP; a `429` response includes `Retry-After`.
- [PHP API scraping example](https://000000book.com/docs/examples/php-scraper): A 000000book crawler and basic GML parser by Filipe Cruz ("ps / TPOLM", ).
- [Drawing GML with Javascript and JSON](https://000000book.com/docs/gml/javascript-and-json): The site's own player is canvasplayer: plain HTML canvas, ES modules, no dependencies. Every tag page, grid cell and app card on 000000book is drawn by it. The same files are vendored under `public/canvasplayer//` in this repo.
- [Drawing GML: sample playback code](https://000000book.com/docs/gml/playback-implementations): Community implementations for rendering GML, by platform. Most are from the project's early years and are kept as the historical record. Links checked on 2026-09-01; those whose host no longer answers are marked offline.
- [OpenAPI spec](https://000000book.com/openapi.yaml): the same endpoints, machine-readable
## Optional
- [Source code](https://github.com/jamiew/blackbook): the Rails app serving this
- [GML syntax validator](https://000000book.com/validator)