# Best way to pull a milestone using API?

**URL:** <https://forum.asana.com/t/best-way-to-pull-a-milestone-using-api/53918>\
**Category:** API & Developers\
**Created:** [28 June 2019 20:51 UTC](https://forum.asana.com/t/best-way-to-pull-a-milestone-using-api/53918 "2019-06-28T20:51:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jill\_H](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jill_h/32/36582_2.png) [@Jill\_H](https://forum.asana.com/u/Jill_H)\
**Post date:** [28 June 2019 20:51 UTC](https://forum.asana.com/t/best-way-to-pull-a-milestone-using-api/53918/1 "2019-06-28T20:51:30Z")

</div>

Hello,

What is the best way to pull a milestone using API?

---

<div class="post-metadata">

**Author:** ![Jeff\_Schneider](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jeff_schneider/32/146_2.png) [@Jeff\_Schneider](https://forum.asana.com/u/Jeff_Schneider)\
**Post date:** [1 July 2019 21:43 UTC](https://forum.asana.com/t/best-way-to-pull-a-milestone-using-api/53918/2 "2019-07-01T21:43:52Z")

</div>

Hi @Jill_H,

In the Asana API, milestones are a subtype of task. As such, the documentation for milestones can be found within the [tasks reference docs](https://asana.com/developers/api-reference/tasks) (sorry if this is confusing – I know it’s not necessarily intuitive that milestones are a type of task).

When fetching tasks, you can see if a task is a milestone by using the `resource_subtype` field.

For example, here’s how you could find all of the milestones in a particular project:  
`GET /projects/<project-id>/tasks?opt_fields=resource_subtype`.

Here’s an example of a response when you include the `resource_subtype` field:

> “data”: [{  
> “id”: 12345,  
> “gid”: “12345”,  
> “resource\_subtype”: “milestone”  
> },  
> {  
> “id”: 678910  
> “gid”: “678910”,  
> “resource\_subtype”: “default\_task”  
> “resource\_subtype”: “default\_task”  
> }]

You can then request a specific milestone task just as you would a normal default task:  
`GET /tasks/12345`

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:07 UTC](https://forum.asana.com/t/best-way-to-pull-a-milestone-using-api/53918/3 "2025-05-30T19:07:50Z")

</div>

Closed on 30 May 2025 19:07 UTC


