{
  "kind": "aggregator",
  "basic": {
    "name": "",
    "short_title": "Weather data API",
    "version": "1.0",
    "category": "Weather",
    "tags": "weather, forecast, climate",
    "about": "## What this API does\n\nCurrent weather for any city through one unified endpoint. The buyer sends a city name in a public header; your upstream key stays hidden in the source URL.\n\n## How buyers call it\n\nSend header `X-City: Delhi` and receive temperature, conditions and humidity as unified fields.",
    "status": "private"
  },
  "routes": [
    {
      "name": "Current weather",
      "playground_path": "/weather/current",
      "method": "GET",
      "mode": "failover",
      "headers": [
        { "key": "X-City", "visibility": "public", "required": true }
      ],
      "body_mode": "fields",
      "body_fields": [],
      "output_schema": {
        "temperature": "number",
        "conditions": "string",
        "humidity": "number"
      },
      "request_policy": {
        "max_requests_per_buyer_per_day_paid": 2000,
        "max_requests_total_trial": 5,
        "estimated_total_requests": 1000000
      },
      "sources": [
        {
          "label": "OpenWeatherMap",
          "method": "GET",
          "url": "https://api.openweathermap.org/data/2.5/weather?appid={{YOUR_OPENWEATHER_KEY}}&units=metric",
          "headers": [],
          "body_mode": "raw_json",
          "body_payload": { "private": "", "public_sample": "" },
          "body_fields": [],
          "response_type": "json",
          "rate_limits": [
            { "window": "minute", "count": 60 },
            { "window": "day", "count": 1000 }
          ],
          "request_mapping": [
            { "source_field": "X-City", "target": "query", "placeholder": "q" }
          ],
          "schema_mapping": {
            "temperature": "main.temp",
            "conditions": "weather[0].description",
            "humidity": "main.humidity"
          },
          "proxy": {
            "enabled": true,
            "required": true,
            "visibility": "private",
            "value": {
              "hostname": "{{YOUR_PROXY_HOST_PORT}}",
              "username": "{{YOUR_PROXY_USERNAME}}",
              "password": "{{YOUR_PROXY_PASSWORD}}"
            }
          }
        }
      ]
    }
  ],
  "pricing": {
    "requests_per_credit": 100,
    "plans": [],
    "trial_enabled": true,
    "trial_requests": 5
  }
}
