Base function:

beta = Function[{x}, y = ResourceData[ResourceObject[x]]]

Then I deploy this using CloudDeploy:

CloudDeploy[APIFunction[{"x" -> "String" }, beta[#x] &]] ;

which returns a URL. but when I try to pass params to it ny adding ?x="Meteorite Landings" in front of the link, I get a $Failed error

Also, how would I grab the dataset in json format?


1 Answer 1


I found the solution:

beta = APIFunction[{"tablename" -> "String"},ResourceData[ResourceObject[#tablename] ]& ]
co = CloudDeploy[beta, Permissions->"Public"]

for some reason it requires public permissions


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.