How to get items from Personal Microsoft Lists (Not Sharepoint Lists) using Graph REST API?

Rodriguez Jose 0 Reputation points
2024-01-03T20:36:07.7666667+00:00

I'm trying to query my personal Microsoft Lists with Microsoft Graph API without success.

My list is a Microsoft List located in https://lists.live.com/.

My list's URL shown in my browser is https://lists.live.com/?listId={list_id}_{user_id}

If I log into my personal microsoft account and I use the typical REST API endpoint in my browser address bar and hit ENTER in my keyboard, it yields the expected results in XML:

https://lists.live.com/personal/{user_id}/_api/Web/Lists(guid'{list_id}')/items

However, whenever I try to query this Microsoft List using Microsoft Graph Explorer, I get this result:

{
"error": {
    "code": "InternalServerError",
    "message": "Unable to find target address",
    "innerError": {
        "date": "2023-12-31T20:25:24",
        "request-id": {guid_1},
        "client-request-id": {guid_2}
    }
}

I've also gotten my Site Id with this endpoint typing it manually in the address bar and gotten results

https://lists.live.com/personal/{user_id}/_api/site/id

And then used that site id to try to at least get a pointer that I'm in the right direction in the Explorer

https://graph.microsoft.com/v1.0/sites/{site_id}/lists

But alas I get the below error.

{
    "error": {
        "code": "InternalServerError",
        "message": "Unable to find target address"
    }
}

I don't know how to get information from Microsoft Lists for personal accounts (not Sharepoint) using REST API, does anyone know how to do this?

 I've also found this end-point:

[https://lists.live.com/personal/{user_id}/_api/v2.0/sites/root/lists/{list_id}/items](https://lists.live.com/personal/%7Buser_id%7D/_api/v2.0/sites/root/lists/%7Blist_id%7D/items%60"lists.live.com"

Does anyone know how to query Microsoft lists ?

Or how to get an authorization token to use with personal lists?

Thanks

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft Security | Microsoft Graph
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.