I probably should have explained myself a bit better, we a trying to default the parameters of a locked library part with an API, we can get the variables through the the subtype menu but it is a bit hit & miss linking it to the parameter name. From what I am seeing the request functions you suggested using will give me the values of the parameter name, unless I am missing something.
It will give you the parameter name if you know the index, and it will give you the index if you know the name.
It will also give you other information such as parameter type, value and description.
The example I linked to uses a range of index numbers to list all of the parameter names for those numbers.
1 = A (length)
2 = B (width)
3 = ZZYZX (height)
I believe the index number is just the order that they are in the parameter list.
So if you know the position of the parameter in the list, you can use its index number to get the parameter name (and value, description, etc.).
But if you are trying to do this by API then you will need to ask in the Developer section of Archicad Talk.