Twinkle HubTwinkle Hub
登入

📌 2026-08-17 新增:⚖️ 台灣法條時光機 — 歷史法條原文 · 修法沿革 · 全文檢索 · 條文關聯圖(935 個 dataset · 35,454+ 筆 row)

查看完整 Changelog →

美國聯邦標案 · 依 NAICS 產業碼查詢

us_search_by_naics

台灣​專屬MIT

**關鍵字 / Keywords**: 美國聯邦標案 NAICS 產業碼 industry code aircraft manufacturing computer programming construction healthcare defense semiconductor USASpending federal spending awards by industry

Scope: US federal awards filtered to one NAICS industry code —
thin convenience over `us_search_awards` with `naics_codes` pre-set.

Endpoint (same as us_search_awards):
    POST https://api.usaspending.gov/api/v2/search/spending_by_award/

Args:
    naics_code: 6-digit NAICS code. Frequent hits:
                `"336411"` Aircraft Manufacturing ·
                `"541511"` Custom Computer Programming Services ·
                `"541330"` Engineering Services ·
                `"336414"` Guided Missile & Space Vehicle Mfg ·
                `"622110"` General Medical & Surgical Hospitals ·
                `"334220"` Radio / TV Broadcasting Equipment.
    date_from / date_to: YYYY-MM-DD `action_date` bounds
                         (default = federal FY25).
    award_group: `"contracts"` (default) · `"grants"` · `"loans"` ·
                 `"direct_payments"` · `"other"` · `"idvs"`.
    page, limit, sort, order: pagination + sort (see
                              `us_search_awards`).

Returns the same shape as `us_search_awards`. License:
"Creative Commons Zero v1.0 Universal (CC0-1.0)". Rate-limited
to ~5 req/sec.

輸入 schema

{
  "properties": {
    "naics_code": {
      "title": "Naics Code",
      "type": "string"
    },
    "date_from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Date From"
    },
    "date_to": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Date To"
    },
    "award_group": {
      "default": "contracts",
      "title": "Award Group",
      "type": "string"
    },
    "page": {
      "default": 1,
      "title": "Page",
      "type": "integer"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    },
    "sort": {
      "default": "Award Amount",
      "title": "Sort",
      "type": "string"
    },
    "order": {
      "default": "desc",
      "title": "Order",
      "type": "string"
    }
  },
  "required": [
    "naics_code"
  ],
  "title": "us_search_by_naicsArguments",
  "type": "object"
}

呼叫​方式

配置​好 Twinkle Hub 的 MCP client 後,​agent 會​看到 us_search_by_naics。直接讓它呼叫​即可,​例如:

# Ask Claude / any MCP client:
請用 us_search_by_naics 處理 "…"。

# It will call:
us_search_by_naics(input="…")

尚未​設定 Client?

Claude Desktop 約 3 分鐘即可完成​設定 — 下載 .mcpb 檔案並雙擊​即可,或參閱​文件中的各 Client 安裝​步驟。

查看使用者設定​文件