This enables you to iterate through your requests using multiple sets of input values, without modifying your request parameters each time.
Note: This feature is currently available only on the Requestly Desktop App.
Using a Data File in Collection Runner
Follow these steps to run a collection with custom data:1
Open Collection Runner
In the Collections sidebar, find the collection you want to execute and click the Run icon next to it..png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=7e50b3d6b56dddd947573d370ae63ab4)
.png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=7e50b3d6b56dddd947573d370ae63ab4)
2
Select a Data File
In the Runner configuration panel, click Select Data File..png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=82996eee04932df9a84936151307d0b6)
Once added, Requestly will automatically detect the file type and preview its structure.
Supports JSON & CSV files (max 100MB)
.png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=82996eee04932df9a84936151307d0b6)
3
Preview Data and Map Variables
After selecting the file, a preview of your data will appear..png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=dc5a93771aefba9ba16c875988237cf3)
- For CSV files: verify column names and types
- For JSON files: check object keys and structure
{{city}} or {{user_id}}..png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=dc5a93771aefba9ba16c875988237cf3)
4
Start the Run
Click Save and then Start Run.
The Collection Runner will replace variables with data from your file for each iteration..png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=be842babce40605e4ecbb7d35a346b49)
The Collection Runner will replace variables with data from your file for each iteration.
.png?fit=max&auto=format&n=imd26rumDP_4ZkHG&q=85&s=be842babce40605e4ecbb7d35a346b49)
How Data Files Work
When you attach a CSV or JSON file to your manual run:- Each row (CSV) or object (JSON) represents one iteration
- Variables inside your requests (like
{{name}}or{{email}}) are replaced with the corresponding values - Requestly automatically cycles through each data set until all iterations are complete
Supported File Formats
CSV Format
- The first row defines variable names
- Each subsequent row represents one iteration
- Each row must have the same number of columns
JSON Format
- Must be an array of key-value objects
- Each object defines one iteration
Example Use Case
For a request like{{city}} with each value during the run.
Accessing Data in Scripts
You can access data file values programmatically in your pre-request and post-response scripts using therq.iterationData object. This allows you to implement conditional logic, validate responses, or perform calculations based on the input data.
Example:
- rq.iterationData API Reference
- rq.info API Reference - Access iteration metadata

