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

  1. Copy your full API response โ€” REST, GraphQL, Postman export or Insomnia response.
  2. Open API URL Kit and paste it into the JSON tab.
  3. Click Extract URLs. Every http(s) URL is pulled out, with escaped slashes already cleaned.
  4. Click Remove Duplicates for a unique list.

Filter to exactly what you need

Once extracted, use the filter bar to narrow the results:

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.

Related reading

Why JSON URLs contain backslashes โ†’

โ† Back to the blog