How zxol/airbnbapi works
airbnbapijs is an unofficial Node.js wrapper around Airbnb’s private mobile API. A caller invokes promise-based methods on the exported API client; the client makes HTTP requests to Airbnb and returns parsed JSON results. Its documented domains include authorization, user profiles, listing search and details, calendar reads and updates, threads, reservations, and posting actions. The sampled implementation shows one composed listing helper and shared configuration and logging. Posting and some other capability internals are not fully sampled, so those branches are represented at the documented subsystem level.
Main entry points: main.js API methods · metapoints.js Full listing helper · log.js Logging · config.js API configuration
Components 14
API client
- API methods
src/main.js - Full listing helper
src/metapoints.js
Airbnb capabilities
- Authorization
src/main.js - User profiles
src/main.js - Listings
src/main.js - Calendars
src/main.js - Threads
src/main.js - Reservations
src/main.js - Posting actions
src/main.js
Shared runtime
- HTTP request client
- API configuration
src/config.js - Logging
src/log.js
Other components
- Library caller
- Airbnb API
Connections 22
- Library caller → API methods: calls
README.md - API methods → Authorization: provides
README.md - API methods → User profiles: provides
README.md - API methods → Listings: provides
README.md - API methods → Calendars: provides
README.md - API methods → Threads: provides
README.md - API methods → Reservations: provides
README.md - API methods → Posting actions: provides
README.md - Authorization → HTTP request client: sends requests
src/main.js - User profiles → HTTP request client: sends requests
src/main.js - Listings → HTTP request client: sends requests
src/main.js - Calendars → HTTP request client: sends requests
src/main.js - Threads → HTTP request client: sends requests
src/main.js - Reservations → HTTP request client: sends requests
src/main.js - Posting actions → HTTP request client: sends requests
src/main.js - HTTP request client → Airbnb API: calls API
- API methods → API configuration: imports
src/main.js - API methods → Logging: logs errors
src/main.js - API methods → Full listing helper: mixes in
src/main.js - Full listing helper → Listings: fetches listings
src/metapoints.js - Full listing helper → Logging: logs errors
src/metapoints.js - Library caller → Full listing helper: calls
README.md