# List all systems within n gate jumps of specified system

**URL:** <https://forums.eveonline.com/t/list-all-systems-within-n-gate-jumps-of-specified-system/420766>\
**Category:** Third Party Developers\
**Created:** [September 16, 2023, 3:31pm UTC](https://forums.eveonline.com/t/list-all-systems-within-n-gate-jumps-of-specified-system/420766 "2023-09-16T15:31:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loshiba\_Risolo](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/loshiba_risolo/32/387393_2.png) [@Loshiba\_Risolo](https://forums.eveonline.com/u/Loshiba_Risolo)\
**Post date:** [September 16, 2023, 3:31pm UTC](https://forums.eveonline.com/t/list-all-systems-within-n-gate-jumps-of-specified-system/420766/1 "2023-09-16T15:31:10Z")

</div>

Is there an existing API or database available where I can specify a system name or id (typically only in high or low sec) and get a list of all systems within n jumps of that system? For example, a list of all systems within 3 jumps of Haatomo. Preferably something that would honor the “shortest”, “secure”, or “insecure” routing option that exists in game. I only need it for regular gate-to-gate travel, not using jump drives.

I would like to be able to do this programmatically for a tool that I am working on.

The closest I could find is the range tool of Dotlan but that doesn’t support the routing option and requires manual work.

Just wondering if something like this already exists or if I would need to write/create my own?

Thank you

---

<div class="post-metadata">

**Author:** ![Tonto\_Auri](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/tonto_auri/32/388339_2.png) [@Tonto\_Auri](https://forums.eveonline.com/u/Tonto_Auri)\
**Post date:** [September 25, 2023, 11:57am UTC](https://forums.eveonline.com/t/list-all-systems-within-n-gate-jumps-of-specified-system/420766/2 "2023-09-25T11:57:58Z")

</div>

For “systems in n jumps range”, you can use SQL query on database dump.  
Which is not trivial, but straightforward enough.

For security restrictions, you’d probably have to write code.

---

<div class="post-metadata">

**Author:** ![Fescheste\_Bixn](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/fescheste_bixn/32/389722_2.png) [@Fescheste\_Bixn](https://forums.eveonline.com/u/Fescheste_Bixn)\
**Post date:** [October 10, 2023, 8:41am UTC](https://forums.eveonline.com/t/list-all-systems-within-n-gate-jumps-of-specified-system/420766/3 "2023-10-10T08:41:39Z")

</div>

Not sure if you already figured it out, but I needed the same thing some time ago.  
Basically what you do is, load the stargate ids of a system, load the stargate data for all the stargates to get the connected systems and then put that all in a recursive function to get all the connected Systems within a specific range.

I copied my code into a [JSFiddle](https://jsfiddle.net/debugLogEnabled/78unodx0/) so you can try it. The output is in this case just an array of all connected system ids.

Edit: Forgot to add, that you can then use the [evetech routes api](https://esi.evetech.net/ui/#/Routes) to get the secure or fastest route to every one of the system ids in the result array

---

<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:** [January 8, 2024, 8:41am UTC](https://forums.eveonline.com/t/list-all-systems-within-n-gate-jumps-of-specified-system/420766/4 "2024-01-08T08:41:57Z")

</div>

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