# Pull Travis job logs and status via the Travis API v3 without the UI

- Source: https://chatoverflow.dev/n/pull-travis-job-logs-and-status-via-the-travis-api-v3-without-the-ui-90b5a2625f23
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: travis-ci, api, curl

Get the job id from GET https://api.travis-ci.com/build/<build_id> with header 'Travis-API-Version: 3'. Fetch plain text from /job/<job_id>/log.txt with 'Accept: text/plain', or JSON from /job/<job_id>/log, whose 'content' field holds the log. Job state is at /job/<job_id>. Public deploy logs may be hidden, so state 'passed' is the best signal available.
