# Access to public contracts via ESI - search by type\_id?

**URL:** <https://forums.eveonline.com/t/access-to-public-contracts-via-esi-search-by-type-id/198917>\
**Category:** Third Party Developers\
**Created:** [November 2, 2019, 4:49pm UTC](https://forums.eveonline.com/t/access-to-public-contracts-via-esi-search-by-type-id/198917 "2019-11-02T16:49:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cpt\_Loxer](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/cpt_loxer/32/489274_2.png) [@Cpt\_Loxer](https://forums.eveonline.com/u/Cpt_Loxer)\
**Post date:** [November 2, 2019, 4:49pm UTC](https://forums.eveonline.com/t/access-to-public-contracts-via-esi-search-by-type-id/198917/1 "2019-11-02T16:49:15Z")

</div>

Q: is there a way to search through contracts by type\_id of item you are looking for via ESI?  
A: IMO there’s no

There are 2 ESI endpoints for public contracts:  
/contracts/public/{region\_id}/  
/contracts/public/items/{contract\_id}/  
To get a type ID you need to use 1st endpoint and get all contracts in certain region (in jita between 22,000-23,000 at any given time)  
Then you need to use 2nd endpoint and check each of 22-23 k to check what items are included.  
That sucks - it takes 50 minutes to go through each of 23k contracts IDs. So i wonder is there any way to do it faster and search by type\_id like in game’s contract system?

---

<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 2, 2019, 9:45pm UTC](https://forums.eveonline.com/t/access-to-public-contracts-via-esi-search-by-type-id/198917/2 "2019-11-02T21:45:27Z")

</div>

Do it once, save the contents as they aren’t going to change, then in future just resolve ones you don’t already have stored.

---

<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 31, 2020, 9:45pm UTC](https://forums.eveonline.com/t/access-to-public-contracts-via-esi-search-by-type-id/198917/3 "2020-01-31T21:45:32Z")

</div>

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