Getting the road surface from Openstreetmaps using osmnx in Python

Hi ,
I would like to retrieve the road surface given latitude and longitude using osmnx in python.

import osmnx as ox
G = ox.graph_from_point((latitude, longitude),network_type=‘drive’)
edges = ox.distance.nearest_edges(G, longitude, latitude) #(2829488463, 10350280662, 0)

for u,v , data in G.edges(keys=True):
if ‘surface’ in data.keys():
print(“surface:”,data[‘surface’])

Error facing:
if ‘surface’ in data.keys():
^^^^^^^^^
AttributeError: ‘int’ object has no attribute ‘keys’

Any ways how to get the road surface ??