Wikipedia project: How to access pageid?

From what I can gather pageid will most likely be important info. I am trying to isolate it, but not having any luck. Here is the JSON for a request with the search word “coding”: {“batchcomplete”:"",“query”:{“normalized”:[{“from”:“coding”,“to”:“Coding”}],“pages”:{“40892”:{“pageid”:40892,“ns”:0,“title”:“Coding”}}}}

How would I go about isolating the pageid, or more specifically, JSON info in between “:{” ?

Is there a way in order to make this api call return multiple results? When I do this it only returns one.