I tried to use Rest API to get list items in Office 365, the list has 3 items in total.

When I visit the below URL:

http://sitename/_api/web/lists/getbytitle('List Name')/

It shows list information, but in the item count it has 0. These 3 items are there in the list for more than a week now. Rest API is working fine for other list items in the same site.


To get the list items using REST API you need to use the URL like below:

http://sitename/_api/web/lists/getbytitle('List Name')/items

To get the List Item Count using REST API you need to use:

http://sitename/_api/web/lists/getbytitle('List Name')?$select=ItemCount

Reference: Working with lists and list items with REST

  • Have you tried this? does this answers your question?? – Ganesh Sanap Aug 5 at 10:29

Should append items endpoint in the url, please check the official documentation as below:

enter image description here

Working with lists and list items with REST

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.