{
  "openapi": "3.0.1",
  "info": {
    "title": "Eksi Sozluk Scraper",
    "description": "Scrape Eksi Sozluk entries, topics, authors, search results, channels and DEBE. Fast HTTP scraper, no browser.",
    "version": "0.0",
    "x-build-id": "Mv9M3IBJb8UfDHPvg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dodoflix~eksisozluk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dodoflix-eksisozluk-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/dodoflix~eksisozluk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dodoflix-eksisozluk-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/dodoflix~eksisozluk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dodoflix-eksisozluk-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Any Eksi Sozluk URL: a topic (https://eksisozluk.com/linux--32084, add ?a=nice or ?day=2024-05-01 to filter), a single entry (/entry/1683), an author (/biri/nick) or a list (/basliklar/gundem).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search topics for. The matching topics are then scraped.",
            "items": {
              "type": "string"
            }
          },
          "searchAuthor": {
            "title": "Search author",
            "type": "string",
            "description": "Only entries by this author in the topics found. Works alone or with search queries."
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "Count",
              "Date",
              "Topic"
            ],
            "type": "string",
            "description": "How the matching topics are ordered.",
            "default": "Count"
          },
          "searchFrom": {
            "title": "Search from date",
            "type": "string",
            "description": "Only topics with entries since this date (YYYY-MM-DD)."
          },
          "searchTo": {
            "title": "Search to date",
            "type": "string",
            "description": "Only topics with entries until this date (YYYY-MM-DD)."
          },
          "searchNiceOnly": {
            "title": "Search nice entries only",
            "type": "boolean",
            "description": "Match only topics with 'sukela' (nice) entries.",
            "default": false
          },
          "authors": {
            "title": "Authors",
            "type": "array",
            "description": "Usernames or profile URLs. Outputs the profile and the entries chosen below.",
            "items": {
              "type": "string"
            }
          },
          "authorContent": {
            "title": "Author entries",
            "enum": [
              "latest",
              "mostFavorited",
              "favorites",
              "none"
            ],
            "type": "string",
            "description": "Which entries to scrape for each author.",
            "default": "latest"
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Channel names such as spor, siyaset, teknoloji, sinema, ekonomi.",
            "items": {
              "type": "string"
            }
          },
          "includePopular": {
            "title": "Popular topics (gundem)",
            "type": "boolean",
            "description": "Scrape today's popular topics.",
            "default": false
          },
          "includeDebe": {
            "title": "DEBE (best entries of yesterday)",
            "type": "boolean",
            "description": "Scrape yesterday's best entries.",
            "default": false
          },
          "sort": {
            "title": "Entry order in topics",
            "enum": [
              "default",
              "nice",
              "dailyNice",
              "popular"
            ],
            "type": "string",
            "description": "Overrides the ?a= setting of topic URLs. Default is the site's own order.",
            "default": "default"
          },
          "topicsOnly": {
            "title": "Topics only",
            "type": "boolean",
            "description": "For lists, search and channels: output the topics (title, URL, entry count) and skip their entries.",
            "default": false
          },
          "maxItems": {
            "title": "Max items in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many results. Leave empty for no limit."
          },
          "maxEntriesPerTopic": {
            "title": "Max entries per topic",
            "minimum": 1,
            "type": "integer",
            "description": "Stop paginating a topic after this many entries.",
            "default": 100
          },
          "maxEntriesPerAuthor": {
            "title": "Max entries per author",
            "minimum": 1,
            "type": "integer",
            "description": "Entries to collect for each author.",
            "default": 100
          },
          "maxListItems": {
            "title": "Max items per list",
            "minimum": 1,
            "type": "integer",
            "description": "Topics (or entries for DEBE) taken from each search, channel or list source.",
            "default": 10
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "type": "integer",
            "description": "The site returns 503 above roughly 5 requests per second from one IP. Raise this only if you see no 503s.",
            "default": 150
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The site blocks datacenter IPs (403), so the default is Apify residential proxy in Turkey. Without a proxy it only works from a home or office connection.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "TR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}