{
  "openapi": "3.0.1",
  "info": {
    "title": "USAspending [$0.50 💰] Federal Awards & Contracts",
    "description": "$0.50 per 1,000 results — Search U.S. federal awards and contracts with recipient, agency, keyword, NAICS, PSC, location, date, amount and award-type filters.",
    "version": "1.0",
    "x-build-id": "dOJdVEf2fbgdgtwfS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapecrafter~usaspending-0-50-federal-awards-contracts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapecrafter-usaspending-0-50-federal-awards-contracts",
        "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/scrapecrafter~usaspending-0-50-federal-awards-contracts/runs": {
      "post": {
        "operationId": "runs-sync-scrapecrafter-usaspending-0-50-federal-awards-contracts",
        "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/scrapecrafter~usaspending-0-50-federal-awards-contracts/run-sync": {
      "post": {
        "operationId": "run-sync-scrapecrafter-usaspending-0-50-federal-awards-contracts",
        "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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "mode": {
            "title": "Search Mode",
            "enum": [
              "awards",
              "recipients"
            ],
            "type": "string",
            "description": "Choose award-level or recipient-focused award search.",
            "default": "awards"
          },
          "recipient": {
            "title": "Recipient / Company",
            "type": "string",
            "description": "Search by recipient/company name, UEI, or DUNS."
          },
          "recipientIds": {
            "title": "Recipient UEI / DUNS",
            "type": "array",
            "description": "Optional UEI or DUNS values. The first value is used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keywords to search in award information.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "awardTypeCodes": {
            "title": "Award Type Codes",
            "type": "array",
            "description": "Codes from one award group only. Contracts: A,B,C,D. Grants: 02,03,04,05,F001,F002. Loans: 07,08,F003,F004. IDVs: IDV_A,IDV_B,IDV_B_A,IDV_B_B,IDV_B_C,IDV_C,IDV_D,IDV_E. Other financial assistance: 06,10. Defaults to contracts.",
            "default": [
              "A",
              "B",
              "C",
              "D"
            ],
            "items": {
              "type": "string"
            }
          },
          "spendingLevel": {
            "title": "Spending Level",
            "enum": [
              "awards",
              "subawards"
            ],
            "type": "string",
            "description": "Search awards or subawards.",
            "default": "awards"
          },
          "startDate": {
            "title": "Start Date",
            "type": "string",
            "description": "Start date in YYYY-MM-DD format."
          },
          "endDate": {
            "title": "End Date",
            "type": "string",
            "description": "End date in YYYY-MM-DD format."
          },
          "recipientScope": {
            "title": "Recipient Scope",
            "enum": [
              "all",
              "domestic",
              "foreign"
            ],
            "type": "string",
            "description": "Limit recipients to domestic or foreign entities.",
            "default": "all"
          },
          "placeOfPerformanceScope": {
            "title": "Place of Performance Scope",
            "enum": [
              "all",
              "domestic",
              "foreign"
            ],
            "type": "string",
            "description": "Limit performance locations to domestic or foreign.",
            "default": "all"
          },
          "recipientCountry": {
            "title": "Recipient Country",
            "type": "string",
            "description": "USAspending recipient country code."
          },
          "performanceCountry": {
            "title": "Performance Country",
            "type": "string",
            "description": "USAspending place-of-performance country code."
          },
          "recipientTypes": {
            "title": "Recipient Types",
            "type": "array",
            "description": "USAspending recipient/business type names.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Advanced USAspending agency filter objects.",
            "default": []
          },
          "naicsCodes": {
            "title": "NAICS Codes",
            "type": "array",
            "description": "NAICS codes to require.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC Codes",
            "type": "array",
            "description": "Product and Service Codes to filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minAwardAmount": {
            "title": "Minimum Award Amount",
            "type": "number",
            "description": "Minimum award amount in USD."
          },
          "maxAwardAmount": {
            "title": "Maximum Award Amount",
            "type": "number",
            "description": "Maximum award amount in USD."
          },
          "maxItems": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of dataset items to return.",
            "default": 1000
          },
          "pageSize": {
            "title": "API Page Size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of records requested per USAspending API call. Maximum is 100.",
            "default": 100
          },
          "fields": {
            "title": "USAspending Fields",
            "type": "array",
            "description": "Optional advanced USAspending field names. Leave empty to use the Actor's standard output fields.",
            "default": [],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}