Search code examples
jsonapifilterform-data

Can I Filter Form Data Directly From The URL? (Form Data as Query Parameters) API


I have this URL:

https://www.humanity.com/api/v2/employees?access_token=d397baea8833d805a1a4a474209d6703e5208a06

the response I get is :

{ "status": 1,

"data": [..],

"token": "d397baea8833d805a1a4a474209d6703e5208a06",

"error": null }

How can I go directly in Data by adding parameters in the URL?

https://www.humanity.com/api/v2/employees?access_token=d397baea8833d805a1a4a474209d6703e5208a06/data

Highly appreciate the help!


Solution

  • The response is a JSON. If you want to access data you would put the response in an object and access data by doing object.data which would show all the contents of data.