AI agents: the content index is at /llms.txt. Every page is also available as Markdown — send the request header Accept: text/markdown, or append .md to the page URL.
Xperience Docs

Cookie consent

We use necessary cookies (opens in a new tab) to run our website and improve your experience while browsing. Additional cookies are only used with your consent. You may revoke your consent on the Cookies Policy (opens in a new tab) page or in your browser at any time.

Configure (opens in a new tab)
  • Documentation
    InstallationUsing the Xperience interfaceDeveloping websitesConfiguring XperienceManaging usersSecuring websitesDeploying websitesManaging website contentMultilingual websitesMacro expressionsExternal utilitiesIntegrating 3rd party systemsCustom developmentE-commerce featuresOn-line marketing featuresRelease notes - Xperience 13Xperience terminology glossary
  • Tutorial
    Using the Xperience interfaceDeveloper tutorialBusiness tutorialResource hub for marketers
  • API Examples
    ConfigurationContent managementDevelopmentE-commerceOn-line marketingSocial media
  • Community Questions & Answers (opens in a new tab)
  • Contact support (opens in a new tab)
  1. Home
  2. Integrating 3rd party systems
  3. Xperience REST service
  4. Getting data using REST
  5. Examples of data retrieved via the REST service

Examples of data retrieved via the REST service


Was this page helpful?

Send us feedback Go back to top

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⁠ (opens in a new tab) 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⁠ (opens in a new tab) 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⁠ (opens in a new tab) format.

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

Atom 1.0

All cms.country objects retrieved in Atom 1.0⁠ (opens in a new tab) format.

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

On this page

  • XML
  • JSON
  • RSS 2.0
  • Atom 1.0

Related pages

  • Getting data using REST