{
  "openapi": "3.0.1",
  "info": {
    "title": "Grant Funders API with Contacts and 990 Awards: Instrumentl",
    "description": "Search grant funders by name or EIN, read funder profiles and funder contacts, Form 990 tax returns and grant awards, AI grant and funder matches, saved grants and projects through the Instrumentl API, as clean rows for CSV, Excel or JSON. Bring your own key.",
    "version": "0.1",
    "x-build-id": "n0d36mY8jhR8bByVZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~grant-funders-search-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-grant-funders-search-api",
        "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/nabeelbaghoor~grant-funders-search-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-grant-funders-search-api",
        "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/nabeelbaghoor~grant-funders-search-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-grant-funders-search-api",
        "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": {
          "mode": {
            "title": "What to read",
            "enum": [
              "funderSearch",
              "funderDetails",
              "funderContacts",
              "grantSearch",
              "grantDetails",
              "grantMatches",
              "funderMatches",
              "savedGrants",
              "projects",
              "taxReturns",
              "taxAwards"
            ],
            "type": "string",
            "description": "Each mode calls one read only Instrumentl API v1 endpoint with your key. Funder search, contacts, matches and the 990 modes cover research; grants, saved grants and projects read your own account.",
            "default": "funderSearch"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "string",
            "description": "Funder search: a funder name, sent as search. Funder contacts: a contact name, email, phone, note or funder name. Projects: a project title."
          },
          "eins": {
            "title": "EINs",
            "type": "array",
            "description": "Funder search and the two Form 990 modes. One nine digit EIN per line, with or without the dash.",
            "items": {
              "type": "string"
            }
          },
          "funderIds": {
            "title": "Funder IDs",
            "type": "array",
            "description": "Funder details, funder contacts and grants modes. Instrumentl funder IDs from the id column of the funder search mode. The grants mode reads each funder's grants in turn.",
            "items": {
              "type": "string"
            }
          },
          "grantIds": {
            "title": "Grant IDs",
            "type": "array",
            "description": "Grant details mode. Instrumentl grant IDs from the grants, AI grant matches or saved grants modes.",
            "items": {
              "type": "string"
            }
          },
          "projectIds": {
            "title": "Project IDs",
            "type": "array",
            "description": "AI grant matches, AI funder matches and saved grants modes. Instrumentl project IDs from the projects mode. Saved grants without a project read the whole account tracker.",
            "items": {
              "type": "string"
            }
          },
          "funderSource": {
            "title": "Funder and grant source",
            "enum": [
              "",
              "instrumentl",
              "custom"
            ],
            "type": "string",
            "description": "Funder search and grants modes. Only funders or grants built by Instrumentl's research team, only the custom ones your account added, or both.",
            "default": ""
          },
          "savedOnly": {
            "title": "Saved to my tracker only",
            "type": "boolean",
            "description": "Funder search and grants modes. Only funders with at least one grant saved to your tracker, or only grants saved to a project (sent as is_saved=true)."
          },
          "limitedSubmissionOnly": {
            "title": "Limited submission grants only",
            "type": "boolean",
            "description": "Grants mode. Only limited submission grants."
          },
          "openNow": {
            "title": "Open for applications now",
            "type": "boolean",
            "description": "Grants mode. Only grants with an upcoming deadline, plus rolling grants that accept applications at any time."
          },
          "deadlineFrom": {
            "title": "Next deadline on or after",
            "type": "string",
            "description": "Grants and AI grant matches modes. yyyy-mm-dd, sent as deadline_gte."
          },
          "deadlineTo": {
            "title": "Next deadline on or before",
            "type": "string",
            "description": "Grants and AI grant matches modes. yyyy-mm-dd, sent as deadline_lte. Useful for grants closing soon."
          },
          "createdAfter": {
            "title": "Added since",
            "type": "string",
            "description": "Grants mode: grants added to Instrumentl on or after this date. AI grant matches mode: matches surfaced on or after this date, for what is new this week."
          },
          "statuses": {
            "title": "Saved grant statuses",
            "type": "array",
            "description": "Saved grants mode. Only saved grants in these pipeline stages.",
            "items": {
              "type": "string",
              "enum": [
                "researching",
                "planned",
                "loi_in_progress",
                "loi_submitted",
                "started",
                "submitted",
                "declined",
                "abandoned",
                "funding_awarded",
                "closed"
              ],
              "enumTitles": [
                "Researching",
                "Planned",
                "LOI in progress",
                "LOI submitted",
                "Started",
                "Submitted",
                "Declined",
                "Abandoned",
                "Funding awarded",
                "Closed"
              ]
            }
          },
          "awardYear": {
            "title": "Award fiscal year",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Saved grants mode. Saved grants whose award starts or ends within this fiscal year."
          },
          "submissionGoalFrom": {
            "title": "Submission goal on or after",
            "type": "string",
            "description": "Saved grants mode. yyyy-mm-dd, sent as submission_goal_gte."
          },
          "submissionGoalTo": {
            "title": "Submission goal on or before",
            "type": "string",
            "description": "Saved grants mode. yyyy-mm-dd, sent as submission_goal_lte."
          },
          "taxYears": {
            "title": "Tax years",
            "type": "array",
            "description": "Form 990 modes. Optional. Only tax returns for these years, in YYYY format.",
            "items": {
              "type": "string"
            }
          },
          "maxReturnsPerEin": {
            "title": "Tax returns per EIN",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Form 990 grant awards mode. How many of each organization's newest tax returns (with awards) to read awards from.",
            "default": 3
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. Lists page up to 200 at a time.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Pacing for calls to Instrumentl. The API allows 5 requests a second per account. Throttled calls are retried after a pause.",
            "default": 240
          },
          "apiKey": {
            "title": "Instrumentl API key",
            "type": "string",
            "description": "An API key from the API Integration page of your Instrumentl account (instr-apikey-...), or its key ID and key joined by a colon. Stored as a secret, sent only in the HTTP basic Authorization header to api.instrumentl.com and never logged. You can instead set the DATA_API_KEY environment secret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}