Hi @Yichen Name
Please refer to following rest api to retrieve users have permission to the item.
Retrieve Role Assignments for a list:
/_api/web/lists/getbytitle('list title')/roleassignments?$expand=Member/users,RoleDefinitionBindings
Retrieve Role Assignments for a listitem:
/_api/web/lists/getbytitle('list title')/items(id)/roleassignments?$expand=Member/users,RoleDefinitionBindings
Check if site/list/listitem has a unique permission:
/_api/web/HasUniqueRoleAssignments
/_api/web/lists/getbytitle('list title')/HasUniqueRoleAssignments
/_api/web/lists/getbytitle('list title')/items(id)/HasUniqueRoleAssignments
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.