{
  "openapi": "3.0.3",
  "info": {
    "title": "US Per Diem API (GSA rates)",
    "version": "1.0.0",
    "description": "Official GSA per diem rates for the continental US (48 states + DC), FY2026 and FY2027: maximum lodging by month and M&IE (meals and incidentals) with the breakfast/lunch/dinner breakdown, by ZIP code or city. The trip endpoint totals a whole trip: lodging per night at the right month and fiscal year, 75% M&IE on the first and last day, and deductions for provided meals. No API key from GSA needed. Data is US government work (public domain) from GSA; every response cites its source. Spreadsheet version (our own product, $9): Per Diem Travel Expense Tracker with the same GSA FY2026/FY2027 rates built in, https://payhip.com/b/ztfN3"
  },
  "servers": [
    {
      "url": "https://us-per-diem-api.narwhalapis.workers.dev"
    }
  ],
  "paths": {
    "/v1/meta": {
      "get": {
        "summary": "Coverage and sources",
        "description": "Fiscal years covered, standard CONUS rates, data date and official sources.",
        "tags": [
          "Reference"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "version": "1.0.0",
                  "fiscal_years": [
                    {
                      "fiscal_year": 2026,
                      "starts": "2025-10-01",
                      "ends": "2026-09-30",
                      "destinations": 346,
                      "standard_lodging": 110,
                      "standard_mie": 68
                    },
                    {
                      "fiscal_year": 2027,
                      "starts": "2026-10-01",
                      "ends": "2027-09-30",
                      "destinations": 345,
                      "standard_lodging": 113,
                      "standard_mie": 68
                    }
                  ],
                  "coverage": "CONUS: the 48 contiguous states and DC. Not covered: Alaska, Hawaii, US territories and foreign (OCONUS) rates.",
                  "data_fetched": "2026-10-20",
                  "sources": {
                    "rates": "https://www.gsa.gov/travel/plan-book/per-diem-rates",
                    "mie": "https://www.gsa.gov/travel/plan-book/per-diem-rates/mie-breakdown",
                    "api": "https://open.gsa.gov/api/perdiem/",
                    "ftr_first_last_day": "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.101",
                    "ftr_meal_deduction": "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.18"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not called through RapidAPI"
          },
          "404": {
            "description": "Location not covered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [],
        "operationId": "coverage_and_sources_get",
        "x-example-request": "/v1/meta"
      }
    },
    "/v1/rates": {
      "get": {
        "summary": "Per diem rates",
        "description": "Lodging by month and M&IE for a ZIP, a city + state, or every per diem area in a state.",
        "tags": [
          "Rates"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "fiscal_year": 2027,
                  "match": "zip",
                  "results": [
                    {
                      "id": "2027-NY-266",
                      "fiscal_year": 2027,
                      "state": "NY",
                      "destination_id": 266,
                      "city": "New York City",
                      "county": "Bronx / Kings / New York / Queens / Richmond",
                      "standard_rate": false,
                      "lodging_seasonal": true,
                      "lodging_min": 189,
                      "lodging_max": 358,
                      "lodging_by_month": {
                        "Jan": 189,
                        "Feb": 189,
                        "Mar": 296,
                        "Apr": 296,
                        "May": 296,
                        "Jun": 296,
                        "Jul": 250,
                        "Aug": 250,
                        "Sep": 358,
                        "Oct": 358,
                        "Nov": 358,
                        "Dec": 358
                      },
                      "mie": {
                        "total": 92,
                        "breakfast": 23,
                        "lunch": 26,
                        "dinner": 38,
                        "incidentals": 5,
                        "first_last_day": 69
                      }
                    }
                  ],
                  "source": "https://www.gsa.gov/travel/plan-book/per-diem-rates"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not called through RapidAPI"
          },
          "404": {
            "description": "Location not covered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": false,
            "description": "5-digit ZIP code (most reliable)",
            "schema": {
              "type": "string"
            },
            "example": "10001"
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "City name (use with state)",
            "schema": {
              "type": "string"
            },
            "example": "Rochester"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "2-letter state code (CONUS + DC)",
            "schema": {
              "type": "string"
            },
            "example": "NY"
          },
          {
            "name": "fy",
            "in": "query",
            "required": false,
            "description": "Federal fiscal year (2026 = Oct 1 2025 to Sep 30 2026; 2027 = Oct 1 2026 to Sep 30 2027). Default: current",
            "schema": {
              "type": "integer"
            },
            "example": 2027
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "A travel date (YYYY-MM-DD); picks the fiscal year and adds lodging_on_date",
            "schema": {
              "type": "string"
            },
            "example": "2026-11-03"
          }
        ],
        "operationId": "per_diem_rates_get",
        "x-example-request": "/v1/rates?zip=10001&fy=2027"
      }
    },
    "/v1/mie": {
      "get": {
        "summary": "M&IE breakdown",
        "description": "The M&IE tiers with breakfast, lunch, dinner, incidentals and the 75% first/last-day amount.",
        "tags": [
          "Reference"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "fiscal_year": 2027,
                  "tiers": [
                    {
                      "total": 68,
                      "breakfast": 16,
                      "lunch": 19,
                      "dinner": 28,
                      "incidentals": 5,
                      "first_last_day": 51
                    },
                    {
                      "total": 74,
                      "breakfast": 18,
                      "lunch": 20,
                      "dinner": 31,
                      "incidentals": 5,
                      "first_last_day": 55.5
                    },
                    {
                      "total": 80,
                      "breakfast": 20,
                      "lunch": 22,
                      "dinner": 33,
                      "incidentals": 5,
                      "first_last_day": 60
                    },
                    {
                      "total": 86,
                      "breakfast": 22,
                      "lunch": 23,
                      "dinner": 36,
                      "incidentals": 5,
                      "first_last_day": 64.5
                    },
                    {
                      "total": 92,
                      "breakfast": 23,
                      "lunch": 26,
                      "dinner": 38,
                      "incidentals": 5,
                      "first_last_day": 69
                    }
                  ],
                  "note": "first_last_day is 75% of the M&IE total, used for the day travel starts and the day it ends.",
                  "source": "https://www.gsa.gov/travel/plan-book/per-diem-rates/mie-breakdown"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not called through RapidAPI"
          },
          "404": {
            "description": "Location not covered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "fy",
            "in": "query",
            "required": false,
            "description": "Federal fiscal year (2026 = Oct 1 2025 to Sep 30 2026; 2027 = Oct 1 2026 to Sep 30 2027). Default: current",
            "schema": {
              "type": "integer"
            },
            "example": 2027
          }
        ],
        "operationId": "m&ie_breakdown_get",
        "x-example-request": "/v1/mie?fy=2027"
      }
    },
    "/v1/trip": {
      "get": {
        "summary": "Trip per diem",
        "description": "Maximum lodging, M&IE and total per diem for a trip, with a day-by-day breakdown.",
        "tags": [
          "Trips"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "start": "2026-11-02",
                  "end": "2026-11-05",
                  "days": 4,
                  "nights": 3,
                  "area": {
                    "city": "New York City",
                    "county": "Bronx / Kings / New York / Queens / Richmond",
                    "state": "NY",
                    "standard_rate": false
                  },
                  "totals": {
                    "lodging_max": 1074,
                    "mie": 296,
                    "meal_deductions": 26,
                    "per_diem_max": 1370
                  },
                  "days_detail": [
                    {
                      "date": "2026-11-02",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 69,
                      "meals_provided": [
                        "lunch"
                      ],
                      "meal_deduction": 26,
                      "mie": 43,
                      "lodging_night": true,
                      "lodging": 358,
                      "total": 401
                    },
                    {
                      "date": "2026-11-03",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 92,
                      "meals_provided": [],
                      "meal_deduction": 0,
                      "mie": 92,
                      "lodging_night": true,
                      "lodging": 358,
                      "total": 450
                    },
                    {
                      "date": "2026-11-04",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 92,
                      "meals_provided": [],
                      "meal_deduction": 0,
                      "mie": 92,
                      "lodging_night": true,
                      "lodging": 358,
                      "total": 450
                    },
                    {
                      "date": "2026-11-05",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 69,
                      "meals_provided": [],
                      "meal_deduction": 0,
                      "mie": 69,
                      "lodging_night": false,
                      "lodging": 0,
                      "total": 69
                    }
                  ],
                  "rules": [
                    "First and last travel days get 75% of the M&IE rate; full days in between get 100%.",
                    "Lodging is the maximum allowed per night (taxes extra), using the rate for the month of each night.",
                    "Provided meals are deducted at the GSA M&IE breakdown amount, one per day starting on day 1, never below $0 per day."
                  ],
                  "sources": [
                    "https://www.gsa.gov/travel/plan-book/per-diem-rates",
                    "https://www.gsa.gov/travel/plan-book/per-diem-rates/mie-breakdown",
                    "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.101",
                    "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.18"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not called through RapidAPI"
          },
          "404": {
            "description": "Location not covered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": false,
            "description": "5-digit ZIP code (most reliable)",
            "schema": {
              "type": "string"
            },
            "example": "10001"
          },
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "City name (use with state)",
            "schema": {
              "type": "string"
            },
            "example": "Rochester"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "2-letter state code (CONUS + DC)",
            "schema": {
              "type": "string"
            },
            "example": "NY"
          },
          {
            "name": "start",
            "in": "query",
            "required": true,
            "description": "First travel day (YYYY-MM-DD)",
            "schema": {
              "type": "string"
            },
            "example": "2026-11-02"
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "description": "Last travel day (YYYY-MM-DD)",
            "schema": {
              "type": "string"
            },
            "example": "2026-11-05"
          },
          {
            "name": "breakfasts_provided",
            "in": "query",
            "required": false,
            "description": "Breakfasts provided (conference, hotel, etc.), deducted at the GSA breakdown amount",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "lunches_provided",
            "in": "query",
            "required": false,
            "description": "Lunches provided",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "dinners_provided",
            "in": "query",
            "required": false,
            "description": "Dinners provided",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "no_lodging",
            "in": "query",
            "required": false,
            "description": "No lodging claimed (e.g. staying with friends)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "area_index",
            "in": "query",
            "required": false,
            "description": "When a ZIP spans more than one per diem area, which one (see alternatives in the response). Default 0",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "operationId": "trip_per_diem_get",
        "x-example-request": "/v1/trip?zip=10001&start=2026-11-02&end=2026-11-05&lunches_provided=1"
      },
      "post": {
        "summary": "Trip per diem",
        "description": "Maximum lodging, M&IE and total per diem for a trip, with a day-by-day breakdown.",
        "tags": [
          "Trips"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "start": "2026-11-02",
                  "end": "2026-11-05",
                  "days": 4,
                  "nights": 3,
                  "area": {
                    "city": "New York City",
                    "county": "Bronx / Kings / New York / Queens / Richmond",
                    "state": "NY",
                    "standard_rate": false
                  },
                  "totals": {
                    "lodging_max": 1074,
                    "mie": 296,
                    "meal_deductions": 26,
                    "per_diem_max": 1370
                  },
                  "days_detail": [
                    {
                      "date": "2026-11-02",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 69,
                      "meals_provided": [
                        "lunch"
                      ],
                      "meal_deduction": 26,
                      "mie": 43,
                      "lodging_night": true,
                      "lodging": 358,
                      "total": 401
                    },
                    {
                      "date": "2026-11-03",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 92,
                      "meals_provided": [],
                      "meal_deduction": 0,
                      "mie": 92,
                      "lodging_night": true,
                      "lodging": 358,
                      "total": 450
                    },
                    {
                      "date": "2026-11-04",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 92,
                      "meals_provided": [],
                      "meal_deduction": 0,
                      "mie": 92,
                      "lodging_night": true,
                      "lodging": 358,
                      "total": 450
                    },
                    {
                      "date": "2026-11-05",
                      "fiscal_year": 2027,
                      "area": "New York City",
                      "mie_rate": 92,
                      "mie_base": 69,
                      "meals_provided": [],
                      "meal_deduction": 0,
                      "mie": 69,
                      "lodging_night": false,
                      "lodging": 0,
                      "total": 69
                    }
                  ],
                  "rules": [
                    "First and last travel days get 75% of the M&IE rate; full days in between get 100%.",
                    "Lodging is the maximum allowed per night (taxes extra), using the rate for the month of each night.",
                    "Provided meals are deducted at the GSA M&IE breakdown amount, one per day starting on day 1, never below $0 per day."
                  ],
                  "sources": [
                    "https://www.gsa.gov/travel/plan-book/per-diem-rates",
                    "https://www.gsa.gov/travel/plan-book/per-diem-rates/mie-breakdown",
                    "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.101",
                    "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.18"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not called through RapidAPI"
          },
          "404": {
            "description": "Location not covered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "operationId": "trip_per_diem_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "zip": "10001",
                "start": "2026-11-02",
                "end": "2026-11-05",
                "lunches_provided": 1
              }
            }
          }
        }
      }
    },
    "/v1/trip/batch": {
      "post": {
        "summary": "Batch trips",
        "description": "Up to 50 trip calculations in one request. Invalid items return an error entry instead of failing the batch.",
        "tags": [
          "Trips"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "count": 2,
                  "results": [
                    {
                      "index": 0,
                      "start": "2026-11-02",
                      "end": "2026-11-05",
                      "days": 4,
                      "nights": 3,
                      "area": {
                        "city": "New York City",
                        "county": "Bronx / Kings / New York / Queens / Richmond",
                        "state": "NY",
                        "standard_rate": false
                      },
                      "totals": {
                        "lodging_max": 1074,
                        "mie": 322,
                        "meal_deductions": 0,
                        "per_diem_max": 1396
                      },
                      "days_detail": [
                        {
                          "date": "2026-11-02",
                          "fiscal_year": 2027,
                          "area": "New York City",
                          "mie_rate": 92,
                          "mie_base": 69,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 69,
                          "lodging_night": true,
                          "lodging": 358,
                          "total": 427
                        },
                        {
                          "date": "2026-11-03",
                          "fiscal_year": 2027,
                          "area": "New York City",
                          "mie_rate": 92,
                          "mie_base": 92,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 92,
                          "lodging_night": true,
                          "lodging": 358,
                          "total": 450
                        },
                        {
                          "date": "2026-11-04",
                          "fiscal_year": 2027,
                          "area": "New York City",
                          "mie_rate": 92,
                          "mie_base": 92,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 92,
                          "lodging_night": true,
                          "lodging": 358,
                          "total": 450
                        },
                        {
                          "date": "2026-11-05",
                          "fiscal_year": 2027,
                          "area": "New York City",
                          "mie_rate": 92,
                          "mie_base": 69,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 69,
                          "lodging_night": false,
                          "lodging": 0,
                          "total": 69
                        }
                      ],
                      "rules": [
                        "First and last travel days get 75% of the M&IE rate; full days in between get 100%.",
                        "Lodging is the maximum allowed per night (taxes extra), using the rate for the month of each night.",
                        "Provided meals are deducted at the GSA M&IE breakdown amount, one per day starting on day 1, never below $0 per day."
                      ],
                      "sources": [
                        "https://www.gsa.gov/travel/plan-book/per-diem-rates",
                        "https://www.gsa.gov/travel/plan-book/per-diem-rates/mie-breakdown",
                        "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.101",
                        "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.18"
                      ]
                    },
                    {
                      "index": 1,
                      "start": "2027-06-01",
                      "end": "2027-06-03",
                      "days": 3,
                      "nights": 2,
                      "area": {
                        "city": "Denver / Aurora",
                        "county": "Denver / Adams / Arapahoe / Jefferson",
                        "state": "CO",
                        "standard_rate": false
                      },
                      "totals": {
                        "lodging_max": 454,
                        "mie": 230,
                        "meal_deductions": 0,
                        "per_diem_max": 684
                      },
                      "days_detail": [
                        {
                          "date": "2027-06-01",
                          "fiscal_year": 2027,
                          "area": "Denver / Aurora",
                          "mie_rate": 92,
                          "mie_base": 69,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 69,
                          "lodging_night": true,
                          "lodging": 227,
                          "total": 296
                        },
                        {
                          "date": "2027-06-02",
                          "fiscal_year": 2027,
                          "area": "Denver / Aurora",
                          "mie_rate": 92,
                          "mie_base": 92,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 92,
                          "lodging_night": true,
                          "lodging": 227,
                          "total": 319
                        },
                        {
                          "date": "2027-06-03",
                          "fiscal_year": 2027,
                          "area": "Denver / Aurora",
                          "mie_rate": 92,
                          "mie_base": 69,
                          "meals_provided": [],
                          "meal_deduction": 0,
                          "mie": 69,
                          "lodging_night": false,
                          "lodging": 0,
                          "total": 69
                        }
                      ],
                      "rules": [
                        "First and last travel days get 75% of the M&IE rate; full days in between get 100%.",
                        "Lodging is the maximum allowed per night (taxes extra), using the rate for the month of each night.",
                        "Provided meals are deducted at the GSA M&IE breakdown amount, one per day starting on day 1, never below $0 per day."
                      ],
                      "sources": [
                        "https://www.gsa.gov/travel/plan-book/per-diem-rates",
                        "https://www.gsa.gov/travel/plan-book/per-diem-rates/mie-breakdown",
                        "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.101",
                        "https://www.ecfr.gov/current/title-41/subtitle-F/chapter-301/subchapter-B/part-301-11/subpart-B/section-301-11.18"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not called through RapidAPI"
          },
          "404": {
            "description": "Location not covered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "operationId": "batch_trips_post",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "items": [
                  {
                    "zip": "10001",
                    "start": "2026-11-02",
                    "end": "2026-11-05"
                  },
                  {
                    "city": "Denver",
                    "state": "CO",
                    "start": "2027-06-01",
                    "end": "2027-06-03"
                  }
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      }
    }
  }
}