{
  "openapi": "3.0.1",
  "info": {
    "title": "Autobip Scraper (autobip.com)",
    "description": "Autobip is Algeria's reference price guide for new and used cars — and a news archive you can search by topic. Collect every new-car version with prices, availability, warranty and detailed specs, the used-car price guide by model and year, and full articles, in Arabic or French.",
    "version": "0.0",
    "x-build-id": "FpZgKXdaWH4gwts3M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hamza325~autobip-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hamza325-autobip-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/hamza325~autobip-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hamza325-autobip-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/hamza325~autobip-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hamza325-autobip-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": {
          "pageUrl": {
            "title": "URL",
            "type": "string",
            "description": "Paste any Autobip link straight from the browser's address bar — this one field is the whole input. A search link (`/fr/recherche/?query=toyota`) collects the articles matching that search, which is the usual starting point; an article link collects that one article with its pictures; a category page or the archive (`/fr/actualites`) collects the articles themselves. For vehicles, the catalogue (`/fr/prix-du-neuf/`) collects every new-car version with its equipment list, a brand page one brand, a model page one model, a version page one version; the used-price page (`/fr/prix-voitures-occasion-algerie/`) collects the used-price guide, and a used brand or model page narrows it. The link's language (Arabic or French) is read from it, and a `?page=` it carries is honoured. Pages this Actor does not collect (the comparator, the budget finder, the valuation calculator, an author page) are refused with a sentence saying what to paste instead. The prefilled link is a search, which is the fastest complete run."
          },
          "startMode": {
            "title": "What to scrape",
            "enum": [
              "auto",
              "newPrices",
              "newModels",
              "usedGuide",
              "news",
              "newsSearch",
              "article"
            ],
            "type": "string",
            "description": "`auto` (the default) covers every task below from a pasted link. The explicit modes are for runs with no link to paste; they then take their fields from the sections below.",
            "default": "auto"
          },
          "language": {
            "title": "Language",
            "enum": [
              "fr",
              "ar"
            ],
            "type": "string",
            "description": "Leave empty to follow the pasted link's language (and fall back to French). Setting it overrides the link: one language per run, and it also chooses the labels on catalogue rows. Articles keep their own language in the `language` column and carry their title and body as the site published them."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Narrow the run to some brands: names (`Chery`, `Mercedes Benz`), slugs (`mercedes-benz`) or ids from a previous run. Leave empty to follow the pasted link (all brands for the catalogue page, one brand for a brand page), and for every brand when there is no link. A name that is not in the live catalogue fails the run with the list of real brands instead of returning nothing.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Article category",
            "type": "string",
            "description": "For the news mode: empty or `all` reads every category; an id (`2`), a slug (`promotions_remises`) or a label (`Promotions et remises`) reads one. A pasted category link fills this. The categories are read from the site at run time."
          },
          "tag": {
            "title": "Tag",
            "type": "string",
            "description": "For the news-search mode, required: the tag or keyword to search the archive for. A pasted search link fills this."
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "News modes: stop reading a category once articles are older than this date (the archive is newest-first). Leave empty for the whole archive."
          },
          "includeSpecs": {
            "title": "Include equipment lists",
            "type": "boolean",
            "description": "New-car price runs: add each version's equipment list (engine, vehicle, look, comfort, safety). Turning it off makes the run faster and leaves those columns empty.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Row cap for the whole run. The default keeps a run quick; 0 collects everything.",
            "default": 200
          },
          "maxPages": {
            "title": "Maximum pages per category",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "News: page cap per category. The default keeps a run quick; 0 pages each category to its end.",
            "default": 5
          },
          "startPage": {
            "title": "Starting page",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "News modes: first page to read — to resume a long archive run or to start mid-list. A `?page=` in the pasted link sets it.",
            "default": 1
          },
          "requestDelayMs": {
            "title": "Delay between pages (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause between two page requests.",
            "default": 250
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a failed request is retried before it is given up on.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy to rotate egress through. Leave empty for direct access — the source needs no particular country."
          },
          "debugIncludeRaw": {
            "title": "Debug: include raw source record",
            "type": "boolean",
            "description": "Add the source record to every row, for debugging.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}