Search facilities by name or OS ID, country, contributor, sector and more; GeoJSON results.
GET/facilities/
- Takes: Name
- Passive: the target is not contacted
Returns a FeatureCollection with count, next and previous page links. Maximum 50 facilities per page; page 100 is the last that can be accessed. detail=true adds contributor and extended-field detail and makes the response larger.
Query parameters
qFacility name or OS ID
countriesCountry code
contributorsContributor ID
listsList ID
contributor_typesContributor type
parent_companyContributor ID or name of a parent company
facility_typeFacility type taxonomy label or free text
product_typeProduct type
sectorsSector name
detailReturn additional detail about contributors and extended fields
pagePage number; the last accessible page is 100
pageSizeResults per page
Response fields · 10ShowHide
type
FeatureCollection
count
Total matching facilities
next
URL of the next page; null on the last
id
OS ID
coordinates
Longitude, latitude
name
Facility name
address
Facility address
country_code
Country code
country_name
Country name
has_approved_claim
Whether the facility has an approved claim
curl 'https://opensupplyhub.org/api/facilities/' \
-H 'Authorization: YOUR_API_KEY'{
"type": "FeatureCollection",
"count": 1,
"next": null,
"previous": null,
"features": [
{
"id": "XX2020000ABCDEF",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
90.4,
23.8
]
},
"properties": {
"name": "Example Garments Ltd",
"address": "1 Example Road, Example City",
"country_code": "BD",
"os_id": "XX2020000ABCDEF",
"country_name": "Bangladesh",
"has_approved_claim": false,
"is_closed": null
}
}
]
}