Menu
API Terms of Use
Last updated on 27th July 2026
These API Terms of Use govern your access to and use of our API. They apply to both free and paid API access.
1. Introduction and Scope
1.1. These terms govern your use of any application programming interface ("API") made available by Swlines Ltd (us, we) under the Realtime Trains brand, including any API operating at a domain or subdomain of realtimetrains.co.uk or any successor or replacement endpoint we provide.
1.2. These API Terms of Use are supplementary to, and should be read alongside, our main Terms & Conditions and our Privacy Policy. Where these API Terms of Use conflict with our main Terms & Conditions in relation to your use of the API, these API Terms of Use prevail.
1.3. Where clause 7.1.6 of our main Terms & Conditions refers to "separate terms" applying to enhanced API access, these API Terms of Use are those terms.
1.4. In these terms, a "Token" means any API access credential (such as an API key, an API username and password, or a bearer token) issued to you. "Free access" means API access provided without charge. "Paid access" means API access provided under a paid subscription, commercial or enterprise licence.
1.5. In these terms, a "Consumer" means an individual who accesses or uses the API wholly or mainly for purposes outside that individual's trade, business, craft or profession. A "Business User" means any other user, including any company, partnership, sole trader, public body, charity or other organisation, and any individual who accesses or uses the API wholly or mainly for purposes relating to their trade, business, craft or profession.
1.6. Whether you are a Consumer or a Business User depends on the purpose for which you access and use the API. It does not depend on the tier or plan under which you hold access, nor on whether you pay for that access. A paid tier intended for personal use does not make you a Business User, and free access does not by itself make you a Consumer. Section 7 applies to Business Users only, and section 8 applies to Consumers only. If your status changes, you must tell us, and the corresponding section applies from that point.
1.7. By requesting, generating or using a Token, or otherwise accessing the API, you agree to these terms in full. You should not request a Token or use the API if you do not accept these terms in full.
2. API Tokens
2.1. Each Token is issued to an individual, or to a single organisation under a paid or commercial arrangement, and you are responsible for all activity carried out under your Token.
2.2. You must not share, sell, sub-license or otherwise transfer your Token to any third party.
2.3. You must keep your Token secure and confidential. If for any reason you suspect that your Token has been disclosed to or obtained by another party you should contact us immediately, and we may revoke and reissue it.
2.4. You must not embed, publish or distribute your Token in any downstream, user-facing application, including but not limited to client-side code, mobile applications, or browser extensions, unless specifically authorised by us in writing. End-user applications are expected to proxy requests through a server-side application such that the Token is not publicly accessible.
2.5. If we identify that a Token is exposed in a downstream application, or is otherwise publicly accessible, it will be revoked immediately and without notice.
3. Free Access: Permitted Use
3.1. Free access to the API is provided for personal, non-commercial use only. Commercial use of any kind is not permitted under free access unless explicitly agreed in writing by us.
3.2. You must not use the API in a way that places unreasonable load on the service, including but not limited to excessive polling, automated bulk data extraction, or exceeding any rate limit we publish or communicate to you.
3.3. If you wish to use the API commercially, at higher volumes, or in any way not permitted under free access, you must first obtain paid access or a commercial licence in accordance with section 4.
4. Paid Access and Commercial Licensing
4.1. Paid access is provided under a separate paid subscription or a written commercial licence, and may permit commercial use, higher rate limits, additional endpoints, enhanced support, or other features as set out in the applicable plan or agreement.
4.2. Enhanced or commercial API access requires a subscription or licence specific to the API. For the avoidance of doubt, and as set out in clause 7.1.6 of our main Terms & Conditions, no subscription purchased through our general subscription portal entitles you to enhanced access to any API product.
4.3. Unless otherwise agreed in writing, paid access is billed in advance and, subject to clause 4.6, the payment, renewal, cancellation, refund, upgrade and downgrade provisions set out in section 7 of our main Terms & Conditions apply to your API subscription.
4.4. Where you hold a written commercial licence with us, the specific terms of that licence prevail over these API Terms of Use to the extent of any conflict.
4.5. The scope of permitted use, permitted volumes, and any rights to store, redistribute or sub-license data obtained via the API are limited to those expressly granted in your applicable plan or commercial licence. No such rights are granted by implication.
4.6. Where you change the plan on which you hold paid access, the following applies. In this clause, your "billing cycle" is the period for which you are billed in advance, which is monthly unless a different period is stated in your plan, and your "billing anniversary" is the date on which each billing cycle begins.
4.6.1. An upgrade to a higher plan takes effect immediately. The difference in price between the two plans for the remainder of your then-current billing cycle is calculated on a pro-rata basis and charged to your registered payment method at the time of the upgrade. The full price of the higher plan is charged from your next billing anniversary, and your billing anniversary does not change.
4.6.2. A downgrade to a lower plan takes effect at the end of your current billing cycle. You will retain the features, rate limits and access of your existing plan until that date, and the lower plan and its price will apply from the start of the next billing cycle.
4.6.3. No refund is due in respect of the unused portion of a higher plan on a downgrade, as access to that plan continues until the end of the billing cycle already paid for.
5. Attribution
5.1. If you use the API in any public-facing application, product or service, you must provide clearly visible credit to Realtime Trains with a link to realtimetrains.co.uk.
5.2. This attribution requirement applies to both free and paid access, unless we expressly waive it in writing as part of a commercial licence.
6. Data and Intellectual Property
6.1. All data made available through the API remains our property, or that of our data providers. Your access to the API grants you a limited, non-exclusive, non-transferable and revocable licence to use that data solely as permitted by these terms and by your applicable tier or licence.
6.2. You must not represent the data as your own, remove or obscure any attribution, or use the data or the API in a way that infringes the rights of any third party or data provider.
6.3. Our data feeds cover mainline rail services in England, Wales and Scotland only, or as otherwise advertised.
7. Additional Terms for Business Users
7.1. This section applies to Business Users only. As set out in clause 3.1, free access is provided for personal, non-commercial use only, and a Business User may not access or use the API under free access unless we have expressly agreed otherwise in writing. Where we have given such consent, this section applies to that access as it applies to paid access.
7.2. You must not use the API, or any data obtained through it, to build, operate, support or contribute to any application, product or service which competes with, or is a substitute for, any of our own products or services, whether existing or in development, and whether or not offered under the Realtime Trains brand. This restriction applies to use by you, by any group company or affiliate of yours, and by any third party acting on your behalf.
7.3. It is at our sole and absolute discretion whether any application, product or service is deemed to compete with, or to be a substitute for, our own, and our determination on that question is final. We are under no obligation to give reasons for that determination.
7.4. Where we determine that clause 7.2 has been breached, we may revoke or suspend your Token immediately and without notice in accordance with section 11, and no refund of any fees paid will be due to you.
8. Additional Terms for Consumers
8.1. This section applies to Consumers only, whether holding free or paid access.
8.2. Nothing in these API Terms of Use affects your statutory rights as a consumer. Where any provision of these terms conflicts with a right you have under the Consumer Rights Act 2015, the Consumer Contracts (Information, Cancellation and Additional Charges) Regulations 2013, or any other consumer protection legislation, that right prevails to the extent of the conflict.
8.3. You must not use the API, or any data obtained through it, to build or operate any application, product or service which competes with, or is a substitute for, any of our own products or services which is publicly available, or which we have publicly announced, at the relevant time.
8.4. Whether an application, product or service competes with, or is a substitute for, our own is a matter for our reasonable determination. We will notify you of any such determination and give you our reasons for it. Nothing in this clause affects your right to dispute that determination.
8.5. Where we consider that clause 8.3 has been breached, we will notify you and give you a reasonable opportunity to remedy the breach before suspending or revoking your Token, unless the breach is serious or deliberate or there is a risk to the security, integrity or availability of our services. Where we revoke paid access under this clause, we will refund the unused portion of any fees you have paid in advance, unless the breach was serious or deliberate.
9. Availability, Accuracy and Disclaimer
9.1. The API is provided on an "as-is" and "as-available" basis with no guarantee of availability, uptime or accuracy, save as expressly set out in a paid plan or commercial licence.
9.2. We may change, suspend, deprecate or discontinue the API, any endpoint, or any data feed at any time. Where reasonably practicable we will give notice of material changes to users holding paid access.
9.3. Our liability arising from or in connection with your use of the API is limited and excluded as set out in section 10 below.
10. Limitation of Liability
10.1. Nothing in these API Terms of Use excludes or limits our liability for death or personal injury caused by our negligence, for fraud or fraudulent misrepresentation, or for any other liability that cannot lawfully be excluded or limited under English law. If you are a Consumer, nothing in this section limits or excludes our liability under section 49 of the Consumer Rights Act 2015 to perform the service with reasonable care and skill.
10.2. The API relies on data and services provided to us by third-party data suppliers. Save where the loss or damage arises from our own negligence, we shall not be liable for any loss or damage arising from, or in connection with, any act, omission, inaccuracy, error, delay, interruption or failure of any third-party data supplier, including (but not limited to) any inaccuracy, incompleteness or unavailability of the data supplied to us.
10.3. We exclude all liability for business losses (including, without limitation, loss of profits, income, revenue, anticipated savings, business, contracts or goodwill) and for any indirect, consequential or special loss or damage, in each case howsoever arising from your use of, or inability to use, the API.
10.4. Subject to clauses 10.1 and 10.5, our total aggregate liability to you arising out of or in connection with your use of the API, whether in contract, tort (including negligence), breach of statutory duty or otherwise, shall not in any circumstances exceed the total fees actually paid by you to us for API access in the twelve (12) month period immediately preceding the event giving rise to the liability. Where you use the API under free access, or have otherwise paid no fees, our aggregate liability to you shall not exceed zero.
10.5. If you are a Consumer, clause 10.4 does not apply so as to prevent you from recovering loss or damage that is a foreseeable result of our breach of these terms or of our failure to use reasonable care and skill.
11. Suspension and Revocation
11.1. We reserve the right to revoke, suspend or rate-limit any Token at any time, with or without notice, where these terms are breached, where we suspect misuse, or where necessary to protect the integrity, security or availability of our services.
11.2. If you are a Consumer, we will give you notice before revoking or suspending your Token, together with our reasons and, where the breach is capable of remedy, a reasonable opportunity to remedy it. We may act immediately and without notice where the breach is serious or deliberate, where your Token has been exposed or compromised, or where immediate action is necessary to protect the integrity, security or availability of our services.
11.3. On termination or revocation you must immediately cease all use of the API and destroy any cached credentials.
12. Variation
12.1. We may vary these API Terms of Use at any time. We may do so for any of the following reasons: to reflect a change in law, regulation or industry practice; to reflect a change in the terms on which our data is supplied to us; to protect the security or integrity of our services; to reflect a change in our costs; or to reflect a technical change to, or the addition, alteration or withdrawal of, any feature of the API.
12.2. Varied terms shall apply to your use of the API from the date of publication on our website, and your continued use of the API after such publication constitutes acceptance of the varied terms.
12.3. Where we make a material change to the specific terms of a paid package or plan to which you subscribe, we will inform you by email to the email address registered to your account. Where that change is materially to your disadvantage, you may cancel your subscription before the change takes effect and we will refund the unused portion of any fees you have paid in advance. To do so, you must notify us by email at hello@realtimetrains.com from the email address registered to your account, before the date on which the change takes effect.
13. Record of Acceptance
13.1. Your acceptance of these terms, including your IP address and the time of acceptance, will be recorded.
14. Jurisdiction
14.1. These API Terms of Use shall be interpreted, construed and enforced in accordance with English law and shall be subject to the exclusive jurisdiction of the English Courts.
Our Contact Details
If you wish to discuss commercial licensing or have questions about permitted use, you can contact us at hello@realtimetrains.com.
Our company registration number is 08025561, and our VAT registration number is 172 3163 27.
Our registered office is 9 Wordsworth Avenue, Bournemouth, BH8 9NT.