title: CloudKit API with Python
body: <p>My iOS app uses CloudKit as it's backend. The app basically collects simple user info (name, company, email phone). </p>
  
  <p>I would like to export all this data from the cloudkit dashboard into a csv file so that I can then upload this data into a different database. </p>
  
  <p>I followed this: <a href="https://github.com/lionheart/requests-cloudkit" rel="nofollow">https://github.com/lionheart/requests-cloudkit</a> to authenticate my api. </p>
  
  <p>However, I cannot figure out how to query and get the records from my database. </p>
  
  <p>When I execute: </p>
  
  <pre><code>print cloudkit.public.zones.list()
  </code></pre>
  
  <p>It returns: </p>
  
  <pre><code>{u'zones': [{u'atomic': False, u'zoneID': {u'ownerRecordName': u'_17e6f384d00f4e11aeee6280a48f6724', u'zoneName': u'_defaultZone'}}]}
  </code></pre>
  
  <p>But, I want it to return all the record of recordtype "Establishment". </p>
  
  <p>Any help is much appreciated! </p>
  
  <p>Thanks! </p>