Where’s The JSON?

So you’re looking at the documentation for an API which was obviously generated with Swagger and you’re wondering how to get the underlying JSON file so you can import it into Postman and leverage it for whatever you’re eager to build.

No worries, it’s fairly straightforward. Simply go into Inspect mode, and search for either swagger.json or openapi.json. (The filename will depend on whether they’re using the older or newer specification, but Postman can import either one– so it doesn’t really matter for your purposes beyond simply finding it.) There will probably be about half-a-dozen references to the JSON file, including one which will give you the details you need to infer the location of the file. From there, you can open it in a new tab, save it, etc.