                     do {
                         var mediaRefs = [MediaRef]()
                         
-                        if let responseJSON = try JSONSerialization.jsonObject(with: data, options: []) as? [[String:Any]] {
-                            for item in responseJSON {
-                                let mediaRef = MediaRef()
-                                mediaRef.title = item["title"] as? String
-                                mediaRef.startTime = item["startTime"] as? Int
-                                mediaRef.endTime = item["endTime"] as? Int
-                                mediaRef.episodeTitle = item["episodeTitle"] as? String
-                                mediaRef.episodeMediaUrl = item["episodeMediaUrl"] as? String
-                                mediaRef.podcastTitle = item["podcastTitle"] as? String
-                                mediaRef.podcastFeedUrl = item["podcastFeedUrl"] as? String
-                                mediaRefs.append(mediaRef)
+                        if let responseJSON = try JSONSerialization.jsonObject(with: data, options: []) as? [String:Any] {
+                            if let clips = responseJSON["data"] as? [[String:Any]] {
+                                for item in clips {
+                                    let mediaRef = MediaRef()
+                                    mediaRef.title = item["title"] as? String
+                                    mediaRef.startTime = item["startTime"] as? Int
+                                    mediaRef.endTime = item["endTime"] as? Int
+                                    mediaRef.episodeTitle = item["episodeTitle"] as? String
+                                    mediaRef.episodeMediaUrl = item["episodeMediaUrl"] as? String
+                                    mediaRef.podcastTitle = item["podcastTitle"] as? String
+                                    mediaRef.podcastFeedUrl = item["podcastFeedUrl"] as? String
+                                    mediaRefs.append(mediaRef)
+                                }
                             }
                         }
                         

    var podcastTitle:String?
    var podcastFeedUrl:String?
    
    static func retrieveMediaRefsFromServer(episodeMediaUrl: String?, podcastFeedUrl: String?, completion: @escaping (_ mediaRefs:[MediaRef]?) -> Void) {
        if let url = URL(string: "https://podverse.fm/api/clips") {
            var request = URLRequest(url: url, cachePolicy: NSURLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 60)
            request.httpMethod = "POST"
            
            
            var postString:String?
            

            }
            
            let task = URLSession.shared.dataTask(with: request) { data, response, error in

                guard error == nil else {
                    return
                }
                
