API reference · Collections
Get a collection's criteria and counts
GET
https://trawle.com/v1/collections/{slug}Authentication
Header x-api-key: Read-only API key from https://trawle.com/account#api-keys. 1,000 requests per daily window. Anonymous requests are also supported with a per-IP limit.
Path
slugstringrequired- Limits
- pattern ^[a-z0-9][a-z0-9-]{0,79}$
200The collection.Collection
slugstringrequirednamestringrequireddescriptionstringrequiredkindstringrequired- One of
sourcedclassifiedderived
sourceUrlstring | nullrequiredopenJobsintegerrequiredcompaniesintegerrequired
401Invalid, expired or revoked API key.Error
errorobjectrequired4 properties
codestringrequiredMachine-readable:
invalid_request,not_found,forbidden,rate_limited,internal.- Example
invalid_request
messagestringrequired- Example
places: expected an array of GeoNames ids
hintstringoptionalWhat to do next, e.g. which lookup to call first.
- Example
Resolve place names to ids with GET /v1/places?q=
issuesarray<object>optionalValidation problems, one per invalid field.
2 propertiesper item
pathstringrequiredmessagestringrequired
404Not found.Error
errorobjectrequired4 properties
codestringrequiredMachine-readable:
invalid_request,not_found,forbidden,rate_limited,internal.- Example
invalid_request
messagestringrequired- Example
places: expected an array of GeoNames ids
hintstringoptionalWhat to do next, e.g. which lookup to call first.
- Example
Resolve place names to ids with GET /v1/places?q=
issuesarray<object>optionalValidation problems, one per invalid field.
2 propertiesper item
pathstringrequiredmessagestringrequired
429Rate limit reached. Respect Retry-After and cache results.Error
errorobjectrequired4 properties
codestringrequiredMachine-readable:
invalid_request,not_found,forbidden,rate_limited,internal.- Example
invalid_request
messagestringrequired- Example
places: expected an array of GeoNames ids
hintstringoptionalWhat to do next, e.g. which lookup to call first.
- Example
Resolve place names to ids with GET /v1/places?q=
issuesarray<object>optionalValidation problems, one per invalid field.
2 propertiesper item
pathstringrequiredmessagestringrequired