---
title: "Get app by ID"
description: "Fetch a single app record by ID."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.stackmachine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get app by ID

```javascript
// MY_APP_JSON =
// {
//   "id": "da_abc123",
//   "name": "my-app",
//   "url": "https://my-app.stackmachine.app",
//   "adminUrl": "https://stackmachine.com/app/da_abc123",
//   "willPerishAt": null,
//   "favicon": null,
//   "screenshot": null,
//   "activeVersion": { "id": "dv_xyz789" }
// }

const app = await client.apps.retrieve("da_XYZ");
// Should return: MY_APP_JSON
console.log(app.id, app.name, app.url, app.adminUrl);
console.log(app.activeVersion?.id);
```

```python
# MY_APP_JSON =
# {
#   "id": "da_abc123",
#   "name": "my-app",
#   "url": "https://my-app.stackmachine.app",
#   "admin_url": "https://stackmachine.com/app/da_abc123",
#   "will_perish_at": null,
#   "favicon": null,
#   "screenshot": null,
#   "active_version": { "id": "dv_xyz789" }
# }

app = client.apps.retrieve("da_XYZ")
# Should return: MY_APP_JSON
print(app.id, app.name, app.url, app.admin_url)
print(app.active_version.id if app.active_version else None)
```

> Source: [stackmachine/sdks](https://github.com/stackmachine/sdks/tree/main) examples.

Source: https://docs.stackmachine.com/apps/get-by-id/index.mdx
