{
  "openapi": "3.0.1",
  "info": {
    "title": "USAspending Federal Awards API: contracts & grants by recipient",
    "description": "US government contracts, grants and loans by recipient company or stock ticker, every agency, from USAspending.gov: winner, UEI, parent company, agency, amounts, dates, NAICS/PSC/assistance listing, place of performance and a source link. Filter by company, ticker, agency, keyword, state, date.",
    "version": "0.1",
    "x-build-id": "3rqTDkMgMVjbPQFov"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bosco_labs~us-federal-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bosco_labs-us-federal-awards",
        "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/bosco_labs~us-federal-awards/runs": {
      "post": {
        "operationId": "runs-sync-bosco_labs-us-federal-awards",
        "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/bosco_labs~us-federal-awards/run-sync": {
      "post": {
        "operationId": "run-sync-bosco_labs-us-federal-awards",
        "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": {
          "recipients": {
            "title": "Recipient names or UEIs",
            "type": "array",
            "description": "Winning organisations, as name text or 12-character SAM UEI, e.g. [\"palantir\"], [\"university of texas\"] or [\"FSY4LVSBGWB7\"]. USAspending matches the text against recipient and parent company names and UEIs. Empty (default) = all recipients.",
            "items": {
              "type": "string",
              "pattern": "^[^\\[\\]{}<>\\r\\n]*$"
            }
          },
          "tickers": {
            "title": "Stock tickers",
            "type": "array",
            "description": "Only awards whose recipient or its parent company matches these US-listed tickers (NYSE, Nasdaq, CBOE; exact cleaned SEC company name), e.g. [\"PLTR\"] or [\"LMT\", \"BAH\"]. Subsidiaries are found through their parent company. Empty (default) = no ticker filter; every row still gets a ticker when its name matches.",
            "items": {
              "type": "string",
              "pattern": "^\\s*[A-Za-z0-9][A-Za-z0-9./-]{0,9}\\s*$"
            }
          },
          "agencies": {
            "title": "Awarding agencies",
            "type": "array",
            "description": "Awarding agencies by abbreviation, name or toptier code, e.g. [\"NASA\"], [\"Department of Energy\"], [\"097\"] (DoD). A name that is not a top-tier agency is searched as a sub-agency, e.g. [\"Defense Logistics Agency\"]. Empty (default) = all federal agencies.",
            "items": {
              "type": "string",
              "pattern": "^[^\\[\\]{}<>\\r\\n]*$"
            }
          },
          "awardTypes": {
            "title": "Award types",
            "type": "array",
            "description": "Which awards: \"contracts\" (USAspending codes A-D: BPA calls, purchase orders, delivery orders, definitive contracts), \"grants\" (02-05: block, formula, project grants, cooperative agreements), \"loans\" (07, 08), \"direct_payments\" (06, 10), \"other\" (09, 11: insurance, other assistance). E.g. [\"grants\"]. Default [\"contracts\"].",
            "items": {
              "type": "string",
              "enum": [
                "contracts",
                "grants",
                "loans",
                "direct_payments",
                "other"
              ],
              "enumTitles": [
                "Contracts",
                "Grants and cooperative agreements",
                "Loans and loan guarantees",
                "Direct payments",
                "Other financial assistance (insurance, other)"
              ]
            },
            "default": [
              "contracts"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Full-text search over award descriptions and other text fields, e.g. [\"artificial intelligence\"] or [\"cybersecurity\"]. Several keywords = any of them. Empty (default) = no keyword filter.",
            "items": {
              "type": "string",
              "pattern": "^[^\\[\\]{}<>\\r\\n]*$"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (contracts)",
            "type": "array",
            "description": "NAICS industry codes, 2 to 6 digits, e.g. [\"541512\"] (computer systems design) or [\"3364\"]. Contracts only. Empty (default) = all.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (contracts)",
            "type": "array",
            "description": "Product and Service Codes, e.g. [\"DA01\"] (IT software development) or [\"AR\"] (space R&D). Contracts only. Empty (default) = all.",
            "items": {
              "type": "string"
            }
          },
          "cfdaNumbers": {
            "title": "Assistance listings (grants)",
            "type": "array",
            "description": "Assistance listing (CFDA) numbers as NN.NNN, e.g. [\"47.070\"] (NSF computer and information science) or [\"93.855\"] (NIH allergy and infectious diseases). Financial assistance only. Empty (default) = all.",
            "items": {
              "type": "string",
              "pattern": "^\\s*\\d{2}\\.\\d{3}\\s*$"
            }
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance: US states",
            "type": "array",
            "description": "Two-letter US state or territory codes where the work is done, e.g. [\"TX\"] or [\"VA\", \"MD\", \"DC\"]. Empty (default) = anywhere, including abroad.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "PR",
                "GU",
                "VI",
                "AS",
                "MP",
                "UM"
              ],
              "enumTitles": [
                "AL: Alabama",
                "AK: Alaska",
                "AZ: Arizona",
                "AR: Arkansas",
                "CA: California",
                "CO: Colorado",
                "CT: Connecticut",
                "DE: Delaware",
                "DC: District of Columbia",
                "FL: Florida",
                "GA: Georgia",
                "HI: Hawaii",
                "ID: Idaho",
                "IL: Illinois",
                "IN: Indiana",
                "IA: Iowa",
                "KS: Kansas",
                "KY: Kentucky",
                "LA: Louisiana",
                "ME: Maine",
                "MD: Maryland",
                "MA: Massachusetts",
                "MI: Michigan",
                "MN: Minnesota",
                "MS: Mississippi",
                "MO: Missouri",
                "MT: Montana",
                "NE: Nebraska",
                "NV: Nevada",
                "NH: New Hampshire",
                "NJ: New Jersey",
                "NM: New Mexico",
                "NY: New York",
                "NC: North Carolina",
                "ND: North Dakota",
                "OH: Ohio",
                "OK: Oklahoma",
                "OR: Oregon",
                "PA: Pennsylvania",
                "RI: Rhode Island",
                "SC: South Carolina",
                "SD: South Dakota",
                "TN: Tennessee",
                "TX: Texas",
                "UT: Utah",
                "VT: Vermont",
                "VA: Virginia",
                "WA: Washington",
                "WV: West Virginia",
                "WI: Wisconsin",
                "WY: Wyoming",
                "PR: Puerto Rico",
                "GU: Guam",
                "VI: U.S. Virgin Islands",
                "AS: American Samoa",
                "MP: Northern Mariana Islands",
                "UM: U.S. Minor Outlying Islands"
              ]
            }
          },
          "dateFrom": {
            "title": "Actions on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}(T.*)?)?$",
            "type": "string",
            "description": "Earliest action date (signing date of the award or of a modification), YYYY-MM-DD, e.g. \"2026-07-01\". Searchable from 2007-10-01. Empty (default) = 30 days before dateTo. DoD contracts appear up to 90 days late."
          },
          "dateTo": {
            "title": "Actions on or before",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}(T.*)?)?$",
            "type": "string",
            "description": "Latest action date, YYYY-MM-DD, e.g. \"2026-09-30\". Empty (default) = today."
          },
          "minAmount": {
            "title": "Minimum award total (USD)",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "Only awards whose total obligated amount (all actions since signing) is at least this many US dollars, e.g. 1000000. Empty or 0 (default) = no minimum."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "amount",
              "date"
            ],
            "type": "string",
            "description": "\"amount\" (default) = awards ordered by their largest action (obligation) in the date window, largest first; that action is the one shown. \"date\" = ordered by their latest action in the window, newest first. Loans-only searches rank by loan face value.",
            "default": "amount"
          },
          "maxResults": {
            "title": "Max awards",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum award rows, one per award, e.g. 20. Default 20, maximum 1000. Each row is one charged event.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}