# Get a link to specific artifact from the latest build

**URL:** <https://discuss.circleci.com/t/get-a-link-to-specific-artifact-from-the-latest-build/30694>\
**Category:** Bug Reports\
**Created:** [June 4, 2019, 1:04am UTC](https://discuss.circleci.com/t/get-a-link-to-specific-artifact-from-the-latest-build/30694 "2019-06-04T01:04:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OlegSomov](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@OlegSomov](https://discuss.circleci.com/u/OlegSomov)\
**Post date:** [June 4, 2019, 1:04am UTC](https://discuss.circleci.com/t/get-a-link-to-specific-artifact-from-the-latest-build/30694/1 "2019-06-04T01:04:49Z")

</div>

Hey there,

I found this post that explains how to get all the artifacts from the build. [HERE](https://discuss.circleci.com/t/referencing-latest-build-artifacts/931/23)

Then it was pretty easy to figure out how to get specific file out of it:  
`https://circleci.com/api/v1.1/project/github/<project name>/<repo name>/latest/artifacts/0/<path_to_artifact>/<name_of_the_artifact>?circle-token=<my_token>`

That redirects to a link of the artifact. But if user is not logged in to the circle CI, the will just show “must be logged in”

The idea is to put a link to the latest successful build artifact, something like a coverage report or docs in the README file of the repo.

Is there any way to make it work?

---

<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:** [June 5, 2019, 1:34pm UTC](https://discuss.circleci.com/t/get-a-link-to-specific-artifact-from-the-latest-build/30694/2 "2019-06-05T13:34:42Z")

</div>

Hello, and welcome!

We have a feature request for this here [https://ideas.circleci.com/ideas/CCI-I-228](https://ideas.circleci.com/ideas/CCI-I-228)

There’s also this third-party project that might give you some ideas, but I don’t think it’s been updated for API v1.1, so may need to change the API calls a bit [https://github.com/jokester/cart](https://github.com/jokester/cart)

---

<div class="post-metadata">

**Author:** ![HolimaX](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/holimax/32/29467_2.png) [@HolimaX](https://discuss.circleci.com/u/HolimaX)\
**Post date:** [February 22, 2022, 10:39am UTC](https://discuss.circleci.com/t/get-a-link-to-specific-artifact-from-the-latest-build/30694/3 "2022-02-22T10:39:47Z")

</div>

Any change to get complete sample for specific artifact download from CircleCI 2.x ?

Also, here is some Gist with Shell script: [Download CircleCI Artifacts with directory structure · GitHub](https://gist.github.com/mipaca/f5e5c95ae92f3ba8ce0534731ceed81b)
