Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

ArcGIS Rest API connection

bman213
7 - Meteor

Hi everybody,

 

I am new to the API world within Alteryx, and I was wondering if anybody could outline how exactly you would go about pulling data from an ArcGIS rest API url and display this data within Alteryx so that I can further edit it?

 

Any help would be greatly appreciated!

5 REPLIES 5
markcurry
12 - Quasar

Hi @bman213 I've attached a workflow I've used that downloads Irish Covid stats, you'll see the different parameters used in the Query in the Download tool in the 'Payload' tab. 

 

I hope that helps you,

 

Mark

BrandonB
Alteryx
Alteryx

Here is the services directory which is from the API documentation on the ArcGIS webpage: https://developers.arcgis.com/rest/services-reference/get-started-with-the-services-directory.htm 

 

I haven't personally connected to ArcGIS yet, but it looks like you first need to generate a token from this endpoint: https://developers.arcgis.com/rest/services-reference/generate-token.htm 

 

Essentially this is passing a username and password with a few other parameters into a download tool that is doing a POST request to https://<host>:<port>/<site>/tokens/generateToken (your information in here of course) and returning back a token. Normally you would then pass this token as a header into another download tool along with a new URL of the resource that you are trying to pull from. 

BrandonB
Alteryx
Alteryx

Thanks for sharing @markcurry. I am thinking that the token must only be required for private resources then because I don't see one leveraged in your example. 

markcurry
12 - Quasar

@BrandonB My workflow was based on a post I found in the community, and I looked for that post but couldn't find it.  If I find it I'll include it.  Thanks for you links, they could come in handy.

Hollingsworth
12 - Quasar
12 - Quasar

At the 2021 Inspire this year, I demonstrated a macro that I wrote to consume ESRI REST endpoints.

The post where I mention them is here. Please scroll down in the post to find where I post two correction macros that you will need.

 

Good luck!

John Hollingsworth
Clear Channel Outdoor
Labels