United States Postal Service · Schema
TotalRateRequest
Request parameters for total rate search.
GovernmentPostal ServiceShippingLogisticsAddress ValidationPackage Tracking
Properties
| Name | Type | Description |
|---|---|---|
| originZIPCode | string | 5-digit origin ZIP Code. |
| destinationZIPCode | string | 5-digit destination ZIP Code. |
| weight | number | Package weight in pounds. |
| length | number | Package length in inches. |
| width | number | Package width in inches. |
| height | number | Package height in inches. |
| mailClass | string | USPS mail class. |
| extraServices | array | List of extra services to include in total rate. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/united-states-postal-service/refs/heads/main/json-schema/domestic-prices-total-rate-request-schema.json",
"title": "TotalRateRequest",
"description": "Request parameters for total rate search.",
"type": "object",
"properties": {
"originZIPCode": {
"type": "string",
"description": "5-digit origin ZIP Code.",
"example": "20212"
},
"destinationZIPCode": {
"type": "string",
"description": "5-digit destination ZIP Code.",
"example": "90210"
},
"weight": {
"type": "number",
"description": "Package weight in pounds.",
"example": 1.5
},
"length": {
"type": "number",
"description": "Package length in inches.",
"example": 12.0
},
"width": {
"type": "number",
"description": "Package width in inches.",
"example": 8.0
},
"height": {
"type": "number",
"description": "Package height in inches.",
"example": 4.0
},
"mailClass": {
"type": "string",
"description": "USPS mail class.",
"example": "PRIORITY_MAIL"
},
"extraServices": {
"type": "array",
"description": "List of extra services to include in total rate.",
"items": {
"type": "object",
"properties": {
"extraServiceCode": {
"type": "string",
"description": "Extra service code.",
"example": "955"
}
}
}
}
},
"required": [
"originZIPCode",
"destinationZIPCode",
"weight",
"mailClass"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/domestic-prices-total-rate-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.