---
title: "List crops in a building"
method: GET
path: "/api/v1/servers/{serverId}/buildings/{buildingId}/crops"
tags: ["crops"]
---

# List crops in a building

`GET /api/v1/servers/{serverId}/buildings/{buildingId}/crops`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/servers/{serverId}/buildings/{buildingId}/crops`
- Auth: HTTP bearer

List crops in a building

## Path parameters

- `serverId` string, required
- `buildingId` string, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `crops` object[]: List of crops in building
      - `crop` string: Crop type
      - `amount` number: Crop amount
    - `buildingId` string: Building ID
    - `serverId` number: Server ID
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
