I am fetching users from User information list and showing on the page, however, it fetches all the users and some all the group. I can I filter it for users only not for the group?
From my testing it seems you can filter on the ContentTypeId which corresponds to the "Person" content type. Groups are listed under the "SharePointGroup" content type. Use the below to pull only users from the User Information List:
?$filter=ContentTypeId eq '0x010A0064371926825B4B4D959C7FEE68507C0C'
Hope this helps!