These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

ESI - How to tell how many pages in response?

First post
Author
JitaPu
Random Strategies
#1 - 2017-03-22 06:30:33 UTC
I am querying
/markets/{region_id}/orders/
.

For some regions, the response contains more than 1 page (I believe, responses of more than 10,000 records get split into multiple pages).

Is there a simple way to tell (without guessing), how many pages I have to walk through to get the entire response?
Althalus Stenory
Flying Blacksmiths
#2 - 2017-03-22 07:07:36 UTC
no, you have to go through all the pages and stops when the result is empty

EsiPy - Python 2.7 / 3.3+ Swagger Client based on pyswagger for ESI

JitaPu
Random Strategies
#3 - 2017-03-22 11:04:37 UTC
Thanks for your reply. Would be great to have the total number of pages available somehow.

On another note, are there any plans to have something like

/markets/structures/{structure_id}/


for Stations? At the moment, I can only get all orders for a region and then have to filter for the
location_id
.
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#4 - 2017-03-22 12:24:01 UTC
JitaPu wrote:
Thanks for your reply. Would be great to have the total number of pages available somehow.

On another note, are there any plans to have something like

/markets/structures/{structure_id}/


for Stations? At the moment, I can only get all orders for a region and then have to filter for the
location_id
.



No public plans, at least.

It wouldn't make a lot of sense from a caching point of view. The region can be cached, but the number of station calls which would be could probably be counted on one hand.

(structures have to be different, due to ACLs)

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

JitaPu
Random Strategies
#5 - 2017-03-22 20:46:11 UTC
Thanks Steve, that makes sense, even though it does make life a bit harder trying to query station orders.