Pipelines in a country by commodity (deprecated - upstream too slow)
Changed onReturn OpenStreetMap pipeline elements (man_made=pipeline filtered by substance) inside an ISO 3166-1 alpha-2 country. Data is (C) OpenStreetMap contributors (ODbL 1.0) - attribution is required on any surface that renders this data.
Deprecated because the upstream cannot serve it reliably inside an interactive timeout, not because it is being removed. A country-wide man_made=pipeline query takes 23-49 seconds at the public Overpass instance when it succeeds at all, and frequently returns a query-timeout or a 5xx under load: 0 of 3 end-to-end attempts on 2026-08-30 returned data. It is marked deprecated so interactive surfaces stop offering a call that cannot reliably finish inside an interactive timeout; the route still works and is still served. For a usable pipeline query, request a bounded region with /environment/osm/bbox (tag_key=man_made, tag_value=pipeline), which is capped at 1.0 square degree per call and answered a 1x1-degree box over the Houston and Permian pipeline corridors in 2.8s and 1.0s. Larger areas are covered by tiling that call, not by asking for a country in one request.
Request
- Base URL: https://sugra.ai
- URL: https://sugra.ai/api/v1/environment/osm/pipelines
- Auth: API key in header x-api-key
Query parameters
ISO 3166-1 alpha-2 country code (e.g. US, GB, DE).
Pipeline substance. Accepted values: chemical, gas, heat, oil, sewage, water.
Maximum number of elements to return (1-5000).
Response
Pipeline segment elements with OSM tags, (C) OpenStreetMap contributors (ODbL 1.0).
Example response
{
"meta": {
"endpoint": "/api/v1/fred/us/cpi",
"data_time": "2026-04-16T14:30:00Z",
"response_time": "2026-04-16T14:30:12Z",
"provider": "Sugra API v1.0.1",
"data_age_days": 8.532,
"source": "sugra_crypto",
"attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
"fallback_chain": [
"sugra_crypto",
"sugra_finance"
],
"stale_since": "2026-09-08T12:00:00Z",
"period": "2026-Q1",
"notes": "the UKMTO report behind these counts is dated 2026-08-21 and is 11 days old"
}
}Changes
- info
added the non-success response with the status
- info
- info
added the optional property
/to the response with the status
- info