Conditions and Train Access Manual
Our agency provides you with real-time train services and fares for the Cusco - Aguas Calientes route, operated by PeruRail and IncaRail. Below is the usage manual.
View fares
Access conditions
- The APIs are provided with values in JSON format.
- Online access is unlimited.
- The fee corresponds to a one (01) year subscription, non-divisible. We issue a receipt or invoice.
- Use is exclusive to a single person or company, which cannot share access or data. In case of violation, the subscription will be immediately canceled, without any possibility of claiming compensation or refund.
- The APIs can be called with a maximum limit of one (01) time every 15 minutes.
- If the subscription is canceled before the one (01) year term expires, no refund will be issued.
- Subscription renewal is not automatic. Renewal must be requested and paid for again at the end of the subscription period.
- The services provided are generated using external sources beyond our control, so we cannot be responsible for their quality or accuracy. The data and results may contain errors or variations that we cannot anticipate or manage.
- We cannot guarantee the continuity of the service, which may stop functioning at any time without prior notice, without the subscriber being able to claim compensation or refund.
We emphasize that the subscription and access are for the exclusive use of a single agency (same RUC). Under no circumstances may the code or access link be shared or sold to another agency or other users. A tracking system for access has been implemented, and any violation of this rule will result in immediate termination of the subscription without prior notice, and without the right to any refund or compensation.
Access to train services
Access to the services is provided through a link on our website. It has the following format:
https://DOMAIN/partner/train_api?user=USER&ruc=RUC...
- DOMAIN. Any of our domains, but we recommend using train-machupicchu.com.
- USER. User code to authorize access. Our company will provide this parameter when creating the account.
- This code is strictly confidential.
- It is not transferable to another agency, free or paid.
- It cannot be shared, sold, disclosed, or shown to third parties anywhere, nor included in the source code of HTML pages visible to users.
- We reserve the right to block access in case of violation of these conditions.
- RUC. The agencys RUC.
Access to the API (JSON format)
API access has the following format:
https://DOMAIN/partner/train_api?user=USER&ruc=RUC&day=DAY&month=MONTH&year=YEAR&date=DATE
- DAY, MONTH, and YEAR. Respectively, the day, month, and year you wish to query. Example: &day=10&month=10&year=2025
- If the DAY parameter is not indicated, it returns the whole month.
- If the MONTH parameter is not indicated, it returns the whole year.
- If the DAY, MONTH, and YEAR parameters are not indicated, or if the DATE parameter is indicated, it returns only the day.
- Example link: https://train-machupicchu.com/partner/train_api?user=12a34b56c78d&ruc=202020200
- Example result for the year (with fictitious data): https://train-machupicchu.com/partner/train_api?user=demo89783f
- Example result for a month (with fictitious data): https://train-machupicchu.com/partner/train_api?user=demo89783f&month=12
- Example result for a day (with fictitious services): https://train-machupicchu.com/partner/train_api?user=demo89783f&date=2025-10-25