morley
August 27, 2023, 12:05pm
1
We have been hitting the Claims API for months:
updated as of 4/26/2023
But recently, we get back a 403 Forbidden error when running the CURL request in that doc:
$ curl -X GET "https://apps.api.manifoldxyz.dev/public/instance/data?id=1851414768"
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
Hi!
If you are running the CURL request and is not from a browser application, you will need to append “User-Agent” in the header manually, our server will think you are a bot otherwise.
Hope this helps!
morley
August 28, 2023, 8:10pm
3
Sending a User-Agent header doesn’t seem to help:
curl --location 'https://apps.api.manifoldxyz.dev/public/instance/data?id=1046501616' \
--header 'Accept: application/json' \
--header 'User-Agent: Daylight/1.0.0'
Response:
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
Is there a document explaining how to make node fetch requests to the API?
morley
August 29, 2023, 7:33pm
4
I was able to get this to work by setting the User-Agent to Chrome’s.