I don't think programming ability is measured by the number of APIs/libraries one has committed to memory.
It's hard not to conclude that this is one axis in the multi-dimensional "ability" space.
Between a guy who needs to spend 5minutes googling for a class/module/function and someone who prompltly writes it down, there is no question who is a more capable programmer.
If I were to measure a programmer's ability, I.e., what makes a "good programmer", perhaps in the context of am interview, I would therefore not test rote knowledge.
that was the reality of programming before the internet