# Can't get data from API

**URL:** <https://discuss.dev.twitch.com/t/cant-get-data-from-api/57276>\
**Category:** API\
**Created:** [March 25, 2024, 9:43pm UTC](https://discuss.dev.twitch.com/t/cant-get-data-from-api/57276 "2024-03-25T21:43:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralf.eberle](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@ralf.eberle](https://discuss.dev.twitch.com/u/ralf.eberle)\
**Post date:** [March 25, 2024, 9:43pm UTC](https://discuss.dev.twitch.com/t/cant-get-data-from-api/57276/1 "2024-03-25T21:43:25Z")

</div>

Hello,  
i’ve setup my ClientID and Client-Secret.  
When i try to do:  
curl -X POST ‘[https://id.twitch.tv/oauth2/token](https://id.twitch.tv/oauth2/token)’   
-H ‘Content-Type: application/x-www-form-urlencoded’   
-d ‘client\_id=&client\_secret=&grant\_type=client\_credentials’

I get: {“status”:403,“message”:“invalid client secret”}  
ClientID and ClientSecret is correct.

Thanks for any hint.

---

<div class="post-metadata">

**Author:** ![ralf.eberle](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@ralf.eberle](https://discuss.dev.twitch.com/u/ralf.eberle)\
**Post date:** [March 26, 2024, 11:44am UTC](https://discuss.dev.twitch.com/t/cant-get-data-from-api/57276/2 "2024-03-26T11:44:22Z")

</div>

Found the fault myself, sorry! But got an account here, sureley useful sometime 😉

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [April 25, 2024, 11:44am UTC](https://discuss.dev.twitch.com/t/cant-get-data-from-api/57276/3 "2024-04-25T11:44:57Z")

</div>

Closed on April 25, 2024, 11:44am UTC

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