---
title: Examples of data retrieved via the REST service
related:
  - https://docs.kentico.com/13/integrating-3rd-party-systems/xperience-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**

```xml

<cms_countries>
    <cms_country>
        <CountryID>272</CountryID>
        <CountryDisplayName>Afghanistan</CountryDisplayName>
        <CountryName>Afghanistan</CountryName>
        <CountryGUID>12d61676-7541-4a4e-88f6-f02098b637fe</CountryGUID>
        <CountryLastModified>2013-10-21T14:20:12.293+02:00</CountryLastModified>
        <CountryTwoLetterCode>AF</CountryTwoLetterCode>
        <CountryThreeLetterCode>AFG</CountryThreeLetterCode>
    </cms_country>
    <cms_country>
        <CountryID>273</CountryID>
        <CountryDisplayName>Albania</CountryDisplayName>
        <CountryName>Albania</CountryName>
        <CountryGUID>af056090-4477-4826-ad41-7ce8e8d45d3a</CountryGUID>
        <CountryLastModified>2013-02-07T15:08:05.117+01:00</CountryLastModified>
        <CountryTwoLetterCode>AL</CountryTwoLetterCode>
        <CountryThreeLetterCode>ALB</CountryThreeLetterCode>
    </cms_country>

    ...

    <TotalRecords>
        <TotalRecords>246</TotalRecords>
    </TotalRecords>
</cms_countries>

```

## 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**

```js

{
"cms_countries": 
[
    {
    "cms_country": 
    [
        {
        "CountryGUID":"12d61676-7541-4a4e88f6-f02098b637fe",
        "CountryID":272,
        "CountryName":"Afghanistan",
        "CountryDisplayName":"Afghanistan",
        "CountryLastModified":"2013-10-21T14:20:12.293+02:00",
        "CountryTwoLetterCode":"AF",
        "CountryThreeLetterCode":"AFG"
        },
        {
        "CountryGUID":"af056090-4477-4826-ad41-7ce8e8d45d3a",
        "CountryID":273,
        "CountryName":"Albania",
        "CountryDisplayName":"Albania",
        "CountryLastModified":"2013-02-07T15:08:05.117+01:00",
        "CountryTwoLetterCode":"AL",
        "CountryThreeLetterCode":"ALB"
        },

        ...

    ]
    },
    {
    "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/13/examples-of-data-retrieved-via-the-rest-service/image2013-3-14+2.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/13/examples-of-data-retrieved-via-the-rest-service/image2013-3-14+1.png "Data retrieved via the Kentico REST service in Atom 1.0 format")
