# Subscription API's 'created\_at' date not accurate

**URL:** <https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172>\
**Category:** API\
**Created:** [August 19, 2016, 3:50pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172 "2016-08-19T15:50:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larklen](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/larklen/32/2138_2.png) [@Larklen](https://staging-discuss.dev.twitch.com/u/Larklen)\
**Post date:** [August 19, 2016, 3:50pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172/1 "2016-08-19T15:50:43Z")

</div>

Hey all,

I’ve come across a few discrepancies where the ‘created\_at’ date in list provided by Twitch API is different than what the re-sub notifications are when they share in chat.

Here is what I get from the API (I have removed the channel-specific information, but I am using the first ‘created\_at’ and not the one that’s a child of the user.)

`{"created_at":"2015-10-15T02:27:03Z","user":{"display_name":"Larklen","_id":28104784,"name":"larklen","staff":false,"created_at":"2012-02-10T00:57:51Z","updated_at":"2016-08-16T16:30:37Z","logo":null,"_links":{"self":"https://api.twitch.tv/kraken/users/larklen"}}}`

So as we can see, according to this, I have been subbed to this channel since October 15, 2015. However, I currently have a resub notification that I can share for 24 months (the true original sub date was sometime in August 2014).

I am working under the assumption that, if there was a lapse in subscription long enough to affect the created\_at date, it would also restart the ‘shareable notification’ in chat. Is this assumption correct?

If so, any ideas as to how it can be resolved? If my assumption is incorrect, then I can also just use the ‘msg-param-months’ tag to correct it - but really just looking to get this clarified.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://staging-discuss.dev.twitch.com/u/3ventic)\
**Post date:** [August 19, 2016, 4:07pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172/2 "2016-08-19T16:07:49Z")

</div>

If your subscription ends, you have up to 30 days to resub without losing your streak, but the created\_at will update when you resub manually.

---

<div class="post-metadata">

**Author:** ![Larklen](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/larklen/32/2138_2.png) [@Larklen](https://staging-discuss.dev.twitch.com/u/Larklen)\
**Post date:** [August 19, 2016, 4:09pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172/3 "2016-08-19T16:09:19Z")

</div>

Sounds good! Thanks for confirming it 🙂 At least we have the tag to manually ‘guesstimate’ the original date.

---

<div class="post-metadata">

**Author:** ![Kinsi](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/kinsi/32/2537_2.png) [@Kinsi](https://staging-discuss.dev.twitch.com/u/Kinsi)\
**Post date:** [September 6, 2016, 3:21pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172/4 "2016-09-06T15:21:03Z")

</div>

> [@Larklen](#):
>
> At least we have the tag to manually ‘guesstimate’ the original date.

As somebody who has completely reworked his subscription “parsing” system, let me tell you guessimating the date will end in nightmares. Theres no relieable way to get subscription dates besides using the chat alerts because twitch doesnt care enough to add a changed\_at / updated\_at date to the API, which the community outroars for since ages.

---

<div class="post-metadata">

**Author:** ![Larklen](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/larklen/32/2138_2.png) [@Larklen](https://staging-discuss.dev.twitch.com/u/Larklen)\
**Post date:** [September 6, 2016, 3:38pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172/5 "2016-09-06T15:38:58Z")

</div>

Yeah, there are definitely flaws with the guesstimation, given its nature. I store the created\_at date provided by the api, then I have another column to store the guessed date that just takes the months param sent in chat and takes it from the current date.

I then compare the two and if the difference is \> 31 days then I provide the older one (which will always be the one generated from chat), however if its \< 31 days, then I assume the user held onto the resub notification for a little while and I give the created\_at date.

Not perfect, but it’s close enough for what we can get.

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [October 6, 2016, 3:39pm UTC](https://staging-discuss.dev.twitch.com/t/subscription-apis-created-at-date-not-accurate/7172/6 "2016-10-06T15:39:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
