Instantly generate models and code from Postman Collections.
Drop a Postman Collection into quicktype to instantly generate clean models and code for the API data consumed by your apps.
Generate code for a collection with the quicktype CLI
Export a collection from Postman, point quicktype at it, and get models for every request and response in the language of your choice.

Install quicktype from npm$ npm install -g quicktype$ npm install -g quicktypeDownload the sample Imgur API Postman Collection$ curl -L goo.gl/qpDVx7 -o imgur.json$ curl -L goo.gl/qpDVx7 -o imgur.jsonGenerate Swift to use the Imgur API from iOS$ quicktype -s postman imgur.json -o Imgur.swift$ quicktype -s postman imgur.json \ -o Imgur.swiftOr generate a C# library...$ quicktype -s postman imgur.json -o Imgur.cs$ quicktype -s postman imgur.json \ -o Imgur.csOr a golang module...$ quicktype -s postman imgur.json -o imgur.go$ quicktype -s postman imgur.json \ -o imgur.goThe Backwater · Charles W. Wyllie, 1903
A better way to work with data
Most teams still hand-write types, or let a chatbot eyeball a payload. Generated types are faster to get, and they stay correct.
The old way
- Hunt for a client library
- A good one is gold, but most are outdated, unmaintained, or simply don’t exist for your language.
- Write the types by hand, or have a chatbot guess
- Slow, error-prone, and stale the moment the API changes. An LLM eyeballing a payload misses optional fields, mislabels numbers, and invents structure that isn’t there.
- Read the data as dynamic, untyped values
- Every field access is a runtime gamble, and neither your compiler, your IDE, nor your AI assistant can help you.
With quicktype
- Generate the client code
- Give quicktype sample responses and get idiomatic, strongly typed models and serializers in your app’s language, in seconds.
- Regenerate when the API changes
- Run quicktype in your build or CI. When the API changes, regenerate and let the compiler point you at exactly what to update.
- Give your tools something to work with
- Typed data unlocks autocomplete, refactoring, and validation in your IDE, and gives AI agents an accurate model of your data instead of a guess.
Stop guessing at data.
Paste JSON and get typesafe code in seconds, in the browser, in your terminal, or inside your AI agent.
Try it with a collection
npm install -g quicktype