{
  "openapi": "3.0.1",
  "info": {
    "title": "There's An AI For That Scraper - AI Tools, Launches & Leads",
    "description": "Scrape There's An AI For That (TAAFT): AI tools & GPTs by task/category, new daily launches, ratings, views, pricing, maker website & contact leads. Filters + monitor mode.",
    "version": "0.1",
    "x-build-id": "pG8MlcuN4TNWAeoAH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~theresanaiforthat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-theresanaiforthat-scraper",
        "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/scrapesage~theresanaiforthat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-theresanaiforthat-scraper",
        "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/scrapesage~theresanaiforthat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-theresanaiforthat-scraper",
        "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": {
          "tasks": {
            "title": "Tasks / categories",
            "type": "array",
            "description": "AI-tool task or category names/slugs to scrape from There's An AI For That (e.g. \"copywriting\", \"customer support\", \"video editing\", \"coding\", \"seo\"). Each maps to a task page (theresanaiforthat.com/task/<slug>/) whose AI tools are collected. Names are auto-slugified.",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "New-launch window",
            "enum": [
              "",
              "today",
              "yesterday",
              "this-week",
              "this-month",
              "last-month",
              "this-year"
            ],
            "type": "string",
            "description": "Scrape newly launched AI tools for a time window. Great with Monitor mode for a daily new-AI-tools feed.",
            "default": ""
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Free-text topics (e.g. \"logo design\", \"meeting notes\"). Each is matched to the closest task/category page. If a keyword has no matching page it is skipped with a warning.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Any theresanaiforthat.com URLs — task pages, /period/ pages, or individual tool pages (/ai/<slug>/ or /gpt/<slug>/). Each is auto-detected: listing pages yield many tools, tool pages yield one detailed record.",
            "items": {
              "type": "string"
            }
          },
          "toolUrls": {
            "title": "Specific tool URLs or slugs",
            "type": "array",
            "description": "Individual AI tools to fetch as detailed records — full URLs (https://theresanaiforthat.com/ai/<slug>/) or bare slugs. Forces detail fetching for these tools.",
            "items": {
              "type": "string"
            }
          },
          "includeToolDetails": {
            "title": "Fetch full tool details",
            "type": "boolean",
            "description": "Visit each tool's own page for extra fields (long description, use-cases, alternatives, aggregate rating & review count, social links) — one extra request per tool. Turn OFF for fast, large sweeps that only need the rich listing-card fields.",
            "default": false
          },
          "enrichWebsiteContacts": {
            "title": "Enrich maker contacts (emails, socials)",
            "type": "boolean",
            "description": "Crawl each tool's own website for contact emails, phone and social links — turning listings into AI-maker/founder leads. One extra request per tool.",
            "default": false
          },
          "pricingModel": {
            "title": "Filter: pricing model",
            "enum": [
              "any",
              "free",
              "freemium",
              "paid"
            ],
            "type": "string",
            "description": "Keep only tools with this pricing model.",
            "default": "any"
          },
          "minRating": {
            "title": "Filter: minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only tools with at least this star rating (0–5). Note: only tools with enough reviews show a rating.",
            "default": 0
          },
          "verifiedOnly": {
            "title": "Filter: verified/claimed tools only",
            "type": "boolean",
            "description": "Keep only tools whose listing has been claimed/verified by the owner.",
            "default": false
          },
          "releasedWithinDays": {
            "title": "Filter: released within N days",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only tools launched within this many days (0 = no limit).",
            "default": 0
          },
          "excludeGpts": {
            "title": "Filter: exclude custom GPTs",
            "type": "boolean",
            "description": "Exclude custom ChatGPT GPTs, keeping only standalone AI tools.",
            "default": false
          },
          "keyword": {
            "title": "Filter: keyword match",
            "type": "string",
            "description": "Keep only tools whose name, tagline, or task contains this text."
          },
          "country": {
            "title": "Filter: maker country",
            "type": "string",
            "description": "Keep only tools whose declared maker country matches (name or ISO-2 code, e.g. \"United States\" or \"US\"). Only some tools declare a country."
          },
          "maxResults": {
            "title": "Max results (tools)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of tool records to return. Set to 0 for no limit (explicit opt-in; use with a run timeout).",
            "default": 100
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Track tools across runs in a key-value store and output only tools that are new or whose rating/version/popularity changed. Ideal on an Apify Schedule for a daily new-AI-tools feed.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store for monitor-mode state (lowercase letters, digits, hyphens).",
            "default": "taaft-scraper-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "There's An AI For That is behind Cloudflare; US Residential proxy (the default) is strongly recommended so blocked requests can rotate to a fresh IP and retry.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}