# Get ONLY the Tier's info via API

**URL:** https://www.patreondevelopers.com/t/get-only-the-tiers-info-via-api/9567
**Category:** Uncategorized
**Created:** [November 19, 2024, 7:25pm UTC](https://www.patreondevelopers.com/t/get-only-the-tiers-info-via-api/9567 "2024-11-19T19:25:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RichyCapy](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@RichyCapy](https://www.patreondevelopers.com/u/RichyCapy)
#### Post date: [November 19, 2024, 7:25pm UTC](https://www.patreondevelopers.com/t/get-only-the-tiers-info-via-api/9567/1 "2024-11-19T19:25:29Z")

</div>

Hello!

Using cURL in PHP, if I extract the info using this URL:

`$URL = "https://www.patreon.com/api/oauth2/v2/campaigns/".$campaign_id."/members?include=currently_entitled_tiers,address,user&fields%5Bmember%5D=full_name,is_follower,email,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status&fields%5Btier%5D=amount_cents,created_at,patron_count,published,published_at,title,url&page%5Bcount%5D=1000";`

I get all my patreons info and at the end, this info:

```auto
Array
(
    [10322331] => Array
        (
            [patron_count] => 22
            [amount_cents] => 0
            [title] => Free
        )

    [3711560] => Array
        (
            [patron_count] => 11
            [amount_cents] => 100
            [title] => Tier Name 1
        )

    [3711571] => Array
        (
            [patron_count] => 33
            [amount_cents] => 500
            [title] => Tier Name 2
        )

    [3711574] => Array
        (
            [patron_count] => 44
            [amount_cents] => 1000
            [title] => Tier Name 3
        )

)

```

Is there a way to just extract the last part and not extract the upper part, I dont need the patreon since is too much info and I dont need that, but I need my Patreon Count, Payed Users, Free Users, and Patreon Count by tier.

---

<div class="post-metadata">

### Author: ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)
#### Post date: [November 22, 2024, 4:19pm UTC](https://www.patreondevelopers.com/t/get-only-the-tiers-info-via-api/9567/2 "2024-11-22T16:19:57Z")

</div>

currently\_entitled\_tiers returns all entitled tiers. If the patron is a patron of the topmost tier, all the tiers below it should also be returned. So there isnt a way to filter only for the top tier.
