# How can I get more data via API

**URL:** <https://community.codecov.com/t/how-can-i-get-more-data-via-api/2302>\
**Category:** Support\
**Created:** [November 12, 2020, 12:25pm UTC](https://community.codecov.com/t/how-can-i-get-more-data-via-api/2302 "2020-11-12T12:25:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fansi404](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fansi404/32/1382_2.png) [@fansi404](https://community.codecov.com/u/fansi404)\
**Post date:** [November 12, 2020, 12:25pm UTC](https://community.codecov.com/t/how-can-i-get-more-data-via-api/2302/1 "2020-11-12T12:25:35Z")

</div>

### Description

> curl [https://codecov.io/api/gh/qiniu/goc/branch/master](https://codecov.io/api/gh/qiniu/goc/branch/master)

Command above can only get 6 commits merged into branch master. I try with the limit and page option as below, but it doesn’t work. How can I get more commits info in master branch?

> curl [https://codecov.io/api/gh/qiniu/goc/branch/master?limit=200](https://codecov.io/api/gh/qiniu/goc/branch/master?limit=200)  
> curl [Write comment, get tests: AI Test Generation is now in your PR. - Codecov](https://codecov.io/api/gh/qiniu/goc/branch/master?page=2)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [November 12, 2020, 6:25pm UTC](https://community.codecov.com/t/how-can-i-get-more-data-via-api/2302/2 "2020-11-12T18:25:52Z")

</div>

@fansi404, you are looking for `https://codecov.io/api/gh/qiniu/goc/branch/master/commits?page=1&limit=100`

---

<div class="post-metadata">

**Author:** ![fansi404](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fansi404/32/1382_2.png) [@fansi404](https://community.codecov.com/u/fansi404)\
**Post date:** [November 13, 2020, 2:16am UTC](https://community.codecov.com/t/how-can-i-get-more-data-via-api/2302/3 "2020-11-13T02:16:45Z")

</div>

> [@tom](#):
>
> [https://codecov.io/api/gh/qiniu/goc/branch/master/commits?page=1&limit=100](https://codecov.io/api/gh/qiniu/goc/branch/master/commits?page=1&limit=100)

Thanks for your reply. @tom
