The GDELT Project

Embed This Map!

Announcing GDELT Geographic News Search!

Earlier today we debuted the new GDELT Geographic News Search service, which allows you to interactively map the people, organizations, GDELT Themes, news outlets, and languages of the world's news media in 65 languages!

Did you know that you can actually embed these maps on your own website?  That's right, by just copy-pasting a single line of HTML into your website, you can embed a live map, updated every hour, of worldwide news coverage! To do so, first go to the Geographic News Search website and try different searches until you find a query that returns the kind of results you want.  Then paste the full URL you see in the address bar of your browser into the HTML code below where it says "PASTETHEURLHERE" and then copy the piece of code below into your own web page (if you are using a blogging platform like WordPress you will need to switch to "Text" editing mode to embed HTML code in your post).

<iframe src="PASTETHEURLHERE" width="100%" height="520" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

You can also customize the appearance of your map by adding several optional configuration parameters to the end of the URL:

 

Putting this all together, let's say you run a search for "lang:Portuguese" to search for all locations mentioned in Portuguese-language news coverage.  In the URL bar of your browser you should see "http://gns.gdeltproject.org/?QUERY=lang:Portuguese".  Let's say you also want to disable scrollwheel zooming ("&SCROLLWHEEL=false"), disable the search box ("&DISABLESEARCHBOX=true") and force the map to use the mobile-optimized layout even for desktop browsers ("&FORCEMOBILE=true").  You would add each of these on to the end of the URL, resulting in a final URL of "http://gns.gdeltproject.org/?QUERY=lang:Portuguese&SCROLLWHEEL=false&DISABLESEARCHBOX=true&FORCEMOBILE=true".  You would copy-paste this into the code snippet above to yield the following code, which you would then paste into your web page:

<iframe src="http://gns.gdeltproject.org/?QUERY=lang:Portuguese&SCROLLWHEEL=false&DISABLESEARCHBOX=true&FORCEMOBILE=true" width="100%" height="520" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

The resulting map should look like:

Congratulations, you have just embedded a map of the latest worldwide geography of the Portuguese-language news media!  Alternatively, to make an embedded map of BBC's latest global coverage:

<iframe src="http://gns.gdeltproject.org/?QUERY=domain:bbc.co.uk&SCROLLWHEEL=false&DISABLESEARCHBOX=true&FORCEMOBILE=true" width="100%" height="520" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

The resulting map should look like:

Congratulations, you just made an instant geographic search interface to the BBC's news coverage!  Without writing a single line of code you literally embedded a map in your web page that updates every hour and offers a clickable interactive geographic navigation interface to the BBC!

Finally, you can, of course, embed maps of topics as well!  To embed a map of global discussion of the GDELT Theme "REFUGEES":

<iframe src="http://gns.gdeltproject.org/?QUERY=REFUGEES&SCROLLWHEEL=false&DISABLESEARCHBOX=true&FORCEMOBILE=true" width="100%" height="520" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

The resulting map should look like:

See our examples of embedding maps of public figures in our last blog post on Exploring the 2016 US Presidential Campaign Through GDELT.

We can't wait to see what you're able to do with this incredible new capability!