endoflife.date json API examples

Are you looking for working API examples for the website endoflife.date to work with WordPress, then look no further.

Firstly you will need to install a plugin called “JSON content importer” by Bernhard Kux once installed you can use the following examples i use on my website.

This first example pulls end of life dates for Windows (code below) into a nice looking table.

<table>
<tr>
<th>Version
<th>Build
<th>Released
<th>Home &amp; Pro EOL
<th>Enterprise / Education EOL
</tr>
[jsoncontentimporter url="https://endoflife.date/api/windows.json"]
<!-- add debugmode=10 to above for debugging -->
<tr>
<td>{cycle}
<td>{cycleShortHand}
<td>{release}
<td>{support}
<td>{eol}
</tr>
[/jsoncontentimporter]
</table>
<br><br>

In this next example it pulls Android versions and EOL details.

<table>
<tr>
<th>Version No
<th>Version Name
<th>Released
<th>EOL
</tr>
[jsoncontentimporter url="https://endoflife.date/api/android.json"]
<tr>
<td>{cycle}
<td>{codename}
<td>{release}
<td>{eol}
</tr>
[/jsoncontentimporter]
</table>
<br><br>

Don’t forget to add something like “Data provided by endoflife.date” at the end of your pull.

If you have any comments about any of the above please fill in our form on the support page.