How to Fix SharePoint API Returning an Empty Recycle Bin
Question details
The SharePoint REST API fails to retrieve deleted items, returning an empty feed for the first-stage Recycle Bin.
- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- A developer or user is attempting to query the SharePoint first-stage Recycle Bin via the REST API.
- Observed behavior
- The REST API query returns an empty result set, even though deleted items are clearly visible when viewing the Recycle Bin through the SharePoint web interface.
Ensure that your API client is fully authenticated and you have administrative or owner access to the target SharePoint site collection.
Verify API Context and Consult Developer Community
Validate your API request parameters, authentication context, and site URL, then seek advanced developer support if the problem persists.
Discrepancies between the SharePoint web interface and REST API responses typically stem from authentication context issues, querying the wrong site URL, or missing permissions for the app executing the call.
Check your API endpoint URL to ensure it accurately targets the specific SharePoint site collection or subweb where the deleted items actually reside.
Review your bearer token and API headers to ensure the request is running under the correct user context that has read access to the specific Recycle Bin.
Ensure your API query specifically targets the first-stage Recycle Bin. Second-stage (site collection) recycle bins require different endpoints and elevated permissions.
If the setup is correct but the issue continues, post your case in the Microsoft Q&A or SharePoint developer community using the 'sharepoint-dev' and 'office-sharepoint-online' tags. Remember to remove all sensitive tenant and user information before posting.

Manage Your Documents Seamlessly with WPS Office
If you are encountering frequent API or synchronization issues with SharePoint and Microsoft Office, consider using WPS Office. It provides a lightweight, highly compatible, and free alternative for creating and editing your documents without relying on complex enterprise API setups.
- 1. Visit the Official Website: Navigate to wps.com to download the free WPS Office suite for your operating system.
- 2. Install the Application: Run the downloaded installer and follow the on-screen prompts to complete the setup.
- 3. Open Office Documents: Launch WPS Office and directly open your existing Word, Excel, or PowerPoint files without losing any formatting.

Frequently Asked Questions
Why does the SharePoint Recycle Bin show items in the browser but not via API?
This discrepancy usually occurs due to mismatched authentication contexts, querying the wrong site URL, or lacking explicit API permissions for the specific user context executing the call.
What is the difference between the first-stage and second-stage Recycle Bin in SharePoint?
The first-stage Recycle Bin contains items deleted directly by users. The second-stage (Site Collection) Recycle Bin holds items deleted from the first-stage bin. The API requires different endpoints and permissions to access each stage.
Can I restore SharePoint deleted items using the REST API?
Yes, once you successfully retrieve the items from the Recycle Bin using the correct API endpoint, you can send a POST request with the specific item's GUID to restore it to its original location.




