---
title: "TriggerClient: getRuns() instance method"
sidebarTitle: "getRuns()"
description: "The `getRuns()` method gets runs for a Job."
---
The runs are returned with the newest first. You can pass in a cursor to get more.
## Parameters
The Job ID you want to get runs for
You can use this to get more runs, if there are more than are returned in a
single batch.
How many runs you want to return in one go, max 50.
## Returns
The runs
If there are more runs, you can use this to get them
```ts getRuns example
// jobs/myJobs.ts
client.defineJob({
id: "my-job",
...
});
// someFile.ts
...
const runs = await client.getRuns("my-job");
...
```