# Some questions about the API response

**URL:** <https://www.patreondevelopers.com/t/some-questions-about-the-api-response/8561>\
**Category:** Uncategorized\
**Created:** [February 3, 2024, 4:57pm UTC](https://www.patreondevelopers.com/t/some-questions-about-the-api-response/8561 "2024-02-03T16:57:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenji\_Crosland](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/kenji_crosland/32/2327_2.png) [@Kenji\_Crosland](https://www.patreondevelopers.com/u/Kenji_Crosland)\
**Post date:** [February 3, 2024, 4:57pm UTC](https://www.patreondevelopers.com/t/some-questions-about-the-api-response/8561/1 "2024-02-03T16:57:38Z")

</div>

I made a successful API call with the following URL:

[https://www.patreon.com/api/oauth2/v2/identity?include=memberships.currently\_entitled\_tiers,memberships.campaign&fields[user]=email,first\_name,full\_name,image\_url,last\_name,thumb\_url,url,vanity,is\_email\_verified&fields[member]=currently\_entitled\_amount\_cents,lifetime\_support\_cents,campaign\_lifetime\_support\_cents,last\_charge\_status,patron\_status,last\_charge\_date,pledge\_relationship\_start](https://www.patreon.com/api/oauth2/v2/identity?include=memberships.currently_entitled_tiers,memberships.campaign&fields%5Buser%5D=email,first_name,full_name,image_url,last_name,thumb_url,url,vanity,is_email_verified&fields%5Bmember%5D=currently_entitled_amount_cents,lifetime_support_cents,campaign_lifetime_support_cents,last_charge_status,patron_status,last_charge_date,pledge_relationship_start)

and this is what I got back (with personal data removed):

```auto
{
  "data": {
    "attributes": {
      "email": "anonymous@example.com",
      "first_name": "Anonymous",
      "full_name": "Anonymous User",
      "image_url": "https://patreon.com/placeholder/image/12345678",
      "is_email_verified": true,
      "last_name": "User",
      "thumb_url": "https://patreon.com/placeholder/thumb/12345678",
      "url": "https://www.patreon.com/user?u=12345678",
      "vanity": null
    },
    "id": "12345678",
    "relationships": {
      "memberships": {
        "data": [
          {
            "id": "11111111",
            "type": "member"
          },
          {
            "id": "22222222",
            "type": "member"
          }
        ]
      }
    },
    "type": "user"
  },
  "included": [
    {
      "attributes": {
        "campaign_lifetime_support_cents": 5000,
        "currently_entitled_amount_cents": 500,
        "last_charge_date": "2024-01-18T00:17:48.000+00:00",
        "last_charge_status": "Paid",
        "lifetime_support_cents": 5000,
        "patron_status": "active_patron",
        "pledge_relationship_start": "2023-04-18T05:37:13.502+00:00"
      },
      "id": "11111111",
      "relationships": {
        "campaign": {
          "data": { "id": "33333333", "type": "campaign" },
          "links": {
            "related": "https://www.patreon.com/api/oauth2/v2/campaigns/33333333"
          }
        },
        "currently_entitled_tiers": { "data": [{ "id": "44444444", "type": "tier" }] }
      },
      "type": "member"
    },
    {
      "attributes": {
        "campaign_lifetime_support_cents": 0,
        "currently_entitled_amount_cents": 300,
        "last_charge_date": null,
        "last_charge_status": null,
        "lifetime_support_cents": 0,
        "patron_status": "active_patron",
        "pledge_relationship_start": "2024-02-03T16:48:03.603+00:00"
      },
      "id": "22222222",
      "relationships": {
        "campaign": {
          "data": { "id": "55555555", "type": "campaign" },
          "links": {
            "related": "https://www.patreon.com/api/oauth2/v2/campaigns/55555555"
          }
        },
        "currently_entitled_tiers": { "data": [{ "id": "66666666", "type": "tier" }] }
      },
      "type": "member"
    },
    { "attributes": {}, "id": "33333333", "type": "campaign" },
    { "attributes": {}, "id": "55555555", "type": "campaign" },
    { "attributes": {}, "id": "44444444", "type": "tier" },
    { "attributes": {}, "id": "66666666", "type": "tier" }
  ],
  "links": { "self": "https://www.patreon.com/api/oauth2/v2/user/12345678" }
}

```

I have some questions about this.

1. Can I just check if a user has a specific tier id? all I want to do is make sure the member is subscribing to a certain tier and I’m hoping not to have to deal with paginated results. Basically if I can narrow the api query down to a single campaign and user or user and tier that would be helpful.

---

<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:** [February 15, 2024, 4:36pm UTC](https://www.patreondevelopers.com/t/some-questions-about-the-api-response/8561/2 "2024-02-15T16:36:31Z")

</div>

Also request the currently\_entitled\_tiers relation, and you will get the relevant tiers for each patron.
