Is there an API call that returns a list of all items that are needed in OCs?
Started by zordork [2166192] on in API Development.
Posts archived: 3 / 3 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Counted by TornLife from the archived posts.
Is there an API call that returns a list of all items that are needed in OCs?
A call to /faction/crimes (v2) will tell you about the crimes available to you
{
"position": "Engineer",
"position_info": {
"id": "P3",
"label": "Engineer",
"number": 1
},
"item_requirement": {
"id": 1431,
"is_reusable": true,
"is_available": false
},
"user": null,
"checkpoint_pass_rate": 0
},
...
{
"position": "Picklock",
"position_info": {
"id": "P6",
"label": "Picklock",
"number": 2
},
"item_requirement": null,
"user": null,
"checkpoint_pass_rate": 0
}
Whereas a call to /torn/organizedcrimes (v2) will tell you about all crimes' items
{
"name": "Picklock",
"position_info": {
"id": "P1",
"label": "Picklock",
"number": 1
},
"required_item": {
"id": 1203,
"name": "Lockpicks",
"is_used": false
}
},
You can use ‘torn’ -> ‘organizedcrimes’ in API v2: