# How to get character\_id for browser apps

**URL:** <https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626>\
**Category:** Third Party Developers\
**Created:** [January 7, 2018, 10:04am UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626 "2018-01-07T10:04:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreiblum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dreiblum/32/399717_2.png) [@Dreiblum](https://forums.eveonline.com/u/Dreiblum)\
**Post date:** [January 7, 2018, 10:04am UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626/1 "2018-01-07T10:04:35Z")

</div>

Hello,  
I have a browser app without any server. I can get the access token using the implicit way. Now I want to get the character\_id from the access token.  
I try to do a XMLHttpRequest to [https://login.eveonline.com/oauth/verify](https://login.eveonline.com/oauth/verify). Unfortunately the browser creates an OPTION request instead of a GET request and creates it without the necessary autorization header. So the CCP server responds with 404 and refuses to return a character id.

Can anyone give me a hint how to get a character\_id in a browser only app?

Regards  
Dreiblum

---

<div class="post-metadata">

**Author:** ![Dreiblum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dreiblum/32/399717_2.png) [@Dreiblum](https://forums.eveonline.com/u/Dreiblum)\
**Post date:** [January 7, 2018, 2:25pm UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626/2 "2018-01-07T14:25:41Z")

</div>

Got it!  
The URL [https://login.eveonline.com/oauth/verify](https://login.eveonline.com/oauth/verify) seems to be invalid. It works fine when using the URL [https://esi.tech.ccp.is/verify/](https://esi.tech.ccp.is/verify/)

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [January 15, 2018, 12:13am UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626/3 "2018-01-15T00:13:12Z")

</div>

I use [https://login.eveonline.com/oauth/verify](https://login.eveonline.com/oauth/verify) in my website and it returns the char id just fine.

---

<div class="post-metadata">

**Author:** ![Brock\_Khans](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/brock_khans/32/409174_2.png) [@Brock\_Khans](https://forums.eveonline.com/u/Brock_Khans)\
**Post date:** [January 15, 2018, 12:21am UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626/4 "2018-01-15T00:21:25Z")

</div>

Look over this: [http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/obtaincharacterid.html](http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/obtaincharacterid.html)

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [January 16, 2018, 8:37am UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626/5 "2018-01-16T08:37:13Z")

</div>

Please note that: [https://esi.tech.ccp.is/verify/](https://esi.tech.ccp.is/verify/) will prime the ESI auth cache, making the rest of the endpoints somewhat faster. If you plan to use the auth for ESI, always use [https://esi.tech.ccp.is/verify/](https://esi.tech.ccp.is/verify/) 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [April 16, 2018, 8:37am UTC](https://forums.eveonline.com/t/how-to-get-character-id-for-browser-apps/49626/6 "2018-04-16T08:37:13Z")

</div>

Closed on April 16, 2018, 8:37am UTC

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