# Get All PIpelines by Org-slug and project-slug yields different results

**URL:** <https://discuss.circleci.com/t/get-all-pipelines-by-org-slug-and-project-slug-yields-different-results/41331>\
**Category:** API\
**Created:** [September 24, 2021, 1:38pm UTC](https://discuss.circleci.com/t/get-all-pipelines-by-org-slug-and-project-slug-yields-different-results/41331 "2021-09-24T13:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanimesa](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sanimesa/32/28199_2.png) [@sanimesa](https://discuss.circleci.com/u/sanimesa)\
**Post date:** [September 24, 2021, 1:38pm UTC](https://discuss.circleci.com/t/get-all-pipelines-by-org-slug-and-project-slug-yields-different-results/41331/1 "2021-09-24T13:38:00Z")

</div>

The List All Pipelines ([CircleCI API](https://circleci.com/docs/api/v2/#operation/listPipelines)) and GetAllPipelines for Project ([CircleCI API](https://circleci.com/docs/api/v2/#operation/listPipelinesForProject)) appears to be returning a very different set of results - the former returns about a couple of hundred while the latter many tens of thousands. Is this expected?

Additionally, is it possible to retrieve the pipelines by project by a date range? Do not see this in the API. Unless this is available, we will have to retrieve all the pipelines all the time which can be time consuming.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [September 29, 2021, 5:05pm UTC](https://discuss.circleci.com/t/get-all-pipelines-by-org-slug-and-project-slug-yields-different-results/41331/2 "2021-09-29T17:05:00Z")

</div>

Hi @sanimesa,

These are two separate endpoints, so indeed they have a different behaviour.

- [Get a list of pipelines](https://circleci.com/docs/api/v2/#operation/listPipelines) returns all pipelines for the **most recently built projects (max 250) you follow** in an organization

- [Get all pipelines](https://circleci.com/docs/api/v2/#operation/listPipelinesForProject) returns **all pipelines** for the project specified in the `project-slug` parameter.

Currently, it’s not possible to filter the response of either of the above endpoints via an API parameter. **However** , you could use a [command-line JSON processor like `jq`](https://stedolan.github.io/jq/) and some scripting to extract specific data.

If you’d like you can also [create a feature request](https://ideas.circleci.com/api-feature-requests) and describe your use-case.
