Python 3 code

import urllib.request as ur
url = 'http://export.arxiv.org/api/query?search_query=all:electron&start=0&max_results=1'
data = ur.urlopen(url).read()
print(data)

Ref: arXiv API