PHPackages                             jonnyd/airbnbsdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jonnyd/airbnbsdk

ActiveLibrary[API Development](/categories/api)

jonnyd/airbnbsdk
================

An Airbnb SDK in PHP

4824914[2 issues](https://github.com/JonnyD/AirbnbSDK/issues)PHP

Since Mar 18Pushed 10y ago7 watchersCompare

[ Source](https://github.com/JonnyD/AirbnbSDK)[ Packagist](https://packagist.org/packages/jonnyd/airbnbsdk)[ RSS](/packages/jonnyd-airbnbsdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

AirbnbSDK
=========

[](#airbnbsdk)

A PHP wrapper for Airbnb API.

Installation
------------

[](#installation)

Add to composer.json

`"jonnyd/airbnbsdk": "dev-master"`

Usage
-----

[](#usage)

### Initialize

[](#initialize)

```
$airbnb = new AirbnbSDK('');
```

### How to get an API key

[](#how-to-get-an-api-key)

Log into Airbnb.com, open up the web developer console, go to the network tab, filter by type json, and look at the url and find "client\_id".

### Making API Calls

[](#making-api-calls)

#### Listings

[](#listings)

```
// Search
$request = new SearchRequest();
$request->setLocale("en-US");
$request->setCurrency("USD");
$request->setFormat("for_search_results_with_minimal_pricing");
$request->setLimit(10);
$request->setOffset(0);
$request->setFetchFacets(true);
$request->setGuests(1);
$request->setIb(false);
$request->setIbAddPhotoFlow(true);
$request->setLocation("Lake Tahoe, CA, US");
$request->setMinBathrooms(0);
$request->setMinBedrooms(0);
$request->setMinBeds(1);
$request->setMinNumPicUrls(10);
$request->setPriceMax(210);
$request->setPriceMin(40);
$request->setSort(1);
$request->setUserLat(37.3398634);
$request->setUserLng(-122.04555164);
$listings = $airbnb->listings()->search($request);

// Get listing
$request = new ListingRequest();
$listing = $airbnb->listings()->view($request);

// Get listings for user
$request = new UserListingsRequest();
$listingsForUser = $airbnb->listings()->allForUser($request);
```

#### Reviews

[](#reviews)

```
// Get reviews for listing
$request = new ListingReviewsRequest();
$reviews = $airbnb->reviews()->allForListing($request);
```

#### Users

[](#users)

```
// Get user
$request = new UserRequest();
$user = $airbnb->users()->view($request);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a201af2a87a6b339bb7898cc0dfc6a8baec5bb7e3829448efdc3fda4020729aa?d=identicon)[JonnyD](/maintainers/JonnyD)

---

Top Contributors

[![JonnyD](https://avatars.githubusercontent.com/u/916153?v=4)](https://github.com/JonnyD "JonnyD (5 commits)")

### Embed Badge

![Health badge](/badges/jonnyd-airbnbsdk/health.svg)

```
[![Health](https://phpackages.com/badges/jonnyd-airbnbsdk/health.svg)](https://phpackages.com/packages/jonnyd-airbnbsdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
