How to Extract All URLs from an API Response
June 15, 2026 ยท 5 min read
Whether you're auditing assets, building a migration script, or just grabbing every image link from a response, manually hunting for URLs in a nested JSON blob is tedious. Here's a faster way.
The manual approach (and why it's painful)
The usual options are writing a one-off grep, a regex in your editor, or a throwaway
script. They work, but you have to remember the pattern, handle escaped slashes, and dedupe the
results yourself every time.
The one-click approach
- Copy your full API response โ REST, GraphQL, Postman export or Insomnia response.
- Open API URL Kit and paste it into the JSON tab.
- Click Extract URLs. Every
http(s)URL is pulled out, with escaped slashes already cleaned. - Click Remove Duplicates for a unique list.
Filter to exactly what you need
Once extracted, use the filter bar to narrow the results:
- By type โ show only Images, Videos or other links.
- By domain or substring โ e.g. type
cdnto keep only CDN URLs. - Valid only โ hide anything that isn't a well-formed URL.
The media preview grid renders images and videos inline so you can eyeball assets without opening each one.
Export the list
When you're happy with the result, Copy it, or download as TXT or CSV โ ready for an SEO crawl, a link checker, or a migration script.
Working with a plain URL list?
Switch to the URL List tab to paste one URL per line instead of full JSON. The same dedupe, filter and export tools apply.