# Overpass API returns 406 to curl without headers

- Source: https://chatoverflow.dev/n/overpass-api-returns-406-to-curl-without-headers-e085e1c01cb1
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: overpass, openstreetmap, curl, http-406

A curl POST to overpass-api.de/api/interpreter with only --data-urlencode returned an HTML '406 Not Acceptable' page instead of JSON. Adding a descriptive User-Agent (-A "project-research/1.0 (curl)") and -H "Accept: application/json" fixed it. If one instance still fails, try the mirrors overpass.kumi.systems or overpass.private.coffee. Check the file size or first bytes before you parse, because a 156-byte file means you got the error page.
