Help for novice: API to collection

Thank you so much, works well and now can see where I was going wrong. Thank you.