Is the API down?

67 views
Skip to first unread message

김은진

unread,
Oct 13, 2025, 12:52:06 AMOct 13
to arXiv API Discussion
Even with example queries, the API returns no <entry> elements, as shown below.


<?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <link href="http://arxiv.org/api/query?search_query%3Dall%3Aelectron%26id_list%3D%26start%3D0%26max_results%3D1" rel="self" type="application/atom+xml"/> <title type="html">ArXiv Query: search_query=all:electron&amp;id_list=&amp;start=0&amp;max_results=1</title> <id>http://arxiv.org/api/cHxbiOdZaP56ODnBPIenZhzg5f8</id> <updated>2025-10-13T00:00:00-04:00</updated> <opensearch:totalResults xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">0</opensearch:totalResults> <opensearch:startIndex xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">0</opensearch:startIndex> <opensearch:itemsPerPage xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">1</opensearch:itemsPerPage> </feed>

黄舸帆

unread,
Oct 13, 2025, 1:22:30 AMOct 13
to arXiv API Discussion
```python

import xml
import urllib
import urllib.parse
import urllib.request


def init_proxy(
proxy_ip: str,
proxy_port: int,
proxy_global: bool = True
):
proxy_url = f"{proxy_ip}:{proxy_port}"
proxy_handler = urllib.request.ProxyHandler(
proxies={
"http": proxy_url,
"https": proxy_url
}
)
opener = urllib.request.build_opener(proxy_handler)

if proxy_global:
urllib.request.install_opener(opener)


def fetch_arxiv_raw(
search_query: str,
start=0,
max_results=10
) -> str:
base = "http://export.arxiv.org/api/query?"
params = {
"search_query": search_query,
"start": str(start),
"max_results": str(max_results),
}

url = base + urllib.parse.urlencode(params)

req = urllib.request.Request(url, headers={
"User-Agent": "arXiv-Client/1.0 (@gmail.com)"
})

with urllib.request.urlopen(req, timeout=30) as resp:
status = getattr(resp, "status", None)
body = resp.read()

if status not in (None, 200):
raise RuntimeError(f"HTTP status {status}")

return body.decode("utf-8")

if __name__ == "__main__":
result = fetch_arxiv_raw(
search_query="all:electron",
start=0,
max_results=5
)
print(result)
```

Here is My Code, but API retuen 

```json
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <link href="http://arxiv.org/api/query?search_query%3Dall%3Aelectron%26id_list%3D%26start%3D0%26max_results%3D5" rel="self" type="application/atom+xml"/>
  <title type="html">ArXiv Query: search_query=all:electron&amp;id_list=&amp;start=0&amp;max_results=5</title>
  <id>http://arxiv.org/api//zp8MUTg8VZFGJrhBDklDEFp5ug</id>

  <updated>2025-10-13T00:00:00-04:00</updated>
  <opensearch:totalResults xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">0</opensearch:totalResults>
  <opensearch:startIndex xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">0</opensearch:startIndex>
  <opensearch:itemsPerPage xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">5</opensearch:itemsPerPage>
</feed>
```

I try any keywords, and try url to firefox browser

Brian Maltzan

unread,
Oct 13, 2025, 8:02:06 AMOct 13
to a...@arxiv.org
Hi,
This is working again.
Thanks,
Brian


--
You received this message because you are subscribed to the Google Groups "arXiv API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api+uns...@arxiv.org.
To view this discussion visit https://groups.google.com/a/arxiv.org/d/msgid/api/b448c8dd-62ae-42fd-a162-f1871dd23b1an%40arxiv.org.
Reply all
Reply to author
Forward
0 new messages