{
  "openapi": "3.0.1",
  "info": {
    "title": "Iskur Ilan Scraper Email",
    "description": "Türkiye İŞKUR (İş ve İşçi Bulma Kurumu) sisteminden otomatik olarak iş ilanlarını çeken ve email ile bildirim gönderen Apify Actor'ü.",
    "version": "2.0",
    "x-build-id": "bCaubWiGUl4VpbGMh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sevimliai~iskur-ilan-scraper-email/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sevimliai-iskur-ilan-scraper-email",
        "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/sevimliai~iskur-ilan-scraper-email/runs": {
      "post": {
        "operationId": "runs-sync-sevimliai-iskur-ilan-scraper-email",
        "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/sevimliai~iskur-ilan-scraper-email/run-sync": {
      "post": {
        "operationId": "run-sync-sevimliai-iskur-ilan-scraper-email",
        "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": [
          "tcKimlikNo",
          "sifre",
          "recipientEmail",
          "senderEmail",
          "emailPassword"
        ],
        "properties": {
          "tcKimlikNo": {
            "title": "TC Kimlik No",
            "type": "string",
            "description": "İŞKUR hesabınızın TC Kimlik Numarası"
          },
          "sifre": {
            "title": "Şifre",
            "type": "string",
            "description": "İŞKUR hesabınızın şifresi"
          },
          "isyeriTuru": {
            "title": "İşyeri Türü",
            "enum": [
              "ozel",
              "kamu"
            ],
            "type": "string",
            "description": "İşyeri türü",
            "default": "ozel"
          },
          "il": {
            "title": "İl",
            "type": "string",
            "description": "İş aramak istediğiniz il",
            "default": "OSMANİYE"
          },
          "ilanTarihi": {
            "title": "İlan Tarihi",
            "enum": [
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "İlan yayın tarihi filtresi",
            "default": "3"
          },
          "ilanTuru": {
            "title": "İlan Türü",
            "enum": [
              "normal",
              "iup",
              "typ",
              "hepsi"
            ],
            "type": "string",
            "description": "Hangi tür ilanları çekmek istediğinizi seçin",
            "default": "hepsi"
          },
          "excludedKeywords": {
            "title": "Dışlanacak Kelimeler",
            "type": "array",
            "description": "Çalışma yeri alanında bu kelimelerden herhangi birini içeren ilanlar filtrelenecek (örn: KADİRLİ, DÜZCE, ANKARA)",
            "items": {
              "type": "string"
            },
            "default": [
              "KADİRLİ"
            ]
          },
          "recipientEmail": {
            "title": "Alıcı Email Adresi",
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
            "type": "string",
            "description": "İlan sonuçlarının gönderileceği email adresi"
          },
          "senderEmail": {
            "title": "Gönderici Email Adresi",
            "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
            "type": "string",
            "description": "İlan gönderecek email adresi (Yandex, Gmail, Outlook vb.)"
          },
          "emailPassword": {
            "title": "Email Şifresi",
            "type": "string",
            "description": "Email şifreniz veya App Password"
          },
          "smtpHost": {
            "title": "SMTP Host",
            "type": "string",
            "description": "SMTP sunucusu (örn: smtp.yandex.com, smtp.gmail.com, smtp-mail.outlook.com)",
            "default": "smtp.yandex.com"
          },
          "smtpPort": {
            "title": "SMTP Port",
            "type": "integer",
            "description": "SMTP port numarası (genellikle 587)",
            "default": 587
          },
          "emailSubjectPrefix": {
            "title": "Email Konu Başlığı Ön Eki",
            "type": "string",
            "description": "Email konu başlığına eklenecek özel ön ek (opsiyonel)",
            "default": "İŞKUR İlan Bildirimi"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}