No. Public Overpass API mirrors are independent databases, not replicas, and can be months apart. On an identical query and bounding box, the main server returned 189 building ways and a popular mirror 7,675, because the mirror held a four-month-old snapshot. Our "retry, then fall back to the mirror" logic silently poisoned an OSM building count with it.

We caught it before the number shipped. The fix was not a better retry policy. It was refusing to treat an endpoint list as an authority: every server is probed for its database timestamp and a reference count before a single tile is fetched, and a tile that cannot be fetched from a verified server is recorded as missing instead of filled from somewhere else.

What actually went wrong in our OSM pipeline?

Our pipeline counted every building=* way in a region across 49 bounding-box tiles, queried one at a time. When the main server timed out, the loop retried three times, then tried the next endpoint in the list. One tile succeeded on a mirror four months stale and returned 7,671 ways where the reference server had 179.

Nothing downstream could tell. The response was valid JSON, the ways had real geometry, the tile cached cleanly, and the bake step happily packed them into the output. A 40x inflation in one tile does not break a total that is in the hundreds of thousands; it just makes it wrong.

The divergence was this large because of where the tile sat. In one district of the area we were counting, roughly 24,000 building footprints had been deleted from OpenStreetMap between the mirror's snapshot and the present day. The main server reflected the deletion. The mirror did not.

Why are Overpass mirrors not replicas of one database?

Each public Overpass instance is run by a different operator on its own hardware, importing its own planet file and applying its own stream of OpenStreetMap diffs. If an instance's update process stalls, it keeps answering queries from whatever it last had. Nothing in the protocol forces instances to agree, and none of them promise to.

The OpenStreetMap wiki's list of public Overpass instances is explicit about this if you read it closely. Instances differ in version, rate limits, attic (history) support, and coverage, and several are regional extracts rather than the whole planet. Update frequency is mostly not stated at all.

We measured three endpoints with an identical query on an identical bbox on 2026-09-07:

  • overpass-api.de (main): database base 2026-09-07, 189 ways.
  • overpass.kumi.systems: database base 2026-05-06, 7,675 ways.
  • overpass.osm.ch: 0 ways for every query, because it is a Switzerland-only instance.

A fourth endpoint, maps.mail.ru, served a same-day base and matched the main server exactly. So the mirror list contained one true peer, one stale database, and one server that was the wrong map entirely. Our fallback logic treated all four as interchangeable.

Why did "retry, then fall back" make it worse instead of more reliable?

Fallback chains assume every target returns the same answer and only availability differs. That assumption holds for stateless replicas behind a load balancer. It fails for independent data stores, where the fallback quietly swaps "this request failed" for "this request succeeded against different data," converting a loud, recoverable error into a silent, permanent one.

The failure was also biased. The main server timed out most often on the densest tiles, which is exactly where the data was changing fastest, so the fallback was most likely to fire on exactly the tiles where a stale answer differed the most. Random fallback noise would have been bad enough. This was concentrated in the worst possible place.

The Switzerland-only server shows the second half of the trap. An empty result is a perfectly valid Overpass response. A fallback that had landed there would have recorded a dense tile as containing zero buildings, with a 200 status code and no error anywhere in the logs.

We have hit the same shape of bug in completely different systems: a pipeline that produces a plausible number from the wrong evidence, with nothing in the output to flag it. Our post on how we misclassified 20,531 DMARC rows twice is the email-authentication version of it.

How do you verify an Overpass endpoint before trusting it?

Probe every candidate endpoint with the same small out count query over one dense, known area before fetching any real data. Read the timestamp_osm_base from each response. Keep a server only if its count is identical to the reference server's and its base timestamp is within an agreed lag window. Drop everything else loudly.

Overpass includes the database timestamp in every JSON response under osm3s.timestamp_osm_base, documented in its output format reference. That single field would have exposed the stale mirror immediately; we simply were not reading it. In simplified form, the guard looks like this:

verify_endpoints(candidates):
    answers = []
    for ep in candidates:
        r = query(ep, "way[building](probe_bbox); out count;")
        if r failed: log UNREACHABLE; continue
        answers.append(ep, r.timestamp_osm_base, r.total)

    ref = answers[0]                     # the server we trust most
    keep = [a for a in answers
            if a.total == ref.total
            and |a.base - ref.base| <= 48h]

    record {probed: answers, used: keep, cross_checked: len(answers) > 1}
    return keep

Two details matter more than the code. First, the probe area must be dense and actively edited, so that a stale database produces a different count; probing an empty field proves nothing. Second, if only one server answers, the cross-check compared that server against itself. We record that run as degenerate rather than letting it read as a pass.

What should happen when a tile cannot be fetched from a trusted server?

It should be recorded as missing, explicitly, in the output metadata. A tile that no verified server will answer goes into a tiles_missing list, the build carries on, and anyone quoting the total has to check that list first. A known hole in the data is recoverable. An unknown substitution is not.

We chose explicit gaps over best-effort completeness deliberately. The alternative we considered was keeping the fallback but tagging each tile with its source server. We ruled it out because a tagged-but-stale tile still flows into the headline number, and nobody reads per-tile provenance when a total is being pasted into a report.

The endpoint check itself is written into the output next to the data: which servers were probed, what base timestamp and count each returned, which were used, and which were dropped and why. It is also persisted beside the raw tile cache, so a later rebuild from cache still reports which servers the cached tiles actually came from. Without that, the provenance dies with the fetch run.

What did this cost in pipeline speed?

Almost nothing in correctness terms, and some throughput we were already losing. The probe adds one small query per candidate per run. The real cost is that fewer servers share the load, so a cold fetch of 49 tiles runs serially, one request every 20 seconds, and takes tens of minutes rather than a few.

We had already learned that parallelism was not available anyway. Three concurrent workers got our IP refused at the TCP level by the main server within two minutes, followed by HTTP 429s, and nothing got through for several minutes afterwards. Overpass queue wait was roughly 20 to 25 seconds per request regardless of payload size, so the lever was fewer, larger tiles (0.06 degrees instead of 0.03, 49 requests instead of 169), not more connections.

The raw responses are cached gzipped and treated as the canonical record of what was fetched. Any change that is not a deliberate data refresh rebuilds from that cache with zero Overpass requests.

Does a fresh, verified snapshot make the count correct?

Not by itself. A verified current snapshot tells you what OpenStreetMap holds today, which is a different question from what existed on a given date. If footprints were deleted rather than retagged, a today-only count is short by exactly those deletions, and it can look healthy because the region-wide total still rises.

That is what we found when we checked instead of assuming. Using Overpass attic data, we ran the same count against the database as of an earlier date and against today's. The region total went up 7 percent. One district went from 26,176 mapped buildings to 2,216, down 92 percent.

We bake the union of both snapshots, with a position test to avoid double-counting footprints that were deleted and redrawn under new IDs, and a flag bit on every row that exists only in the older snapshot. The stale mirror and the deleted district are two versions of the same lesson: OSM is a living database, and "which version of it" is part of every number you take from it. This is also why we read what a system actually returns rather than what its documentation implies, the same rule behind don't trust API docs, trust shipping code.

What is the pattern to take away for any data pipeline in 2026?

An endpoint list is a set of candidates, never an authority. Before fetching, prove that every source you might read from holds the same data, using a cheap probe that a stale or partial source would fail. When a fetch cannot be served from a verified source, record the gap instead of filling it.

Public Overpass mirrors are a generous community resource, and none of them claim to be replicas of each other. The bug was ours: we wrote a fallback that assumed equivalence nobody had promised. The fix took one probe query and one honest tiles_missing list, and it turned a silently wrong building count into a number we can defend line by line.