GET
# Airbnb Pricing from URL API

Get pricing information from any Airbnb URL. Simply paste the listing URL to get the price breakdown.

## Overview

#### Easy URL Input

Just copy and paste any Airbnb listing URL to get real-time pricing.

This endpoint accepts any Airbnb listing URL and returns the pricing breakdown. Prices are calculated based on your specified dates and guest count.

### Endpoint URL

GET https://api.stayapi.com/v1/airbnb/listing/pricing-from-url 

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| url | string | Required | Full Airbnb listing URL |
| check\_in | string | Required | Check-in date in YYYY-MM-DD format |
| check\_out | string | Required | Check-out date in YYYY-MM-DD format |
| adults | integer | Optional | Number of adults (1-16, default: 1) |
| currency | string | Optional | Currency code (default: USD) |

## Response Structure

### Pricing Information

- `nightly_rate` - Average price per night
- `accommodation_total` - Total accommodation cost
- `service_fee` - Airbnb service fee
- `total` - Total amount
- `total_formatted` - Formatted with currency symbol

Request

```curl
curl -X GET "https://api.stayapi.com/v1/airbnb/listing/pricing-from-url?url=https://www.airbnb.com/rooms/22135033&check_in=2026-01-30&check_out=2026-02-01" \
  -H "x-api-key: YOUR_API_KEY"
```

Response

```json
{
  "success": true,
  "listing_id": "22135033",
  "source_url": "https://www.airbnb.com/rooms/22135033",
  "check_in": "2026-01-30",
  "check_out": "2026-02-01",
  "nights": 2,
  "pricing": {
    "nights": 2,
    "currency": "USD",
    "nightly_rate": 43.95,
    "accommodation_total": 87.90,
    "service_fee": 16.23,
    "total": 104.13,
    "total_formatted": "$104.13"
  }
}
```

```json
{
  "error": "Invalid URL",
  "detail": "Could not extract listing ID from URL",
  "status_code": 400
}
```
