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.

Try it nowRead more on the Postman blog

A better way to work with APIs.

The old way

Find a client library
A good one is golden, however most are outdated or simply unavailable in your app’s programming language.
Write your own client library
Takes a lot of effort and must be updated when the API changes. You should be focused on your app, anyway.
Read API data as dynamic, untyped values
This is an unpleasant way to program and leaves your app vulnerable to API changes.

With quicktype

Generate your client libraries
Given sample API responses, quicktype will generate an easy-to-use client library in your app’s language.
Spend more time on your app
quicktype can regenerate types when APIs change, so you can simply update affected app code, if any.
Access strongly typed API data with help
Get more out of your editor or IDE (autocomplete, refactoring) when working with typed API data.

Generate code for a collection with the quicktype CLI

Install quicktype from npm
$ npm install -g quicktype$ npm install -g quicktype
Download the sample Imgur API Postman Collection
$ curl -L -o imgur.json$ curl -L -o imgur.json
Generate Swift to use the Imgur API from iOS$ quicktype -s postman imgur.json -o Imgur.swift
$ quicktype -s postman imgur.json \    -o Imgur.swift
Or generate a C# library...$ quicktype -s postman imgur.json -o Imgur.cs
$ quicktype -s postman imgur.json \    -o Imgur.cs
Or a golang module...$ quicktype -s postman imgur.json -o imgur.go
$ quicktype -s postman imgur.json \    -o imgur.go