{
  "openapi": "3.0.1",
  "info": {
    "title": "Numbeo Cost of Living Scraper",
    "description": "Numbeo cost of living data: ~55 itemized prices by city or country with ranges, one item across ~590 cities, monthly budgets, rankings since 2009, and city profiles for quality of life, crime, property, health care, pollution, traffic and climate. No login.",
    "version": "1.0",
    "x-build-id": "Vs1R0oNdAMrmuDFN8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sheshinmcfly~numbeo-cost-of-living-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sheshinmcfly-numbeo-cost-of-living-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/sheshinmcfly~numbeo-cost-of-living-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sheshinmcfly-numbeo-cost-of-living-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/sheshinmcfly~numbeo-cost-of-living-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sheshinmcfly-numbeo-cost-of-living-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "cities",
              "countries",
              "itemPrices",
              "rankings"
            ],
            "type": "string",
            "description": "Prices by city / by country return ~55 itemized prices each. \"One item\" returns the price of an item (e.g. a cappuccino) in every city or country. Rankings returns complete Numbeo ranking tables.",
            "default": "cities"
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "City names (Prices by city). Accents and the 'City, Country' format are accepted, e.g. 'New York', 'SÃ£o Paulo', 'Sao Paulo, Brazil'.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Country names in English (Prices by country), e.g. 'Chile', 'Germany', 'United Kingdom'.",
            "items": {
              "type": "string"
            }
          },
          "items": {
            "title": "Items",
            "type": "array",
            "description": "Items for 'One item in every city or country': name as shown on Numbeo (e.g. 'Cappuccino', 'Gasoline', 'Apartment (1 bedroom) in City Centre') or Numbeo item ID.",
            "items": {
              "type": "string"
            }
          },
          "itemScope": {
            "title": "Item prices by",
            "enum": [
              "cities",
              "countries"
            ],
            "type": "string",
            "description": "Compare the item across cities or across countries.",
            "default": "cities"
          },
          "currency": {
            "title": "Display Currency",
            "type": "string",
            "description": "Currency to display prices in (e.g. USD, EUR, GBP, CLP). Defaults to USD.",
            "default": "USD"
          },
          "units": {
            "title": "Measurement units",
            "enum": [
              "us",
              "metric"
            ],
            "type": "string",
            "description": "Units for the items that have them, such as taxi fares per mile or km and apartment prices per square foot or square meter. Item names say which unit applies.",
            "default": "us"
          },
          "includeCitySummary": {
            "title": "Summary row",
            "type": "boolean",
            "description": "Add one summary row per city or country: estimated monthly costs for a family of four and a single person (excluding rent), comparison with New York, and indices (cities: cost of living, quality of life, safety, crime; countries: cost of living). Counts as one extra result each.",
            "default": false
          },
          "sections": {
            "title": "Topic details per city or country",
            "type": "array",
            "description": "For Cities and Countries modes: add one row per place and topic with every index and surveyed component Numbeo publishes for it (e.g. crime: 12 components plus safety by day and night; property: price-to-income, mortgage share, price-to-rent, rental yields, price per m²; traffic: commute mode shares and minutes by mode; climate: score and temperatures per month). Each topic row counts as one result. Places where Numbeo has no data for a topic are named in the run status and not charged.",
            "items": {
              "type": "string",
              "enum": [
                "quality-of-life",
                "crime",
                "property-investment",
                "health-care",
                "pollution",
                "traffic",
                "climate"
              ],
              "enumTitles": [
                "Quality of life",
                "Crime and safety",
                "Property prices and rental yields",
                "Health care",
                "Pollution (incl. WHO PM2.5/PM10)",
                "Traffic and commute",
                "Climate by month"
              ]
            },
            "default": []
          },
          "includePriceItems": {
            "title": "Include the ~55 price items",
            "type": "boolean",
            "description": "Turn off to get only the topic rows (and the summary row, if enabled) without the ~55 price items per place.",
            "default": true
          },
          "rankings": {
            "title": "Rankings",
            "type": "array",
            "description": "Rankings to extract when Mode is Rankings.",
            "items": {
              "type": "string",
              "enum": [
                "cost-of-living",
                "quality-of-life",
                "crime",
                "health-care",
                "pollution",
                "traffic",
                "property-investment",
                "cost-of-living-by-country"
              ],
              "enumTitles": [
                "Cost of living (cities)",
                "Quality of life",
                "Crime",
                "Health care",
                "Pollution",
                "Traffic",
                "Property investment",
                "Cost of living (countries)"
              ]
            },
            "default": [
              "cost-of-living"
            ]
          },
          "rankingPeriod": {
            "title": "Ranking period",
            "enum": [
              "current",
              "2026-mid",
              "2026",
              "2025-mid",
              "2025",
              "2024-mid",
              "2024",
              "2023-mid",
              "2023",
              "2022-mid",
              "2022",
              "2021-mid",
              "2021",
              "2020-mid",
              "2020",
              "2019-mid",
              "2019",
              "2018-mid",
              "2018",
              "2017-mid",
              "2017",
              "2016-mid",
              "2016",
              "2015-mid",
              "2015",
              "2014-mid",
              "2014",
              "2013",
              "2012",
              "2011",
              "2010",
              "2009"
            ],
            "type": "string",
            "description": "Current rankings or a past edition (Numbeo publishes them at the start and middle of each year, back to 2009).",
            "default": "current"
          },
          "region": {
            "title": "Region",
            "enum": [
              "world",
              "150",
              "154",
              "155",
              "039",
              "151",
              "019",
              "021",
              "005",
              "013",
              "029",
              "142",
              "030",
              "035",
              "034",
              "145",
              "143",
              "002",
              "015",
              "009",
              "053"
            ],
            "type": "string",
            "description": "Limit rankings to a continent or region.",
            "default": "world"
          },
          "maxRankingRows": {
            "title": "Max rows per ranking or item",
            "minimum": 0,
            "type": "integer",
            "description": "Limit each ranking or item table to its top N rows. 0 = the full table.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "The default setting works. Only change it to use your own proxies."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}