# Using Buildkite's API to get group step status

**URL:** <https://forum.buildkite.community/t/using-buildkites-api-to-get-group-step-status/2738>\
**Category:** Pipelines\
**Created:** [March 23, 2023, 7:27pm UTC](https://forum.buildkite.community/t/using-buildkites-api-to-get-group-step-status/2738 "2023-03-23T19:27:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan707](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@alan707](https://forum.buildkite.community/u/alan707)\
**Post date:** [March 23, 2023, 7:27pm UTC](https://forum.buildkite.community/t/using-buildkites-api-to-get-group-step-status/2738/1 "2023-03-23T19:27:50Z")

</div>

I am using Buildkite’s API to get the status of a group step. This is important because inside the group there are multiple steps that I’d like to make sure are finished. Is there a way to query the group step status via API? Currently using the builds API and looking for jobs inside the builds, the groups are not showing up as a job?

---

<div class="post-metadata">

**Author:** ![stephanie.atte](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/stephanie.atte/32/1357_2.png) [@stephanie.atte](https://forum.buildkite.community/u/stephanie.atte)\
**Post date:** [March 23, 2023, 11:31pm UTC](https://forum.buildkite.community/t/using-buildkites-api-to-get-group-step-status/2738/3 "2023-03-23T23:31:14Z")

</div>

Hey Alan 😊,

Welcome to the community and thanks for reaching out!

That’s quite an interesting question. Unfortunately, I couldn’t find a way to query the group step through the GRAPHQL API, I could only do this using the step key for individual steps. As it not one of the optional parameters listed [here](https://buildkite.com/docs/apis/rest-api/builds#list-builds-for-an-organization) , it couldn’t be done using the REST API as well.

**With individual Step Keys**  
query {  
pipeline(slug: “org-slug/pipeline-slug”) {  
builds(first:100) {  
edges {  
node {  
jobs(first: 10, step: { key: “step-key” }){  
edges {  
node {  
… on JobTypeCommand {

build {  
id  
number  
}  
}  
}  
}  
}  
}  
}  
}  
}  
}  
Cheers!

Stephanie
