Exporting ticket, user, or organization data from your account

Return to top

51 Comments

  • Yevgen Lasman

    I have exported tickets data into JSON using UI and set start date 1/1/2019. Now I am looking at the export result and see that the very first record "created_at" is from 2017-something. Can someone clarify how exactly the data range is being used in the UI export?

    0
  • Pedro Reis

    The satisfaction score is included on the export, but not the rating date, any chance this can be included? Or Am I missing something?

    Is it possible to extract a .csv with that information from explorer?

    Also, custom fields are exported via .CSV and that's great.

    1
  • Eric Gao
    Zendesk Customer Care

    Hi Yevgen,

    The JSON export uses the last updated timestamp rather than the ticket creation timestamp. This means that it's pulling all tickets that have beenupdatedsince 1/1/2019 and hence it's possible for you to see tickets that were created prior to that date.

    This is mentioned in the "Understanding the data export options" section as well:https://support.亚博zendesk.com/hc/en-us/articles/203662346-Exporting-data-to-a-JSON-CSV-or-XML-file#topic_lnw_tfb_sfb

    Warm Regards,
    Eric

    Eric G. Gao | Technical Support Architect | Zendesk

    0
  • S Franke

    Hi,

    I'll admit I didn't look for my question/answer through all of the comments but I did look through a lot.

    Using the JSON user export, is it possible to get all of the users' identities or only the primary? In my case email address. If I want all of the email addresses, do I need to use the Rest APIs? I don't see the non-primary emails anywhere in the export.

    - Scott

    0
  • PAUL STRAUSS

    Is there any way to export Public Replies and Internal Notes from all of our tickets? We want to do a pattern analysis of the content in free-form text to see if there are patterns of specific words or needs that come up frequently in our tickets.

    1
  • Brandon Tidd
    User Group Leader Community Moderator
    The Humblident Award - 2021

    Hi@...-

    You should be able to do this through theTicket Comments API.

    Alternatively, there are a few apps in the marketplace that can handle this, such asthis one.

    Hope this helps!

    Brandon

    0
  • Amy Dee
    Zendesk Customer Care

    Hi pstrauss! The Tickets JSON export described in this article also includes ticket comments. Each comment includes its full text and whether it's public or private. It's very similar to the information you'd get from the Ticket Comments API.

    Since tickets and comments can get quite large, I usually recommend smaller JSON exports. You can use the date range tools to limit the size for each file. You'll also need to use a text editor to adjust the formatting slightly, so the file as a whole can be viewed as JSON. (Each exported ticket has proper JSON formatting, but they aren't grouped together in the file.)

    If the Tickets JSON export doesn't quite meet your needs, then the marketplace apps and API endpoint Brandon provided could give you more options.

    I hope this helps!

    0
  • PAUL STRAUSS

    Thanks@...and@...- this is very helpful. I'll go ahead and request that exports be activated on our account and see if the JSON file works for us before diving into the API or 3rd-party app approach.

    0
  • Tom Mililli

    我有职业plan (sell and support) and new to zendesk. I would like to backup the data from both sell and support daily at a min.

    From what I have read thus far, the only way to achieve a "backup" is by exporting the data? If this is correct, can the export be automated. If so, please provide guidance and assistance.

    On the other hand, if this isn't the only way, please advise on all alternative methods

    Thanks

    0
  • Bom Proapp

    For Full JSON export, what's the From and To date condition? Is it used to filter by "created_at" or "updated_at" or anything else? I want to export the ticket which are created in the specific period but the result I get from the json is not what I expect.

    0
  • Amy Dee
    Zendesk Customer Care

    @...- The date range filter is based on the "generated" timestamp. It's the most recent update of any kind, which may not match a ticket's "created_at" or "updated_at" timestamp. It follows the same behavior as time-based incremental API calls. We have more information here:Excluding system-updated tickets.

    @...- There are export tools in the UI that would allow you to back up your data. The article above describes the options in Support, and this article describes the options for Sell:Exporting data from Zendesk Sell. These are manual options, though. You can't automate the system export tools.

    If you want to set up an automated export, you'd need to look into the API. On the Support side, I recommend theIncremental API. That allows you to pull all records that have been updated since the starting point (using the "generated" timestamp I mentioned before). On the Sell side, you could check the Sync or Firehose options inSell's API documentation.

    I hope this helps!

    0
  • Jonathan Molina

    Hi all,

    I'm trying to export the Group name assigned to the Organizations on our support account, but in the JSON export the group is shown as an ID rather than the name.

    Also this information does not appear in Explore, because it shows the current group assigned to a ticket, but not the general group. I'm talking about the field shown in green in the screenshot.

    Aybody knows how to export that data for all of our organizations?

    1
  • Amy Dee
    Zendesk Customer Care

    Hi@...! You are correct; that property isn't available in Explore at this time. The JSON export is probably the best resource for finding the groups associated with organizations.

    Since the JSON export returns an ID rather than a name, you'll need a second resource to connect names with IDs. I recommend theList Groups API. It's a relatively simple GET call tohttps://SUBDOMAIN.zendesk.com/api/v2/groups(you can even access it in a browser as long as you're logged into your account).

    The List Groups API includes each group's ID and name, so you can use it as a reference.

    I hope this helps!

    1
  • Jonathan Molina

    Thanks@...works great!

    0
  • Tito Loureiro

    Are we able to export articles on guide ,from Zendesk?

    0
  • Brett Bowser
    Zendesk Community Manager

    Hey Tito,

    You can use theGuide APIto export your articles or you can use thekBackupapp within our App Marketplace.

    I hope this helps!

    0
  • CJ Johnson

    I don't actually see any way to use the API to export ticket audits with parameters like tags or specific forms. Can this be clarified? How is this achievable?

    0
  • Amy Dee
    Zendesk Customer Care

    Hi CJ! This article covers the native export options for Zendesk data. The Tickets JSON export is the most thorough of the bunch -- it includes the ticket in its current state (including tags, field values, and the form), details about all associated users, metric data, and the full comment history. It's a great resource for ticket data, but it doesn't get into individual ticket audits.

    If you're interested in ticket audits, you have a couple broad options.

    TheTicket Audits APIshows the full audit history for a ticket. It includes every change to the ticket, including metadata for each update, all field changes, all comment text, etc. It's a complete picture, but it only supports one ticket at a time. This option is helpful if you've identified a subset of tickets (through search or some other resource), and you need to pull detailed information for that list of ticket IDs. It's not efficient for large or ongoing exports.

    For large or ongoing exports that include ticket audits, I recommend theIncremental Ticket Events API. The incremental endpoints are designed to deliver lots of raw data as efficiently as possible. The ticket events endpoint returns each event on its own, complete with all changes and metadata. (You have to include the comment_eventsside-loadif you want comment text as well.) This allows you to pull all ticket events in bulk, but you need to reassemble them into tickets separately.

    I hope this helps!

    1
  • Christian Greiner

    i dont see the reports in the list

    its just not there

    Click theAdminicon () in the sidebar, then selectManage > Reports.

    0
  • Amy Dee
    Zendesk Customer Care

    Hi Chris! This likely means one of two things:

    Exports have not been enabled. Exports are disabled by default. If they haven't yet been enabled in your account, the account owner will need to contact the support team.

    There are domain restrictions on the export tools. The account owner can always reach the export page (once it's enabled), but they have the option to limit who else can access it. Only account administrators with a matching email domain will see it.

    If you're an administrator on your account and you don't see the export options, check in with the account owner andreach out to Customer Supportif needed.

    I hope this helps!

    0
  • Kat

    We have export abilities turned on but I can only see the option to export in CSV or XML, even after limiting dates to one month. Any ideas why I can't see the JSON option?

    0
  • Amy Dee
    Zendesk Customer Care

    Hi Kat! The CSV and XML exports do not use date filters. They always return the full account history. If you see date filters, you should have the JSON export. Here's what it looks like:

    The date filters, type, and Export button are all part of the "Full JSON export" just above. Once you complete some exports, you'll see them listed above the filters as well:

    If this is what you see, click the Export button and wait for an email notification. You should get a JSON export. If this isn't what you see, or you get something other than a JSON export, pleasereach out to our Support teamto investigate further.

    I hope this helps!

    0
  • Sarah Owens

    Hello,
    Is it possible to export tickets using specific criteria, for instance, if I want to export tickets with a particular tag.
    Best,
    Sarah

    0
  • CJ Johnson

    Hi Sarah,
    这取决于你说的出口的门票。If you don't need every single comment, just the first message and ticket fields, it's possible, but it's trickier than the built in methods. You can do this using the Search API. Now, the good news is, you can do this without being a coder!

    Here's what you want to do, in my example, we're gonna pretend the tag you want is "closed_by_merge".
    1. replace the domain with your zendesk domain, and put this in your browser;https://domain.zendesk.com/api/v2/search/export.json?filter[type]=ticket&query=tags:closed_by_merge
    2. You should see a JSON output of code. To convert that to CSV, run it through something likehttps://konklone.io/json/.
    3. Be sure to get all pages! At the bottom of the page of code displayed, you'll see a link like:

    https://domain.zendesk.com/api/v2/search/export.json?filter%5Btype%5D=ticket&page%5Bafter%5D=eyJmaWVsZCI6ImNyZWF0ZWRfYXQiLCJkZXNjIjp0cnHHeJhJ0aWVCcmVha0ZpZWxkIjoiaWQiLCJ0aWVCcmVha0Rlc2MiOmZhbHNlLCJzb3J0VmFsdWVzIjpbMTY0NzQ1MzMxMDAwMCw0ODMzMzA3ODIyMjI4XSwiZXhwb3J0ZWRUaHVzRmFyIjoxMDAsInNlc3Npb25TdGFydCI6MTY0NzUzMDIxNTA5OSwiY3JlYXRlZEF0IjoxNjQ3NTMwMjE1MTYxLCJzYWx0ZWRSZXF1ZXN0SGFzaCI6LTQ2Mzk0OTg1Mywic2FsdGVkQ3Vyc29ySGFzaCI6LTE5MjM1NzU2N30%3D&query=tags%3Aclosed_by_merge"}}

    You need to copy and follow that link to get to page 2. Continue until you get a NULL/blank next page.

    If you want to get fancy with this, there's guides out there on how to write Python scripts to run your search, decided what columns to collect, collect all the pages, and format it into a CSV, as well. This can be really helpful if you have thousands of results and don't want to download and convert your results page by page, and want to limit the columns in the CSV to the things you actually want/need.

    4
  • Dave Dyson
    Thanks for sharing your solution, CJ!


    1
  • Sarah Owens

    Thank you, CJ Thank you, Dave I really appreciate your help.
    Best,
    Sarah

    0
  • Marco

    Here.. it is stated that the JSON exported list is NOT a valid JSON object...

    ... and I totally agree. In fact, I always need to use an editor to add a prefix `[` and suffix `]` and a comma after each new-line, in order to properly parse the list (eg. in python). Very annoying...

    So, the question arises:Why don't you export as a proper formatted JSON array?I think this should be considered a bug more than a limitation or a works-by-design. It does not make sense to provide me with a sequence of json objects without commas and enclosing brackets!

    2
  • Pierce Brachmann

    Hello Zendesk Support,

    I see we can pull lots of ticket data but is there any way to pull macros via this method?

    1
  • Dave Dyson
    Hi Pierce,

    Welcome to the community! There's not a built-in way to export macros, although it's possible to retrieve macro information via our API:Macros

    There are some (paid) third-party apps that can be used to export Macro data (among other things):Apps Marketplace
    0
  • 支持管理

    Is this article still accurate? I don't see anything like this in my instance. Yes I can go to Account and Reports, but I have to create a Report first with limited settings, and then I can export, but only to CSV and XML, no JSON.

    We are on Suite Growth, BTW

    0

Pleasesign into leave a comment.

Powered by Zendesk