# API: type=member vs. patron\_status=active\_patron (and how to get tiers?)

**URL:** <https://www.patreondevelopers.com/t/api-type-member-vs-patron-status-active-patron-and-how-to-get-tiers/9609>\
**Category:** Friendly Help\
**Created:** [November 29, 2024, 4:02am UTC](https://www.patreondevelopers.com/t/api-type-member-vs-patron-status-active-patron-and-how-to-get-tiers/9609 "2024-11-29T04:02:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpsvisualizer](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/gpsvisualizer/32/2799_2.png) [@gpsvisualizer](https://www.patreondevelopers.com/u/gpsvisualizer)\
**Post date:** [November 29, 2024, 4:02am UTC](https://www.patreondevelopers.com/t/api-type-member-vs-patron-status-active-patron-and-how-to-get-tiers/9609/1 "2024-11-29T04:02:42Z")

</div>

I’m just getting started with integrating Patreon into my Web site. I’m not going to do anything too complicated… no special content, I’m just going to disable the ads for paid members and set a cookie for a month.

I’m using the [Patreon PHP library](https://github.com/Patreon/patreon-php) that’s on GitHub. I figured out how to make a “Login with Patreon” link, and I set up a page on my site (the redirect\_uri ) that gets the access and refresh tokens and then does a “fetch user” query to Patreon’s API.

The data that comes back from the “fetch\_user” function in the library apparently comes from the “identity” API. There are two variables that might potentially tell me whether or not they’re a paid member:

- data/relationships/memberships/data/0/type (“member” or not)
- included/0/attributes/patron\_status (“active\_patron” or not)

My question is, what’s the difference between these two? Does memberships-\>type get set to “member” even if they’re in a “free membership” tier? Whereas patron\_status is only “active\_patron” if they’re on a regular payment plan?

All I really care about are the following pieces of info:  
• Their name  
• Their email address  
• Whether they’re currently a paid member  
• Which tier they’ve subscribed to

Can someone help me create a minimal v2 API URL that would include just those fields? I’ve no qualms about modifying the files I got from GitHub.

---

<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:** [December 5, 2024, 6:08pm UTC](https://www.patreondevelopers.com/t/api-type-member-vs-patron-status-active-patron-and-how-to-get-tiers/9609/2 "2024-12-05T18:08:48Z")

</div>

You could use the example call that the WordPress plugin uses - it gets identity and membership info in one go:

> <https://github.com/Patreon/patreon-wordpress/blob/d1ed8c110a156aa7cde24a5c258cd5b9b5a4a53a/classes/patreon_api_v2.php#L22>
