United States Postal Service · JSON Structure

Domestic Prices Total Rate Request Structure

Request parameters for total rate search.

Type: object Properties: 8 Required: 4
GovernmentPostal ServiceShippingLogisticsAddress ValidationPackage Tracking

TotalRateRequest is a JSON Structure definition published by United States Postal Service, describing 8 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

originZIPCode destinationZIPCode weight length width height mailClass extraServices

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/united-states-postal-service/refs/heads/main/json-structure/domestic-prices-total-rate-request-structure.json",
  "name": "TotalRateRequest",
  "description": "Request parameters for total rate search.",
  "properties": {
    "originZIPCode": {
      "description": "5-digit origin ZIP Code.",
      "example": "20212",
      "type": "string"
    },
    "destinationZIPCode": {
      "description": "5-digit destination ZIP Code.",
      "example": "90210",
      "type": "string"
    },
    "weight": {
      "description": "Package weight in pounds.",
      "example": 1.5,
      "type": "double"
    },
    "length": {
      "description": "Package length in inches.",
      "example": 12.0,
      "type": "double"
    },
    "width": {
      "description": "Package width in inches.",
      "example": 8.0,
      "type": "double"
    },
    "height": {
      "description": "Package height in inches.",
      "example": 4.0,
      "type": "double"
    },
    "mailClass": {
      "description": "USPS mail class.",
      "example": "PRIORITY_MAIL",
      "type": "string"
    },
    "extraServices": {
      "description": "List of extra services to include in total rate.",
      "items": {
        "properties": {
          "extraServiceCode": {
            "description": "Extra service code.",
            "example": "955",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "originZIPCode",
    "destinationZIPCode",
    "weight",
    "mailClass"
  ],
  "type": "object"
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/domestic-prices-total-rate-request-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.