Convert API response to CSV with root path extraction
Convert API response to CSV directly from your browser. REST APIs, GraphQL endpoints, and webhook feeds wrap valuable tabular data inside nested metadata envelopes containing pagination counters, status codes, and rate limits. mommyfile lets you target the core array of records using custom root paths, extracting clean CSV tables instantly.
Custom Root Path Targeting
Use the Root path setting in the Options drawer (e.g. data.items or result.records) to bypass outer wrapper objects and convert only the target data.
How to convert REST API payloads, Postman, and curl output to CSV
Extracting records from complex API responses takes three quick steps:
Paste the JSON response payload
Copy the JSON body from your API client (Postman, curl, browser DevTools, or Insomnia) and paste it into the converter.
Specify the nested root path
Open the Options drawer. If your records are nested inside data.items, enter data.items in the Root path field.
Inspect and export CSV
Verify the extracted fields in the live preview table and click Download CSV or Copy CSV.
Targeting nested data arrays with dot notation root paths like data.items
Most professional REST APIs return payloads structured like this:
{
"status": "success",
"code": 200,
"pagination": { "page": 1, "pageSize": 50, "total": 1200 },
"data": {
"items": [
{ "id": 101, "sku": "WIDGET-A", "price": 19.99 },
{ "id": 102, "sku": "WIDGET-B", "price": 24.50 }
]
}
}
If you convert this without root path targeting, you get a single row with flattened metadata columns like pagination.page and pagination.total.
By entering data.items into the Root path option, mommyfile drills down into the nested array and transforms each item into its own row, generating clean id,sku,price columns.
Fetching direct API URLs and navigating browser CORS restrictions
mommyfile includes a URL fetcher that allows you to request public API endpoints directly from your browser. However, because mommyfile is 100% client-side, the browser's Cross-Origin Resource Sharing (CORS) security policy applies:
- CORS Enabled APIs: Public endpoints that include
Access-Control-Allow-Origin: *headers can be fetched directly. - Protected or Internal APIs: If an API endpoint restricts browser requests, simply run your request in Postman or terminal curl, copy the returned JSON body, and paste it into mommyfile.