            
            guard let query = jsonDictionary["query"] as? JSONDictionary else {
                DispatchQueue.main.async {
                    // There is no query but also no error message if nothing is found.
                    completion (nil, .notFound)
                }
                return
            }
            
            guard let pages = query["pages"] as? [JSONDictionary] else {