1st step of wikipedia API function