# The Collect block The Collect block The **Collect** block receives individual data items from iterations of a [loop](/docs/postman-flows/build-flows/structure/loops/overview/), then aggregates them into a list, formatted as a JSON array like this: `["item1","item2","item3"]`. For example, if a loop sends one HTTP request per iteration, the **Collect** block can gather all the responses into a single list when the loop completes. The **Collect** block is commonly used with the [**For**](/docs/postman-flows/reference/blocks/for/) block, which sends each item in a list individually, and the [**Repeat**](/docs/postman-flows/reference/blocks/repeat/) block, which runs a group of blocks multiple times. ## Input **Item** - Accepts a single data item from a [**For**](/docs/postman-flows/reference/blocks/for/) or [**Repeat**](/docs/postman-flows/reference/blocks/repeat/) loop. ## Outputs **List** - Creates a JSON array of all the items sent to this block when the loop is complete. **Finish** - Sends an event when the loop is complete and the **Collect** block has aggregated the data into an array. ## Example To see the **Collect** block in an example flow, check out [Flow Snippets: Collect](https://www.postman.com/postman/flows-snippets/flow/63b898822e67b05a8333e16c). ## Related blocks * [**For**](/docs/postman-flows/reference/blocks/for/) * [**Repeat**](/docs/postman-flows/reference/blocks/repeat/) ## Related pages For more information about creating loops in Flows and tutorials that use the **Collect** block, see the following: * [Loops overview](/docs/postman-flows/build-flows/structure/loops/overview/) * [Create a count-based loop with the Repeat block](/docs/postman-flows/tutorials/beginner/create-count-based-loop/) * [Create a dashboard using Postman Flows](/docs/postman-flows/tutorials/advanced/create-a-dashboard-in-flows/) * [Create a list-based loop with the For block](/docs/postman-flows/tutorials/beginner/create-list-based-loop/)