Koop-Craiglists
A provider for the Craigslist Apartment search API
How to use
You can use this as a plugin to an existing Koop server or use the default server or docker implementations.
API
All data can be accessed at http://adapters.koopernetes.com/craigslist/:city/:type/FeatureServer/0
Cities follow the url subdomain for Craigslist (https://washingtondc.craigslist.org/)
e.g.
- washingtondc
- philadelphia
- baltimore
Types:
- apartments
- jobs
- forsale
- services
- gigs
- community
Test it out
Run server:
npm install
npm start
Example API Query:
curl localhost:8080/craigslist/atlanta/apartments/FeatureServer/0/query?returnCountOnly=true
With Docker
docker build -t koop-provider-craigslist .
docker run -it -p 8080:8080 koop-provider-craigslist
In an existing Koop Server
//clean shutdownprocessprocess // Initialize Koopconst Koop = const koop = // Install the craigslist Providerconst craigslist = koop // Start listening for http trafficconst config = const port = configport || 8080koopserverconsole