You can retrieve the number of connects and bids for a job posting using the Upwork Marketplace GraphQL API by querying the "job" object with the appropriate fields. The API exposes detailed job-related information — including metrics like how freelancers have already submitted proposals (bids) and how many connects are required apply.
If you want, I can provide the exact code snippet that accomplishes this. Just send me a message, and I'II share it with you.