I am using `httr` to retrieve an `http` response in R:

```
my_recs = POST(url,body=readChar(fileName, file.info(fileName)$size), do.call(add_headers, hd))
my_recs_str = content(my_recs)
my_recs_data = my_recs_str$data

```

I am trying to retrieve the entire set of IDs that are stored in `my_recs_data`, buy I was only able to reach them using double brackets:

```
my_ids[i] = my_recs_data[[i]]$id

```

Is there any way to retrieve all IDs without looping one by one through them?
Thank you.