A message for Trucky integrators
If you are a developer using Trucky API’s to gather data for your app, bot, site, VTC panel, this message is for you.
To maintain an online platform, one of the main activities to be carried out is checking the logs. The logs contain a lot of important information and some of them sometimes catch the eye.
Some developers use Trucky to load TruckersMP user data, those who use it to check if it is online, those who use the ResolveLocation API maybe in its VTRPC fork.
Trucky’s APIs are free and free to access, no authentication is required, nor a token or username and password, so it is virtually impossible to recognize who is calling the API.
One of the information that allows you to recognize who is calling the API is the User-Agent used in the call.
For this, we ask you to ALWAYS specify in the HTTP calls (from PHP, Node.js, .NET, Java, Python etc) the “User-Agent” HTTP header that allows you to understand who is using the API.
Calls without User-Agent or generic one are found, the IP from which they come will be banned.
Trucky API is public and always will be, but let us know that you are using them in your app, will help to check who is using them and maintain the service smooth and reliable:
Unfortunately, many developers, even in the past, have made some mistakes or lightness in handling Trucky API calls by calling them too often in a matter of seconds or trying to do the scraping.
These errors, probably in good faith, however, have overloaded the call platform, slowing down all users who use it.
Very shortly, a Rate Limiting layer will be added that will block incorrect behaviour.
Some APIs respond with cached data so it is useless to make a call every 2 seconds for something with cache expiration of 5 minutes.
So if you have any doubts about how much and how to call the APIs, come to Discord to talk about it together.
Hope you understand this message and reasons behind it, if you are any inquiry, feel free to talk with us on our Discord server.
Thank you!
Recent Posts
Categories
Archives
- June 2024
- May 2024
- January 2024
- December 2023
- November 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- November 2022
- October 2022
- September 2022
- July 2022
- June 2022
- May 2022
- March 2022
- February 2022
- January 2022
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- December 2019
- October 2019
- September 2019
- May 2019
- February 2019
- December 2018
- November 2018
- October 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018