Travis CI API
Overview
Travis CI is one of the original hosted CI services, tightly integrated with GitHub to automatically run test suites on every push or pull request. The API lets you programmatically list repositories, inspect build history, fetch job logs, and trigger or cancel builds. Note that Travis CI's free tier for open-source projects has become limited; most new projects use the paid plan or migrate to GitHub Actions.
Beginner Tip
Get your Travis CI API token from your profile page at travis-ci.com. The base URL for public GitHub repos is `https://api.travis-ci.com` — the old `api.travis-ci.org` endpoint is deprecated and will return errors.
Available Data
Example Response
{
"full_name": "octocat/Hello-World",
"description": "My first repository on GitHub!",
"stargazers_count": 1500,
"forks_count": 320,
"language": "JavaScript",
"open_issues_count": 12,
"created_at": "2011-01-26T19:01:12Z"
} Field Reference
id Travis CI internal ID for the repository. name Repository name (without the owner prefix). slug Full "owner/repo" identifier used in API paths. active Whether Travis CI is currently enabled and watching this repository. default_branch.name The repository's default branch that Travis CI monitors. last_build.state Status of the most recent build: "passed", "failed", "errored", or "canceled". Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://docs.travis-ci.com/api/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Azure DevOps Health
The Azure Resource Health API lets you query the current and historical health status of individual Azure resources, such as virtual machines, SQL databases, and App Services.
Bitrise
Bitrise is a mobile-first CI/CD platform that automates building, testing, and deploying iOS and Android apps.
CircleCI
CircleCI provides programmatic access to automate the software development process using continuous integration and continuous delivery via REST API.
Codeship
Codeship is a hosted CI platform (now part of CloudBees) that automatically builds and tests your code on every Git push.
Buddy
Buddy is a CI/CD automation platform focused on developer experience, featuring a visual pipeline builder and over 100 pre-built actions for Docker, Kubernetes, cloud deployments, and notifications.