Pipeline (stage) history information

Using API, is there an easy way to find out how long a deal was in a particular pipeline before it was marked as won or lost?

The closest would be https://developers.pipedrive.com/docs/api/v1/#!/Deals/get_deals_id, which gives you time in stages

Hi David,
Can you please help me with the exact API call syntax?
I tried some and get an error.
I think I am confused with #! syntax.
Lets say my deal id is 31. So what should be my call?
I try
https://developers.pipedrive.com/docs/api/v1/#!/Deals/31
https://developers.pipedrive.com/docs/api/v1/31/Deals/get_deals_id
https://developers.pipedrive.com/docs/api/v1/#!/Deals/get_deals_id/31
Nothing.
I do get results with:
https://developers.pipedrive.com/docs/api/v1/deals/31
But is it the call you meant? So why use “#!”?
Please help

Hi @Michael_Shparber

I noticed that you faced a similar issue in different topics. Our Public API documentation (Pipedrive API v1 Reference) used to have /#!/Deals/get_deals_id as part of URL, which leads to GET Deal details API endpoint description, now it has a different URL structure, and this endpoint is here now Pipedrive API v1 Reference

Also, these links are just pointers in API reference, to make an actual API call you would need to call

https://api.pipedrive.com/v1/some/endpoint or
https://<company-domain>.pipedrive.com/api/v1/some/endpoint with API token or OAuth access token.

You can find information about that here Requests