# Eve Swagger Error

**URL:** <https://forums.eveonline.com/t/eve-swagger-error/218367>\
**Category:** Third Party Developers\
**Created:** [February 9, 2020, 1:28am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367 "2020-02-09T01:28:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hungry\_Dads](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/hungry_dads/32/190129_2.png) [@Hungry\_Dads](https://forums.eveonline.com/u/Hungry_Dads)\
**Post date:** [February 9, 2020, 1:28am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/1 "2020-02-09T01:28:29Z")

</div>

I’ve used this interface before and gotten it to work, but now when I’m using a new character and trying to get their stats I get:

{  
“error”: “authorization not provided”  
}

Any idea?

---

<div class="post-metadata">

**Author:** ![Nicen\_Jehr](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nicen_jehr/32/388048_2.png) [@Nicen\_Jehr](https://forums.eveonline.com/u/Nicen_Jehr)\
**Post date:** [February 9, 2020, 1:36am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/2 "2020-02-09T01:36:01Z")

</div>

the error is clear. authorize the app, then set your Authorization header. [https://docs.esi.evetech.net/docs/sso/sending\_esi\_auth\_request.html](https://docs.esi.evetech.net/docs/sso/sending_esi_auth_request.html)

---

<div class="post-metadata">

**Author:** ![Hungry\_Dads](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/hungry_dads/32/190129_2.png) [@Hungry\_Dads](https://forums.eveonline.com/u/Hungry_Dads)\
**Post date:** [February 9, 2020, 2:02am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/3 "2020-02-09T02:02:55Z")

</div>

I’m using excel and grabbing the data straight from a web query; I’ve used this for market data before but not character data

 ![Capture](https://global.discourse-cdn.com/eveonline/original/3X/4/3/43a903e7821cc600a7ef2d0e5fccc98937633ced.png)

---

<div class="post-metadata">

**Author:** ![Nicen\_Jehr](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nicen_jehr/32/388048_2.png) [@Nicen\_Jehr](https://forums.eveonline.com/u/Nicen_Jehr)\
**Post date:** [February 9, 2020, 2:03am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/4 "2020-02-09T02:03:51Z")

</div>

Presumably market data is available to public, unauthenticated requests. You’ll need a custom app

---

<div class="post-metadata">

**Author:** ![Hungry\_Dads](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/hungry_dads/32/190129_2.png) [@Hungry\_Dads](https://forums.eveonline.com/u/Hungry_Dads)\
**Post date:** [February 9, 2020, 2:05am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/5 "2020-02-09T02:05:20Z")

</div>

But I obtained my client ID & secret token; you would think it would be protected?

---

<div class="post-metadata">

**Author:** ![Nicen\_Jehr](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nicen_jehr/32/388048_2.png) [@Nicen\_Jehr](https://forums.eveonline.com/u/Nicen_Jehr)\
**Post date:** [February 9, 2020, 2:08am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/6 "2020-02-09T02:08:58Z")

</div>

Those strings are prerequisites to obtaining an access token but are not themselves the access token. Read through the links in my link

---

<div class="post-metadata">

**Author:** ![Hungry\_Dads](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/hungry_dads/32/190129_2.png) [@Hungry\_Dads](https://forums.eveonline.com/u/Hungry_Dads)\
**Post date:** [February 9, 2020, 2:30am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/7 "2020-02-09T02:30:27Z")

</div>

Sorry, but I can’t make sense of it; if my character ID is 1111111 what would the query and web address be?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [February 9, 2020, 2:48am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/8 "2020-02-09T02:48:10Z")

</div>

As you’re doing now `https://esi.evetech.net/v4/characters/1111111/location` but the key piece you’re missing is the `Authorization: Bearer <access_token>` header.

See the link @Nicen_Jehr mentioned, [https://docs.esi.evetech.net/docs/sso/sending\_esi\_auth\_request.html](https://docs.esi.evetech.net/docs/sso/sending_esi_auth_request.html).

Also in order to _GET_ an `access_token` you would have to setup an OAuth flow as specified in [https://docs.esi.evetech.net/docs/sso/web\_based\_sso\_flow.html](https://docs.esi.evetech.net/docs/sso/web_based_sso_flow.html).

It is possible to do the OAuth flow outside of Excel, via something like @Steve_Ronuken posted, [https://www.fuzzwork.co.uk/2017/03/14/using-esi-google-sheets/](https://www.fuzzwork.co.uk/2017/03/14/using-esi-google-sheets/). However the problem is you would have to manually refresh your `access_token` every 20min if you couldn’t implement that part in your Excel logic.

---

<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:** [May 9, 2020, 2:59am UTC](https://forums.eveonline.com/t/eve-swagger-error/218367/9 "2020-05-09T02:59:42Z")

</div>

Closed on May 9, 2020, 2:59am UTC

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