How to get the number of parked messages via curl?

The parked stream is just a normal stream. You can read it as you can any other stream.

Did you ever get answer to this?

I responded via email, thought it went here as well. Here is a c/p

.
.

There is an answer in the thread. The parked messages are in a stream. You can look in this stream. In order to find this stream (perhaps this is the part that you are missing) you can query the persistent subscriptions (either individually or for all) via the restful API.

/subscriptions or /subscriptions/{name}

This will return you your subscriptions as in below (this is /subscriptions obviously a single one will only return one). If you look in the returned information there is a uri returned per subscription parkedMessageUri which is the uri for the stream where messages are parked for that subscription. Note that you can also use /subscriptions/{name} for an individual subscription as opposed to getting all subscriptions.

You will also note that there is a naming convention used here. You should NOT just follow this naming convention but should instead use the URI given in the description document. This naming convention MAY one day change which would break your code if you attempted to hardcode the naming convention.

[
  {
    "links": [
      {
        "href": "http://localhost:2113/subscriptions/newstream/competing_consumers_group1/info",
        "rel": "detail"
      }
    ],
    "eventStreamId": "newstream",
    "groupName": "competing_consumers_group1",
    "parkedMessageUri": "http://localhost:2113/streams/$persistentsubscription-newstream::competing_consumers_group1-parked",
    "getMessagesUri": "http://localhost:2113/subscriptions/newstream/competing_consumers_group1/1",
    "status": "Live",
    "averageItemsPerSecond": 0.0,
    "totalItemsProcessed": 0,
    "lastProcessedEventNumber": -1,
    "lastKnownEventNumber": 5,
    "connectionCount": 0,
    "totalInFlightMessages": 0
  },
  {
    "links": [
      {
        "href": "http://localhost:2113/subscriptions/another_newstream/competing_consumers_group1/info",
        "rel": "detail"
      }
    ],
    "eventStreamId": "another_newstream",
    "groupName": "competing_consumers_group1",
    "parkedMessageUri": "http://localhost:2113/streams/$persistentsubscription-another_newstream::competing_consumers_group1-parked", <~~-- here!!!
    "getMessagesUri": "http://localhost:2113/subscriptions/another_newstream/competing_consumers_group1/1",
    "status": "Live",
    "averageItemsPerSecond": 0.0,
    "totalItemsProcessed": 0,
    "lastProcessedEventNumber": -1,
    "lastKnownEventNumber": -1,
    "connectionCount": 0,
    "totalInFlightMessages": 0
  }