Simple API request, getNPCAtLocation(world, x, y, z); or getNPCSAtLocation(world, x, y, z); will return the NPC(S) at a location within the block of the location you defined.
Simple API request,
getNPCAtLocation(world, x, y, z);
or
getNPCSAtLocation(world, x, y, z);
will return the NPC(S) at a location within the block of the location you defined.