{
  "openapi": "3.0.1",
  "info": {
    "title": "Guloggratis.dk Scraper — Free Classifieds, Prices & Alerts",
    "description": "Track new listings and price drops on Guloggratis.dk, Denmark's free classifieds, with incremental webhook, Slack and Telegram alerts.",
    "version": "0.0",
    "x-build-id": "MWxd1vK2pSUkcJZbn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lupine_humerus~guloggratis-dk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lupine_humerus-guloggratis-dk-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/lupine_humerus~guloggratis-dk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lupine_humerus-guloggratis-dk-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/lupine_humerus~guloggratis-dk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lupine_humerus-guloggratis-dk-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": {
          "category": {
            "title": "Category (for Search terms)",
            "enum": [
              "",
              "baade-og-tilbehor",
              "biler-og-koeretoejer",
              "bolig-og-have",
              "camping",
              "diverse",
              "dyr",
              "elektronik",
              "jagt",
              "maskiner",
              "mode-og-skoenhed",
              "sport-og-fritid",
              "til-born",
              "underholdning-og-laering",
              "vaerktoj-og-byggematerialer"
            ],
            "type": "string",
            "description": "Which top-level category Search terms search in. '' = whole site. Ignored when Search URLs are given.",
            "default": ""
          },
          "fetchDetails": {
            "title": "Fetch full ad details",
            "type": "boolean",
            "description": "When true, calls listing(id) for each ad for the full description, the real category path, all listing fields (richer fullValue, e.g. '512 GB') and viewsCount. Slower and more requests — leave off for fast list scraping. The list payload already has price, specs, images and seller type.",
            "default": false
          },
          "incremental": {
            "title": "Incremental alerts (only new / price-changed)",
            "type": "boolean",
            "description": "When true, the Actor remembers listingId -> last price in a named Key-Value Store and the webhook only reports new listings and price changes. Default off (every run reports the full set).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum listings to collect across all searches, counted AFTER filtering and de-duplication. Default 100. The site returns at most 60 rows per page; broad queries page through until this limit.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum result pages per search term/URL. 0 = unlimited (until the site reports no next page). Set to 1 for the first page only.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price (DKK)",
            "type": "integer",
            "description": "Maximum price in DKK. Leave empty for no maximum. Applied server-side (priceTo)."
          },
          "priceMin": {
            "title": "Min price (DKK)",
            "type": "integer",
            "description": "Minimum price in DKK. Leave empty for no minimum. Applied server-side (priceFrom)."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Guloggratis.dk does NOT block datacenter IPs (verified 2026-11-18: plain GraphQL POSTs return 200, no Cloudflare). Apify Proxy is on by default and works out of the box; set useApifyProxy to false to run without a proxy, or give your own proxyUrls.",
            "properties": {
              "proxyUrls": {
                "description": "Custom proxy URLs. Ignored when useApifyProxy is true.",
                "items": {
                  "type": "string"
                },
                "title": "Proxy URLs",
                "type": "array"
              },
              "useApifyProxy": {
                "description": "Route requests through Apify Proxy. Guloggratis.dk does not block datacenter IPs, so this is optional; leave on for the default setup.",
                "title": "Use Apify Proxy",
                "type": "boolean"
              }
            }
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Polite delay between API requests. Default 300 ms.",
            "default": 300
          },
          "resetState": {
            "title": "Reset incremental state",
            "type": "boolean",
            "description": "When true (with Incremental on), clears the remembered prices first, so the next run treats everything as new. Default off.",
            "default": false
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords, e.g. 'iPhone 15', 'Volvo V60', 'Brio'. Each term is searched separately (the site's term search: mainly matches title, may also match description/brand — the Actor does no title-only filtering). 'Wanted' ads (title contains 'søger', often priced 1 kr.) come back mixed in; there is no site field that separates them. Leave empty if you use Search URLs instead.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs (advanced)",
            "type": "array",
            "description": "Paste Guloggratis.dk category URLs straight from the browser, e.g. https://www.guloggratis.dk/kategori/elektronik or https://www.guloggratis.dk/kategori/elektronik/telefon?term=iphone . When given, Search terms and Category are ignored for these URLs. The category path and ?term= are parsed out of each URL.",
            "items": {
              "properties": {
                "url": {
                  "description": "URL of a Guloggratis.dk category result page to scrape.",
                  "title": "URL",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "type": "object"
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Filter by seller: '' = All, 'private' = private sellers, 'business' = business sellers. Applied after fetching (user.isBusiness); listings whose seller type the site does not state are kept.",
            "default": ""
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Optional: posts a Slack message per run (summary + every new/price-changed listing; splits into multiple messages when too long) when Incremental is on and there is something new/changed. Needs a Slack Incoming Webhook URL. Without Incremental it is not used. Notification failure never fails the run."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional: Telegram bot token (from @BotFather). Needs Telegram chat ID too. Sends a Telegram message per run (every new/price-changed listing; splits into multiple messages when too long) when Incremental is on and there is something new/changed. Without Incremental it is not used. Notification failure never fails the run."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Optional: Telegram chat ID to send alerts to (the channel, group or user ID). Needs Telegram bot token too."
          },
          "webhookHeaders": {
            "title": "Webhook headers (JSON)",
            "type": "object",
            "description": "Extra HTTP headers for the webhook, e.g. {\"Authorization\": \"Bearer <redacted>\"}. Webhook only; Slack and Telegram use their own fields."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional: POSTs one JSON message per run (all new/price-changed items, no item cap) when Incremental is on and there is something new/changed. Without Incremental it is not used. Notification failure never fails the run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}