Trying to get Deals data through API's

Hello,

My goal is to get deals data from Hubspot Account through API’s.

Created Private App in Hubspot Account, Generated Access Token

Below is the link used to retrieve the data.

GET https://api.hubapi.com/crm/v3/objects/deals?limit=200&archived=false

I have 2 issues here;

1.Can retrieve only 100 records at a time. We have 600 records. Not able to retrieve all the records.

2.How can I retreive the Deals data for a specific pipeline?

Any inputs on this is highly appreciated.

Hey, @SGanugapati Thanks for your questions.

Q1 – your response will include an “after” value that you’ll include in your subsequent requests as a query parameter

Q2 – this is a great use for the Search API. You can use the search operator of “EQ” and use the Pipeline id. You can get your Pipeline ID’s from the Pipeline API here — Pipelines.

If you need a quick example of how to set up a Search API query using Postman, I am happy to add that for you!

Best,

Jaycee