# Question - How to expose X-pages in ESI universe/types

**URL:** <https://forums.eveonline.com/t/question-how-to-expose-x-pages-in-esi-universe-types/40650>\
**Category:** Third Party Developers\
**Created:** [November 20, 2017, 8:56am UTC](https://forums.eveonline.com/t/question-how-to-expose-x-pages-in-esi-universe-types/40650 "2017-11-20T08:56:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seller1122](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/seller1122/32/39429_2.png) [@seller1122](https://forums.eveonline.com/u/seller1122)\
**Post date:** [November 20, 2017, 8:56am UTC](https://forums.eveonline.com/t/question-how-to-expose-x-pages-in-esi-universe-types/40650/1 "2017-11-20T08:56:11Z")

</div>

Hi,

First off apologies if this is the wrong place to be asking support questions for the EVE API; if so please let me know where I should be asking !!

Second I’m more of a statistician than a developer so sorry if I just have a basic misunderstanding!

So I am trying to get a complete list of all the market type\_ids and am doing so by calling on the universe/types. Unfortunately it comes in multiple pages so I had originally set a while loop to keep iterating over it until it returns blank (not the best approach I know). I have since read that there is meant to be a `X-pages` property in the header of the request however when I look all I see is:

```auto
`access-control-expose-headers`
[1] "Content-Type,Warning,X-Pages,X-ESI-Error-Limit-Remain,X-ESI-Error-Limit-Reset"

```

Doing some basic Google-ing my understanding is that this means I need to adjust the header of my request in order to get these elements returned however no matter what I’ve tried I can’t get the information to be sent to me ! I can’t tell if its an issue with my code / the software i’m using / the api itself. Any help would be appreciated. For reference my code (in R) as well as the output is below:

```auto
library(httr)
resp <- GET(
    url = "https://esi.tech.ccp.is/latest/universe/types/" , 
    add_headers(.headers = c("access-control-expose-headers"= "X-Pages"))
)
resp$request
<request>
GET https://esi.tech.ccp.is/latest/universe/types/
Output: write_memory
Options:
* useragent: libcurl/7.56.0 r-curl/3.0 httr/1.3.1
* cainfo: C:/PROGRA~1/R/R-34~1.2/etc/curl-ca-bundle.crt
* httpget: TRUE
Headers:
* Accept: application/json, text/xml, application/xml, */*
* access-control-expose-headers: X-Pages

headers(resp)

$`access-control-allow-credentials`
[1] "true"

$`access-control-allow-headers`
[1] "Content-Type,Authorization,X-User-Agent"

$`access-control-allow-methods`
[1] "GET,OPTIONS"

$`access-control-allow-origin`
[1] "*"

$`access-control-expose-headers`
[1] "Content-Type,Warning,X-Pages,X-ESI-Error-Limit-Remain,X-ESI-Error-Limit-Reset"

$`access-control-max-age`
[1] "600"
......

```

---

<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:** [November 20, 2017, 4:13pm UTC](https://forums.eveonline.com/t/question-how-to-expose-x-pages-in-esi-universe-types/40650/2 "2017-11-20T16:13:13Z")

</div>

This is a bug with ESI, not anything you can do to fix.

> <https://github.com/ccpgames/esi-issues/issues/648>

---

<div class="post-metadata">

**Author:** ![Krysenth](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/krysenth/32/58194_2.png) [@Krysenth](https://forums.eveonline.com/u/Krysenth)\
**Post date:** [December 15, 2017, 4:27am UTC](https://forums.eveonline.com/t/question-how-to-expose-x-pages-in-esi-universe-types/40650/3 "2017-12-15T04:27:10Z")

</div>

You would be better off using [https://esi.tech.ccp.is/ui/#/Market/get\_markets\_region\_id\_types](https://esi.tech.ccp.is/ui/#/Market/get_markets_region_id_types) instead. This returns things actually ON the market in a given region, rather than everything (including things that may or may not even be possible to place on the market).

---

<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:** [March 15, 2018, 4:27am UTC](https://forums.eveonline.com/t/question-how-to-expose-x-pages-in-esi-universe-types/40650/4 "2018-03-15T04:27:16Z")

</div>

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