> For the complete documentation index, see [llms.txt](https://www.xapijs.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.xapijs.dev/xapi-wrapper-library/activities-resource.md).

# Activities Resource

## getActivity

Gets the full definition of an activity.

### Example

```typescript
const activityId: string = "https://example.com/activities/test-activity";

xapi.getActivity({
  activityId: activityId
}).then((result: AxiosReponse<Activity>) => {
  const activity: Activity = result.data;
  console.log(activity);
});
```

### Parameters

| Parameter      | Type    | Required | Description              |
| -------------- | ------- | -------- | ------------------------ |
| activityId     | string  | true     | The URI of the activity. |
| useCacheBuster | boolean | false    | Enables cache busting.   |

### **Returns**

This method returns an `AxiosPromise` with the success `data` containing an [Activity](https://github.com/xapijs/xapi/blob/master/src/interfaces/Statement/Activity/Activity.ts) if successful.
