How to make a graphql query in uipath

Hello friends, I would like to know how I can execute graphql requests in uipath
If it is not too much to ask, an example with this api would be very useful.
http://swapi.apis.guru/
and this query
{
person (personID: 1) {
yam
birthYear
}
}

1 Like

For a GET request like in this example you can use the HTTP Request activity from the UIPath.Web.Activities package and enter the query as part of the EndPoint property like this:
ā€œhttp://swapi.apis.guru/1/?query={person(personID:%201){name%20birthYear}}ā€

Note: %20 is the code for a space char in an URL
For more complex graphql requests you might need to use POST requests

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.