Inara API

More about Inara API is on the API page, general dev guidelines are here and more detailed documentation about the events and data format here.

Just a note for tool authors using Inara API - please ensure your apps are doing  TWO requests per minute AT MAXIMUM. As I have discovered, many users are using multiple apps at once (nothing wrong with that), but are also updating their profiles from all of the applications at once, which is causing quite serious overhead. For such reason, I have needed to make API requests limits much tighter. For bots and other similar non-demanding apps are requests rates set same as before. If do you need another requests rate limit, please send me a PM.

Inara API update for Odyssey:
  • The header property isDeveloped was renamed to less confusing isBeingDeveloped. You don't need to change anything on your end though, the old property will still work.
  • A new event addCommanderTravelLand for commanders landing on the celestial body was added (should be triggered at journal's Touchdown, DropShipDeploy and similar).
  • The events addCommanderTravelCarrierJump, addCommanderTravelDock, addCommanderTravelFSDJump and setCommanderTravelLocation now contain optional properties for the star system coordinates, celestial body and celestial body coordinates. It's not required to set, it may however help to further precise commander's location when the star system is not in the database, etc.
  • The events addCommanderTravelDock, addCommanderTravelFSDJump and addCommanderTravelLand are now having boolean properties isTaxiShuttle and isTaxiDropship for travelling with Apex or Frontline Solutions ships.
  • New events setCommanderInventory, resetCommanderInventory, setCommanderInventoryItem, addCommanderInventoryItem and delCommanderInventoryItem added. Those are supposed for handling the new Odyssey events like ShipLockerMaterials and similar, you can however use it also for the existing engineering materials or ship cargo instead of the existing dedicated events (but you do not need to, they are not going anywhere).
  • New events setCommanderSuitLoadout, updateCommanderSuitLoadout and delCommanderSuitLoadout for the suit loadouts added.
26 Sep 2020, 7:37pm
I have the same error as NordMarken.

Trying to import frontier data just gets me the same message and an Error that just says "Error: "
26 Sep 2020, 7:49pm
ArtieI have adjusted your import date a little bit to skip the problematic journal, please try again.


Thank you! That worked nicely. If you can, could you please explain what the problem was and if there is anything from my side that I can do to prevent this from happening again?
26 Sep 2020, 8:14pm
Firehawk894I have the same error as NordMarken.
Trying to import frontier data just gets me the same message and an Error that just says "Error: "

It should work for you now, too.

Nordmarken
Thank you! That worked nicely. If you can, could you please explain what the problem was and if there is anything from my side that I can do to prevent this from happening again?

Hard to say. It's some technical issue on Frontier's end and I have no idea what is causing it. By a few reports it seems that re-linking may help sometimes, but probably very rarely. As far as I know, there is no way how to avoid it, so the I have just reported it to Frontier and I am adjusting the import dates where necessary, to skip the problematic days. The error 28 is a connection timeout and even if I set quite long timeout period, no response from their server is received.
26 Sep 2020, 8:18pm
Artie
Firehawk894I have the same error as NordMarken.
Trying to import frontier data just gets me the same message and an Error that just says "Error: "


It should work for you now, too.

Nordmarken
Thank you! That worked nicely. If you can, could you please explain what the problem was and if there is anything from my side that I can do to prevent this from happening again?


Hard to say. It's some technical issue on Frontier's end and I have no idea what is causing it. By a few reports it seems that re-linking may help sometimes, but probably very rarely. As far as I know, there is no way how to avoid it, so the I have just reported it to Frontier and I am adjusting the import dates where necessary, to skip the problematic days. The error 28 is a connection timeout and even if I set quite long timeout period, no response from their server is received.


Ok. Guess the best thing, if it would occur again, is just to give a shout out here. Thank you again and also a big O7 for a wonderful site.
09 Oct 2020, 10:30am
Hey Artie, I've got a question about when I search using the API and I get a 202 response ("eventStatusText": "Multiple results found.")

As an example I search for a cmdr; 'colinhype' and I get 202 response with the JSON containing;

"otherNamesFound": [
"Colinhype"
]


But searching for the other name yields the same results (case doesn't seem to matter)

Do you have any suggestions for how to deal with this or is it just one of those things?
09 Oct 2020, 10:46am
Hmmm, that's a good point. I will adjust that so it will list the exact match of the in-game name first, then the exact match of Inara name and then the rest of matches as otherNamesFound, which will solve the problem. Will be adjusted later today. The adjustment should be deployed now.

Last edit: 09 Oct 2020, 10:58am
09 Oct 2020, 11:00am
Wow that was quick, thanks! I'll check it out.

EDIT - looks great, nice work


Last edit: 09 Oct 2020, 11:18am
09 Oct 2020, 9:02pm
Hi there, is there a plan to add the current cr balance to the getCommanderProfile event at some point?
Or have I missed the endpoint where the balance is included?

EDIT: (or a getCommanderCredits event)


Last edit: 09 Oct 2020, 9:10pm
28 Oct 2020, 11:00pm
Just started receiving this error code when importing data...


[httpCode: 0, fetchCode: 28]

Does anybody know how to fix this issue?



cheers
29 Oct 2020, 1:13pm
SeigertonJust started receiving this error code when importing data...
[httpCode: 0, fetchCode: 28]

Does anybody know how to fix this issue?
cheers

Hello, please try again, it should work for you now.
29 Oct 2020, 9:23pm
Artie
SeigertonJust started receiving this error code when importing data...
[httpCode: 0, fetchCode: 28]

Does anybody know how to fix this issue?
cheers


Hello, please try again, it should work for you now.



Thank you very much, but unfortunately its still the same error..
29 Oct 2020, 9:43pm
Seigerton

Thank you very much, but unfortunately its still the same error..

Ah, I took a look at the wrong date. Now it should work, the problematic date will be skipped at the next import...
29 Oct 2020, 11:06pm
Artie
Seigerton

Thank you very much, but unfortunately its still the same error..


Ah, I took a look at the wrong date. Now it should work, the problematic date will be skipped at the next import...



Awesome, working now thankyou, keep up the great work.
01 Nov 2020, 9:58am
For everyone who still running Windows 7. Inara update works fine with EDMC (Elite Dangerous Market Connector) but send "INARA Reports: No Response" error using EDDiscovery.
More info here on previous pages:
https://inara.cz/board/7049/333379/?page=24
20 Nov 2020, 8:45pm
I have a PS4 elite account I have had since it was released and an Inara account for it (CMDR Oak7603). I have just got the free program from Epic. When I try to link this new Inara account (CMDR BENOAK) to the new epic account I get:

Your access/refresh tokens expired or there is a new authentication required by Frontier's service. Please perform a new authentication.
[httpCode: 400, fetchCode: 0]

When I reauthenticate or unlink/relink I get the same message.

Any ideas?

Post a reply

You must be signed in to post here.
Inara API is... well... see sticky post for the details.