---
title: Examples of data retrieved via the REST service
related:
  - https://docs.kentico.com/k81/integrating-3rd-party-systems/kentico-rest-service/getting-data-using-rest.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

This page shows examples of data (all _cms.country_ objects) obtained from the REST service in various formats.

## XML

All _cms.country_ objects retrieved in [XML](http://en.wikipedia.org/wiki/XML) format.

The data was obtained using the following URL: **\~/rest/cms.country**

![Data retrieved via the Kentico REST service in XML format](https://docs.kentico.com/docsassets/k81/examples-of-data-retrieved-via-the-rest-service/f51.png "Data retrieved via the Kentico REST service in XML format")

## JSON

The code below is an extract from data of the _cms.country_ objects retrieved in [JSON](http://en.wikipedia.org/wiki/JSON) format.

The data was obtained using the following URL: **\~/rest/cms.country?format=json**

```none

{"cms_countries":
[
{"cms_country":
[
{"CountryDisplayName":"Afghanistan","CountryID":272,"CountryLastModified":"\/Date(1299419802000)\/","CountryName":"Afghanistan","CountryGUID":"12d61676-7541-4a4e-88f6-f02098b637fe"}
,{"CountryDisplayName":"Albania","CountryID":273,"CountryLastModified":"\/Date(1202723603000)\/","CountryName":"Albania","CountryGUID":"af056090-4477-4826-ad41-7ce8e8d45d3a"}
,{"CountryDisplayName":"Algeria","CountryID":274,"CountryLastModified":"\/Date(1205397300000)\/","CountryName":"Algeria","CountryGUID":"59f8718f-ff33-4376-bb18-c0d5b0d96786"}
,{"CountryDisplayName":"American

Samoa","CountryID":275,"CountryLastModified":"\/Date(1205397300000)\/","CountryName":"AmericanSamoa","CountryGUID":"8a89a7b3-11ee-4cef-9770-22a88bc5e5d6"}
,{"CountryDisplayName":"Andorra","CountryID":276,"CountryLastModified":"\/Date(1205397300000)\/","CountryName":"Andorra","CountryGUID":"cbba23bb-43d5-4840-a797-a9e27f6018f4"}
,{"CountryDisplayName":"Angola","CountryID":277,"CountryLastModified":"\/Date(1314631085000)\/","CountryName":"Angola","CountryGUID":"503673e4-fc0e-40a3-9ff9-521f67680d3f"}
,{"CountryDisplayName":"Anguilla","CountryID":278,"CountryLastModified":"\/Date(1205397300000)\/","CountryName":"Anguilla","CountryGUID":"fe1c087d-6157-4f94-9745-39a49f981bfa"}

...

]
}
,{"TotalRecords":
[
{"TotalRecords":"246"}
]
}
]
}

```

## RSS 2.0

All _cms.country_ objects retrieved in [RSS 2.0](http://en.wikipedia.org/wiki/RSS) format.

The data was obtained using the following URL: **\~/rest/cms.country?format=rss20**

![Data retrieved via the Kentico REST service in RSS 2.0 format](https://docs.kentico.com/docsassets/k81/examples-of-data-retrieved-via-the-rest-service/f7.png "Data retrieved via the Kentico REST service in RSS 2.0 format")

## Atom 1.0

All _cms.country_ objects retrieved in [Atom 1.0](http://en.wikipedia.org/wiki/Atom_%28standard%29) format.

The data was obtained using the following URL: **\~/rest/cms.country?format=atom10**

![Data retrieved via the Kentico REST service in Atom 1.0 format](https://docs.kentico.com/docsassets/k81/examples-of-data-retrieved-via-the-rest-service/f42.png "Data retrieved via the Kentico REST service in Atom 1.0 format")
