Search groups
GET
/groups
groups
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://trashnothing.com/api/v1.2/groups'
Response Response Example
200 - Example 1
{
"end_index": 0,
"groups": [
{
"country": {
"abbreviation": "CA",
"name": "Canada"
},
"group_id": 46,
"has_questions": true,
"homepage": "https://trashnothing.com/OttawaReuse",
"identifier": "OttawaReuse",
"latitude": 45.423494,
"longitude": -75.697933,
"member_count": 4838,
"membership": {
"date": "2015-01-22T17:05:50",
"questionnaire": {
"message": "This group is only for people who live in Ottawa.",
"questions": [
"Where do you live?"
]
},
"status": "pending-questions"
},
"name": "Ottawa Reuse",
"open_archives": false,
"open_membership": false,
"region": {
"abbreviation": "ON",
"name": "Ontario"
},
"timezone": "America/Toronto",
"utc_offset": -5
}
],
"num_groups": 0,
"num_pages": 0,
"page": 0,
"per_page": 0,
"start_index": 0
}
Request
Query Params
name
stringÂ
optional
latitude
numberÂ
optional
longitude
numberÂ
optional
distance
numberÂ
optional
When latitude and longitude are passed, distance can optionally be passed to only return groups within a certain distance (in kilometers) from the point specified by the latitude and longitude. The distance must be > 0 and <= 150 and will default to 100.
country
stringÂ
optional
region
stringÂ
optional
NOTE: The region and postal_code parameters cannot be used at the same time and if both are passed then the postal_code will take priority.
---
AU
- QLD: Queensland
- SA: South Australia
- TAS: Tasmania
- VIC: Victoria
- WA: Western Australia
- NT: Northern Territory
- NSW: New South Wales - ACT
CA
- AB: Alberta
- BC: British Columbia
- MB: Manitoba
- NB: New Brunswick
- NL: Newfoundland and Labrador
- NS: Nova Scotia
- ON: Ontario
- QC: Quebec
- SK: Saskatchewan
- PE: Prince Edward Island
GB
- E: East
- EM: East Midlands
- LDN: London
- NE: North East
- NW: North West
- NI: Northern Ireland
- SC: Scotland
- SE: South East
- SW: South West
- WA: Wales
- WM: West Midlands
- YH: Yorkshire and the Humber
US
All 50 states and the District of Columbia are supported. For the abbreviations, see: https://github.com/jasonong/List-of-US-States/blob/master/states.csv
postal_code
stringÂ
optional
NOTE: The region and postal_code parameters cannot be used at the same time and if both are passed then the postal_code will take priority.
page
integerÂ
optional
per_page
integerÂ
optional
The number of groups to return per page (must be >= 1 and <= 100).
Responses
Modified at 2022-09-11 18:59:47