{
  "openapi": "3.0.1",
  "info": {
    "title": "Ouedkniss Scraper",
    "description": "Scrape classified ads from ouedkniss.com via the public GraphQL search API. Use filters or paste an Ouedkniss URL — the URL wins when set.",
    "version": "0.2",
    "x-build-id": "40r2fWf6dW15FEEml"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dadhalfdev~ouedkniss-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dadhalfdev-ouedkniss-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/dadhalfdev~ouedkniss-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dadhalfdev-ouedkniss-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/dadhalfdev~ouedkniss-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dadhalfdev-ouedkniss-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": {
          "input_url": {
            "title": "Input URL",
            "type": "string",
            "description": "Paste an Ouedkniss category or search URL. Overrides every filter when set."
          },
          "category": {
            "title": "Category",
            "enum": [
              "immobilier",
              "automobiles_vehicules",
              "pieces_detachees",
              "telephones",
              "informatique",
              "electronique_electromenager",
              "vetements_mode",
              "sante_beaute",
              "meubles_maison",
              "loisirs_divertissements",
              "sport",
              "offres_demandes_emploi",
              "materiaux_equipement",
              "alimentaires",
              "services",
              "voyages"
            ],
            "type": "string",
            "description": "Listing category, same list as the Ouedkniss homepage menu.",
            "default": "automobiles_vehicules"
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Same as the Ouedkniss search box. Optional."
          },
          "region": {
            "title": "Wilaya",
            "enum": [
              "",
              "adrar",
              "chlef",
              "laghouat",
              "oum-el-bouaghi",
              "batna",
              "bejaia",
              "biskra",
              "bechar",
              "blida",
              "bouira",
              "tamanrasset",
              "tebessa",
              "tlemcen",
              "tiaret",
              "tizi-ouzou",
              "alger",
              "djelfa",
              "jijel",
              "setif",
              "saida",
              "skikda",
              "sidi-bel-abbes",
              "annaba",
              "guelma",
              "constantine",
              "medea",
              "mostaganem",
              "msila",
              "mascara",
              "ouargla",
              "oran",
              "el-bayadh",
              "illizi",
              "bordj-bou-arreridj",
              "boumerdes",
              "el-tarf",
              "tindouf",
              "tissemsilt",
              "el-oued",
              "khenchela",
              "souk-ahras",
              "tipaza",
              "mila",
              "ain-defla",
              "naama",
              "ain-temouchent",
              "ghardaia",
              "relizane",
              "timimoun",
              "bordj-badji-mokhtar",
              "ouled-djellal",
              "beni-abbes",
              "in-salah",
              "in-guezzam",
              "touggourt",
              "djanet",
              "el-mghair",
              "el-meniaa"
            ],
            "type": "string",
            "description": "Algerian wilaya, same list as the site location filter.",
            "default": ""
          },
          "price_min": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in Algerian dinars. Leave empty for no minimum."
          },
          "price_max": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in Algerian dinars. Leave empty for no maximum."
          },
          "origin": {
            "title": "Seller",
            "enum": [
              "",
              "INDIVIDUAL",
              "STORE"
            ],
            "type": "string",
            "description": "Private seller or store, same as the site seller filter.",
            "default": ""
          },
          "delivery": {
            "title": "Delivery available",
            "type": "boolean",
            "description": "Only ads that offer delivery.",
            "default": false
          },
          "exchange": {
            "title": "Exchange possible",
            "type": "boolean",
            "description": "Only ads that accept an exchange.",
            "default": false
          },
          "has_pictures": {
            "title": "With photos",
            "type": "boolean",
            "description": "Only ads that include photos.",
            "default": false
          },
          "has_price": {
            "title": "With a price",
            "type": "boolean",
            "description": "Only ads that show a price.",
            "default": false
          },
          "make": {
            "title": "Car make",
            "enum": [
              "",
              "renault",
              "volkswagen",
              "peugeot",
              "geely",
              "kia",
              "hyundai",
              "fiat",
              "seat",
              "dacia",
              "livan",
              "citroen",
              "skoda",
              "suzuki",
              "chevrolet",
              "toyota",
              "chery",
              "audi",
              "mercedes",
              "nissan",
              "opel",
              "jetour",
              "ford",
              "bmw",
              "mg",
              "mitsubishi",
              "mazda",
              "byd",
              "honda",
              "jeep"
            ],
            "type": "string",
            "description": "Car brand. Used when the category is Cars & Vehicles.",
            "default": ""
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "",
              "essence",
              "diesel",
              "gpl",
              "hybride",
              "electrique"
            ],
            "type": "string",
            "description": "Fuel type. Used when the category is Cars & Vehicles.",
            "default": ""
          },
          "year": {
            "title": "Model year",
            "minimum": 1970,
            "maximum": 2030,
            "type": "integer",
            "description": "Exact model year for cars, such as 2024. Leave empty for any year."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "refreshed",
              "created"
            ],
            "type": "string",
            "description": "Listing order. Price sort is not available on Ouedkniss search.",
            "default": "refreshed"
          },
          "max_results": {
            "title": "Maximum number of results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many rows to return (1–2000).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}