{
  "openapi": "3.0.1",
  "info": {
    "title": "Jiji Scraper - Nigeria, Kenya, Ghana & East Africa Ads",
    "description": "Ads from Jiji in Nigeria, Kenya, Ghana, Uganda, Tanzania and Ethiopia as clean JSON: title, price and currency, condition, transmission, mileage and other listed attributes, region and area, verified-seller badge, images. Monitoring mode returns only new ads, so you never pay twice. Unofficial.",
    "version": "0.1",
    "x-build-id": "uyMkntavTAw3fPNfR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~jiji-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-jiji-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/neverempty~jiji-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-jiji-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/neverempty~jiji-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-jiji-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": {
          "searchUrls": {
            "title": "Jiji search URLs (optional)",
            "type": "array",
            "description": "Paste one or more search or category pages from jiji.ng, jiji.co.ke, jiji.com.gh, jiji.ug, jiji.co.tz or jiji.com.et, e.g. https://jiji.ng/lagos/cars?filter_attr_90_transmission=automatic . Filters, price range, search words and sort set on the site stay in the address. When this list is filled, the country, category, location and search fields below are ignored.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "ng",
              "ke",
              "gh",
              "ug",
              "tz",
              "et"
            ],
            "type": "string",
            "description": "Which Jiji site to search when no search URL is given. Prices come in that country's currency (NGN, KES, GHS, UGX, TZS or ETB)."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "The category as it appears in Jiji addresses, for example cars, mobile-phones, computers-and-laptops, houses-apartments-for-rent, houses-apartments-for-sale, land-and-plots-for-sale, furniture, home-appliances, fashion-and-beauty, building-materials, dogs-and-puppies. Spaces and capitals are fine (Mobile Phones becomes mobile-phones). Empty searches every category."
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Region or city as it appears in Jiji addresses: lagos, abuja, rivers, nairobi, mombasa, greater-accra, kampala, dar-es-salaam, addis-ababa. One search runs per location. Empty searches the whole country.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search words",
            "type": "string",
            "description": "Words to search for, sent to Jiji exactly like the search box on the site (for example toyota camry or iphone 13). Empty lists the whole category."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "",
              "newest",
              "price-asc",
              "price-desc"
            ],
            "type": "string",
            "description": "Order in which Jiji lists the ads. Empty = Jiji's recommended order. Monitoring mode always reads newest first."
          },
          "maxListings": {
            "title": "Maximum ads to return",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Stop after this many ads in total across all searches. Each returned ad is one charged result."
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Upper limit of result pages read per search (20 to 24 ads per page). 0 = up to 200 pages."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in the local currency of the site. Sent to Jiji and checked again on every row. Ads without a price are kept. 0 = no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in the local currency of the site. 0 = no maximum."
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Keep only ads whose condition is one of these, written as Jiji shows it: Brand New, Foreign Used, Nigerian Used, Local Used, Used, Refurbished. Ads that do not state a condition are removed when this is set. Empty keeps every condition.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only ads whose title, description, category, location or condition contains these words (case does not matter). Applied after reading; use Search words to let Jiji do the search.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any = an ad needs one of the keywords, all = it needs every keyword.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop ads whose title, description, category, location or condition contains any of these words (for example accident, swap).",
            "items": {
              "type": "string"
            }
          },
          "onlyVerifiedSellers": {
            "title": "Only sellers with a verified ID",
            "type": "boolean",
            "description": "Keep only ads that Jiji marks with the Verified ID badge.",
            "default": false
          },
          "excludePromoted": {
            "title": "Exclude top (paid) ads",
            "type": "boolean",
            "description": "Drop the paid TOP ads that Jiji places above the normal results.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new ads)",
            "type": "boolean",
            "description": "Remember the ads already seen for this exact input and return only new ones on later runs, so you never pay twice for the same ad. The first run only remembers what is listed now and charges nothing. Reads newest first. Schedule it hourly or daily.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Reset monitoring memory",
            "type": "boolean",
            "description": "Forget the ads remembered for this exact input. With monitoring mode on, this run then saves a new baseline; with it off, the memory is only cleared.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}