{
  "openapi": "3.0.1",
  "info": {
    "title": "USASpending Federal Awards Tracker (No API Key)",
    "description": "Search US federal contract, grant, loan, and other awards from the official USASpending.gov API (no key). Filter by award type, agency, recipient keyword, NAICS, PSC, amount, and date; flatten CRM-ready rows with recipient, agency, amount, dates, and award links.",
    "version": "0.1",
    "x-build-id": "0zaSm3EHyyv0s8x64"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intenal_builds~usaspending-federal-awards-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intenal_builds-usaspending-federal-awards-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/intenal_builds~usaspending-federal-awards-tracker/runs": {
      "post": {
        "operationId": "runs-sync-intenal_builds-usaspending-federal-awards-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/intenal_builds~usaspending-federal-awards-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-intenal_builds-usaspending-federal-awards-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "awardTypes": {
            "title": "Award types",
            "type": "array",
            "description": "Which award categories to search. USASpending only allows one category per request, so each selected category is queried separately and Max awards is split evenly across them.",
            "items": {
              "type": "string",
              "enum": [
                "contracts",
                "idvs",
                "grants",
                "loans",
                "direct_payments",
                "other",
                "all"
              ],
              "enumTitles": [
                "Contracts (A, B, C, D)",
                "IDVs / vehicles (GWAC, IDIQ, FSS, BPA, BOA)",
                "Grants & cooperative agreements (02-05)",
                "Loans (07, 08)",
                "Direct payments (06, 10)",
                "Other assistance / insurance (09, 11)",
                "All of the above"
              ]
            },
            "default": [
              "contracts"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. Full-text keywords matched across award descriptions, recipients, and IDs, e.g. \"cybersecurity\" or \"drone\".",
            "items": {
              "type": "string"
            }
          },
          "recipientNameContains": {
            "title": "Recipient name / UEI contains",
            "type": "string",
            "description": "Optional. Search text matched against the recipient's name, UEI, or DUNS, e.g. \"Lockheed\" or \"Booz Allen\"."
          },
          "awardingAgencyName": {
            "title": "Awarding agency (top-tier name)",
            "type": "string",
            "description": "Optional. Exact top-tier agency name as shown on USASpending.gov, e.g. \"Department of Defense\", \"Department of Veterans Affairs\", \"National Aeronautics and Space Administration\"."
          },
          "awardingSubAgencyName": {
            "title": "Awarding sub-agency (sub-tier name)",
            "type": "string",
            "description": "Optional. Exact sub-tier name, e.g. \"Department of the Army\" or \"Federal Emergency Management Agency\"."
          },
          "recipientStates": {
            "title": "Recipient states",
            "type": "array",
            "description": "Optional. Two-letter US state codes for the recipient's location, e.g. TX, VA, AR.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (contracts/IDVs)",
            "type": "array",
            "description": "Optional. NAICS codes or prefixes, e.g. 541512 or 54. Applies to contracts and IDVs only.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (contracts/IDVs)",
            "type": "array",
            "description": "Optional. Product/Service codes, e.g. D399, R425. Applies to contracts and IDVs only.",
            "items": {
              "type": "string"
            }
          },
          "minAwardAmount": {
            "title": "Min award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Only awards with total obligated amount (or loan face value) at or above this."
          },
          "maxAwardAmount": {
            "title": "Max award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Only awards at or below this amount."
          },
          "startDate": {
            "title": "From date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional. Start of the time window. Defaults to 30 days before the end date. Earliest supported: 2007-10-01."
          },
          "endDate": {
            "title": "To date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional. End of the time window. Defaults to today."
          },
          "dateType": {
            "title": "Date window applies to",
            "enum": [
              "new_awards_only",
              "action_date",
              "last_modified_date"
            ],
            "type": "string",
            "description": "How the date window is matched. \"New awards only\" returns awards first signed inside the window (best for fresh leads).",
            "default": "new_awards_only"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "largest",
              "recently_modified"
            ],
            "type": "string",
            "description": "Result order (descending).",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max awards",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of awards to return in total (split evenly across selected award types).",
            "default": 100
          },
          "userAgent": {
            "title": "User-Agent contact",
            "type": "string",
            "description": "Declared User-Agent sent to api.usaspending.gov.",
            "default": "USASpending Federal Awards Tracker jeaton1019@gmail.com"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}