How to combine two Wikipedia API calls into one?
<p>I'm making a call to a Wikipedia API which returns a Title, Shot-Text, Image and geo-cordinates of that location. My Wikipedia API is:</p>

<pre><code>https://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;prop=extracts|pageimages|coordinates&amp;titles=Berlin&amp;redirects=1&amp;formatversion=2&amp;exintro=1&amp;explaintext=1&amp;piprop=thumbnail&amp;pithumbsize=400
</code></pre>

<p>Also I'm using another Wikipedia API which returns a list of place names according to their geo-coordinates:</p>

<pre><code>https://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;list=geosearch&amp;gsradius=1000&amp;gscoord=52.5243700|13.4105300&amp;gslimit=50&amp;gsprop=type|dim|globe
</code></pre>

<p>For the second API I get a response like this:</p>

<pre><code>"query": {
    "geosearch": [
        {
            "pageid": 28782169,
            "ns": 0,
            "title": "1757 Berlin raid",
            "lat": 52.523405,
            "lon": 13.4114,
            "dist": 122.4,
            "primary": "",
            "type": null,
            "dim": 1000
        },
        {
            "pageid": 526195,
            "ns": 0,
            "title": "Scheunenviertel",
            "lat": 52.526111111111,
            "lon": 13.41,
            "dist": 196.9,
            "primary": "",
            "type": "landmark",
            "dim": 1000
        },
        ...
    ]
}
</code></pre>

<p>Now I want to combine these two searches in one API. I want to add information from my first API within the second API, something like as below:</p>

<pre><code>"query": {
    "geosearch": [
        {
            "pageid": 28782169,
            "ns": 0,
            "title": "1757 Berlin raid",
            "lat": 52.523405,
            "lon": 13.4114,
            "dist": 122.4,
            "primary": "",
            "type": null,
            "dim": 1000

            "pages": [
                {
                    "pageid": 28782169,
                    "ns": 0,
                    "title": "1757 Berlin raid",
                    "extract": "Berlin is the capital of Germany and one of the 16 states of Germany. With a population of 3.5 million people, it is the second most populous city proper and the seventh.........",
                    "thumbnail": {
                        "source": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Siegessaeule_Aussicht_10-13_img4_Tiergarten.jpg/400px-Siegessaeule_Aussicht_10-13_img4_Tiergarten.jpg",
                        "width": 400,
                        "height": 267
                    }
                }
            ]
        },
        ...
    ]
}
</code></pre>

<p>I want to know is it possible in this way?</p>