# API Slowness

**URL:** <https://discuss.circleci.com/t/api-slowness/28210>\
**Category:** Integrations and Accounts\
**Created:** [February 6, 2019, 3:40pm UTC](https://discuss.circleci.com/t/api-slowness/28210 "2019-02-06T15:40:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thejjj](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@thejjj](https://discuss.circleci.com/u/thejjj)\
**Post date:** [February 6, 2019, 3:40pm UTC](https://discuss.circleci.com/t/api-slowness/28210/1 "2019-02-06T15:40:54Z")

</div>

An API request to a specific build\_id for our project can take anywhere from 1-10 seconds (seems to be pretty uniformly distributed). I’ve noticed a huge `circle_yml` field in the response, which is several 10s of KBs. I’m only interested in the output logs for each step, is there any better way to fetch these with the API?

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drazisil/32/24029_2.png) [@drazisil](https://discuss.circleci.com/u/drazisil)\
**Post date:** [February 7, 2019, 5:47pm UTC](https://discuss.circleci.com/t/api-slowness/28210/2 "2019-02-07T17:47:03Z")

</div>

Hello,

It’s unsupported and may change in the future, but you can use the endpoint we use to display the logs to the frontend.

`https://circleci.com/api/v1.1/project/:vcs-type/:org/:project/:build_id/output/:step_number/:container_number?circle-token=<user_token>`

The step numbers start at 100 for 2.0 jobs

---

<div class="post-metadata">

**Author:** ![thejjj](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@thejjj](https://discuss.circleci.com/u/thejjj)\
**Post date:** [February 13, 2019, 10:32pm UTC](https://discuss.circleci.com/t/api-slowness/28210/3 "2019-02-13T22:32:10Z")

</div>

Is there anything like this that doesn’t use the container number? The context is I’m trying to get information about all the build steps and the corresponding S3 log URLs, but the only info available for each job is the vcs, org, project, build number.

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drazisil/32/24029_2.png) [@drazisil](https://discuss.circleci.com/u/drazisil)\
**Post date:** [February 13, 2019, 11:03pm UTC](https://discuss.circleci.com/t/api-slowness/28210/4 "2019-02-13T23:03:15Z")

</div>

Ah, sorry to be confusing. The container number is `0` in all cases unless you are using parallelism, in which case it starts at `0` and goes up to how ever many containers you are using for that job.

Does that make it easier?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [February 23, 2019, 11:03pm UTC](https://discuss.circleci.com/t/api-slowness/28210/5 "2019-02-23T23:03:19Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
