# How to get service id (appointment type id)

**URL:** <https://forum.youcanbook.me/t/how-to-get-service-id-appointment-type-id/961>\
**Category:** API\
**Created:** [October 8, 2020, 5:27am UTC](https://forum.youcanbook.me/t/how-to-get-service-id-appointment-type-id/961 "2020-10-08T05:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin.quoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/kevin.quoc/32/127_2.png) [@kevin.quoc](https://forum.youcanbook.me/u/kevin.quoc)\
**Post date:** [October 8, 2020, 5:27am UTC](https://forum.youcanbook.me/t/how-to-get-service-id-appointment-type-id/961/1 "2020-10-08T05:27:21Z")

</div>

Hello,

I need to redirect from the website to the booking page.  
Right now, I am using this link: [https://mylink.youcanbook.me/?service=MY\_SERVICE\_ID](https://mylink.youcanbook.me/?service=MY_SERVICE_ID)

MY\_SERVICE\_ID is appointment type id (I got it manually from the appoiment type path on [youcanbook.me](http://youcanbook.me))

 ![2020-10-08_12-25-35](https://canada1.discourse-cdn.com/flex027/uploads/ycbm/original/1X/b67271b6b0392391599fcb6e4e85cd39b0c04080.jpeg)

I want to install them via CMS, so I need to get the Appoiment Type list via api.

How to get it?

Thanks!

---

<div class="post-metadata">

**Author:** ![Ben](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/ben/32/772_2.png) [@Ben](https://forum.youcanbook.me/u/Ben)\
**Post date:** [October 9, 2020, 2:29pm UTC](https://forum.youcanbook.me/t/how-to-get-service-id-appointment-type-id/961/2 "2020-10-09T14:29:29Z")

</div>

@kevin.quoc run a GET to your booking page: /v1/{ACCOUNT-ID}/profiles/{PROFILE-ID}/

With:  
`?fields=appointmentTypes,appointmentTypes.items,appointmentTypes.items.name,appointmentTypes.items.id`

This will give you the name and ID of each Appointment Type you have setup on the page.

---

<div class="post-metadata">

**Author:** ![kevin.quoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.youcanbook.me/kevin.quoc/32/127_2.png) [@kevin.quoc](https://forum.youcanbook.me/u/kevin.quoc)\
**Post date:** [October 9, 2020, 2:47pm UTC](https://forum.youcanbook.me/t/how-to-get-service-id-appointment-type-id/961/3 "2020-10-09T14:47:26Z")

</div>

Thanks @Ben!

It’s wonderful

Thanks for help.
