API for Activity that matches Filter

How do you create an API string for a list of activities that match a filter?

I have the string for the filter itself (https://api.pipedrive.com/v1/filters/92?api_token=) but not the list of activities that match that filter.

Please help!

Hey Rob,

Do you mean you’re trying to return the results of the filter? To get those Activities that match it?

Actually, I think I know what you mean now.

You want to use GET/activities and not GET/Filters, then just apply the Filter ID to the request.

String should like something like this:
https://api.pipedrive.com/v1/activities?filter_id=185&start=0&api_token=

Yes David I would like the results of the filter. A list of the activities that match the filter conditions.

I tried that string you suggested but it did not return a list of the results.

The filter i chose had 7 activities that matched but this is what the string returned:
i

Did you put in your specific filter ID? So you should use:
https://api.pipedrive.com/v1/activities?filter_id=92&start=0&api_token=

You can also test here: https://developers.pipedrive.com/docs/api/v1/?_ga=2.97136927.1675267712.1539325426-311798825.1506936222#!/Activities/get_activities

David,

Yes, I did put in the specific filter ID. I tried on the Pipedrive Developers site but again got no activity breakdown. This is what the response was:

Are the activities you’re looking for assigned to you, and if not, are you specifying the ID of the User? (by default it shows results based on the User’s API token).

Could you share the string you’re using now?

To return from all Users, you can include 0:
https://api.pipedrive.com/v1/activities?user_id=0&filter_id=127&start=0&api_token=

David,

Adding the user ID fixed it. Thank you!

Rob Beardmore