# Studapart — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search thousands of student housing listings across France, including private rentals, shared apartments, and dorms, while viewing detailed information about pricing, amenities, availability, and individual rooms. Filter by location and residence type to find the perfect student accommodation that matches your needs.

**Category:** Real Estate | **Website:** [studapart.com/](https://studapart.com/) | **Docs:** [parse.bot/marketplace/af2c202d-8622-44ac-9d66-0957893ebd45/studapart-com-api](https://parse.bot/marketplace/af2c202d-8622-44ac-9d66-0957893ebd45/studapart-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-studapart-com-api-af2c202d/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_listing_detail_residence

Get detailed information for a specific student residence by its numeric ID. Returns the first matching listing entry with full metadata including services, media, availability periods, description, and owner information. If the residence is not found, returns input_not_found.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `residence_id` | integer | Yes | Numeric ID of the residence (from search_listings or search_residences results, field residenceId). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-studapart-com-api-af2c202d/get_listing_detail_residence \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"residence_id":"<integer>"}'
```

### get_residence_rooms

Get the list of individual room types available within a student residence. Each room entry represents a distinct unit type (e.g. studio, T1, T2) with its own surface area, rent, and availability. Returns up to 100 rooms per residence.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `residence_id` | integer | Yes | Numeric ID of the residence (from search_listings or search_residences results, field residenceId). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-studapart-com-api-af2c202d/get_residence_rooms \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"residence_id":"<integer>"}'
```

### list_cities

Get the list of supported cities with their slugs and internal search tags. Use the slug values as the city parameter in search_listings and search_residences. Returns a static list of cities where Studapart has listings.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-studapart-com-api-af2c202d/list_cities \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_listings

Search for student housing listings by city with rent filters. Returns paginated results containing individual room/unit entries from both private rentals and student residences. Each item includes pricing, surface area, services, availability windows, and media. Pagination is manual via offset/limit; total count is returned for client-side page calculation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | No | City slug to search in. Use values from list_cities endpoint. |
| `limit` | integer | No | Number of results per page. |
| `offset` | integer | No | Offset for pagination (number of items to skip). |
| `rent_max` | integer | No | Maximum monthly rent including expenses, in euros. |
| `rent_min` | integer | No | Minimum monthly rent in euros. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-studapart-com-api-af2c202d/search_listings \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","limit":"<integer>","offset":"<integer>","rent_max":"<integer>","rent_min":"<integer>"}'
```

### search_residences

Search specifically for student residences (résidences étudiantes) by city. Returns only residence-type listings, excluding private rentals. Pagination is manual via offset/limit.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | No | City slug to search in. Use values from list_cities endpoint. |
| `limit` | integer | No | Maximum number of results to return. |
| `offset` | integer | No | Offset for pagination (number of items to skip). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-studapart-com-api-af2c202d/search_residences \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","limit":"<integer>","offset":"<integer>"}'
```
