Docs

Comments Export

To export your comments login to your Disqus Admin, then navigate to Tools -> Import/Export, and click Export.

Export Format (XML)

XML Schema Definitions are available for new-style exports. The current version can be viewed at http://disqus.com/api/schemas/1.0/disqus.xsd

Example output

<?xml version="1.0"?>
<disqus xmlns="http://disqus.com"
        xmlns:dsq="http://disqus.com/disqus-internals"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://disqus.com/api/schemas/1.0/disqus.xsd
                            http://disqus.com/api/schemas/1.0/internals.xsd"
>

<!--
  Categories must be declared at the top of a file. They only need declared once
  per site, and DISQUS will attempt to validate them against existing data if they
  are not present in the XML.

The `dsq` namespace is for internal usage by DISQUS and tends to hold things such
  as internal identifiers for objects.

- `title` must be unqiue per `forum`
  -->
  <category dsq:id="1">
    <forum>disqusdev</forum>
    <title>Technology</title>
  </category>

<!--
  Threads must be declared after categories, and before posts. They only need declared once
  per site, and DISQUS will attempt to validate them against existing data if they
  are not present in the XML.

The `dsq` namespace is for internal usage by DISQUS and tends to hold things such
  as internal identifiers for objects.

- `id` must be unqiue per `forum`
  -->
  <thread dsq:id="2">
    <id>1</id>
    <forum>disqusdev</forum>
    <category dsq:id="1"/>
    <link/>
    <title/>
    <message/>
    <createdAt>2012-12-12T12:12:12</createdAt>
    <author>
      <name>Baz</name>
      <email>foo@bar.com</email>
    </author>
  </thread>

<!--
  Posts must be declared in a standard tree order. Parents should always exist before
  they are referenced. DISQUS will attempt to validate them against existing data if
  they are not present in the XML.

The `dsq` namespace is for internal usage by DISQUS and tends to hold things such
  as internal identifiers for objects.

- `id` must be unqiue per `forum`
  -->
  <post dsq:id="1">
    <id>2</id>
    <message>Mother Russia</message>
    <thread>1</thread>
    <isSpam>true</isSpam>
    <createdAt>2012-12-12T12:12:12</createdAt>
    <ipAddress>127.0.0.1</ipAddress>
    <author>
      <name>Baz</name>
      <email>foo@bar.com</email>
    </author>
  </post>
  <post dsq:id="2">
    <id>1</id>
    <message>Yo dude</message>
    <parent dsq:id="1">2</parent>
    <thread>1</thread>
    <createdAt>2012-12-12T12:12:12</createdAt>
    <ipAddress>127.0.0.1</ipAddress>
    <author>
      <name>Baz</name>
      <email>foo@bar.com</email>
    </author>
  </post>
  <post>
    <id>3</id>
    <message/>
    <thread dsq:id="2"/>
    <createdAt>2012-12-12T12:12:12</createdAt>
    <ipAddress>127.0.0.1</ipAddress>
    <author>
      <name>Baz</name>
      <email>foo@bar.com</email>
    </author>
  </post>

</disqus>

Export Format (XML Old)

This format is deprecated and we suggest switching to the new-style XML exports

This format is highly based on version 3.0 of our API, and will give you nearly identical responses other than the fact that it is provided as XML rather than JSON. While this does follow standard XML notation, it does not follow a strict DTD. Backwards compatibility is maintained at the highest degree, however, it is possible that data may be added, changed, or even removed. Please keep this in mind when writing your import scripts.

Example output:

<?xml version='1.0' encoding='utf-8'?>
<disqus>
  <posts>
    <post>
      <isHighlighted>0</isHighlighted>
      <parent>1</parent>
      <isApproved>1</isApproved>
      <isFlagged>0</isFlagged>
      <link/>
      <message>"Happy little bush."</message>
      <id>4</id>
      <isDeleted>0</isDeleted>
      <isJuliaFlagged>1</isJuliaFlagged>
      <forum>bobross</forum>
      <thread>1</thread>
      <author>
        <name>Bob Ross</name>
        <url/>
        <profileUrl>http://disqus.com/guest/4b9bb80620f03eb3719e0a061c14283d/</profileUrl>
        <emailHash>4b9bb80620f03eb3719e0a061c14283d</emailHash>
        <avatar>
          <cached>http://www.gravatar.com/avatar.php?gravatar_id=4b9bb80620f03eb3719e0a061c14283d&size=32&default=http://dev.disqus.org:8000/media/images/noavatar32.png</cached>
          <permalink>http://www.gravatar.com/avatar.php?gravatar_id=4b9bb80620f03eb3719e0a061c14283d&size=32&default=http://dev.disqus.org:8000/media/images/noavatar32.png</permalink>
        </avatar>
        <anonymous>1</anonymous>
      </author>
      <isSpam>0</isSpam>
      <points/>
      <createdAt>2008-06-09 21:45:27</createdAt>
    </post>
  </posts>
</disqus>

Posted In Developers Last updated Feb. 15, 2012