API only returning 100 projects

jarod moser's Avatar

jarod moser

28 Jul, 2020 07:50 PM

I'm unable to get all projects, only the first 100 using the /api/projects endpoint. Is there anyway to increase the limit on the number of returned projects?

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Jul, 2020 09:40 PM

    Feodor Fitsner's Avatar

    Hi Jarod,

    Use paged API:

    GET https://ci.appveyor.com/api/account/{account}/projects/paged?pageIndex=1[&pageSize=N]
    

    Note, you can always see REST API requests on "Network" tab of your browser developer console. UI uses the same API.

  2. 2 Posted by jarod moser on 28 Jul, 2020 10:45 PM

    jarod moser's Avatar

    Thanks Feodor, I did find that paged method using the network tab, but didn't find the pageSize in there.

    is there a sortby parameter also? or some other parameters that aren't documented?

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Jul, 2020 11:02 PM

    Feodor Fitsner's Avatar

    They are sorted by date and, currently, there's no way to specify sort by.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac