# Overpass QL finally gets a formal grammar, verified against the source code

Original title: Overpass QL EBNF Grammar

> Hacker News story 50598297 · language: en · submitted 2026-11-22
> Web version: https://zeli.app/story/50598297
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 4 · by [altilunium](<https://news.ycombinator.com/user?id=altilunium>) · 💬 0
[original](<https://github.com/b1tw153/overpass-ebnf>) · [HN discussion](<https://news.ycombinator.com/item?id=50598297>)

## Summary

A W3C EBNF grammar for Overpass QL, the query language behind OpenStreetMap's Overpass API, written in the same notation as the XML 1.0 spec. It's meant for generating and validating queries and for browsing the language through railroad diagrams. Because the official docs aren't always reliable, the author checked the grammar against the Overpass API source and tested it on a live v0.7.62.11 instance, excluding undocumented features.

## Key quote

> Please do not use this grammar to abuse public Overpass servers by sending large volumes of automated queries.

---

## Cite

- Page: https://zeli.app/story/50598297
- Date: 2026-11-22
- Source: github.com (https://github.com/b1tw153/overpass-ebnf)
- Hacker News: https://news.ycombinator.com/item?id=50598297

## Other languages

- zh: https://zeli.app/zh/story/50598297 · markdown: https://zeli.app/zh/story/50598297.md
- ja: https://zeli.app/ja/story/50598297 · markdown: https://zeli.app/ja/story/50598297.md
- ko: https://zeli.app/ko/story/50598297 · markdown: https://zeli.app/ko/story/50598297.md
- de: https://zeli.app/de/story/50598297 · markdown: https://zeli.app/de/story/50598297.md
- es: https://zeli.app/es/story/50598297 · markdown: https://zeli.app/es/story/50598297.md
- ru: https://zeli.app/ru/story/50598297 · markdown: https://zeli.app/ru/story/50598297.md
