{
  "openapi": "3.0.1",
  "info": {
    "title": "APEC Jobs Scraper — France Cadre Jobs & Salary API",
    "description": "APEC jobs scraper for French executive (cadre) listings on APEC.fr. Search by keyword, city, contract, or start URLs — an APEC API alternative with no login. Export title, employer, CDI/CDD, remote/hybrid, EUR salary bands, and descriptions as JSON.",
    "version": "1.0",
    "x-build-id": "56EDXPg5gcj9I0QOs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~apec-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-apec-jobs-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/crawloop~apec-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-apec-jobs-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/crawloop~apec-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-apec-jobs-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": {
          "position": {
            "title": "Position / keywords",
            "type": "string",
            "description": "Free-text job search (e.g. python, ingénieur, chef de projet, data). Leave empty to browse a city/region or the latest cadre offers."
          },
          "searchKeywords": {
            "title": "Extra keywords",
            "type": "array",
            "description": "Optional extra keyword queries. Each keyword is searched separately; results are merged and deduplicated by APEC offer number.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "City, department or region",
            "type": "string",
            "description": "French city (Paris, Lyon, Toulouse), department (Gironde, Nord) or region (Île-de-France, PACA). Comma-separated values are combined into one filter."
          },
          "locations": {
            "title": "Extra locations",
            "type": "array",
            "description": "Optional extra cities, departments or regions. Combined with Location into one multi-lieu search (not a cartesian product).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional APEC search or offer URLs. Query filters (motsCles, lieux, fonctions, typesContrat, typesTeletravail, typesConvention, salaireMinimum) are parsed automatically.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "workMode": {
            "title": "Work arrangement",
            "enum": [
              "",
              "remote",
              "hybrid",
              "occasional",
              "remote-hybrid"
            ],
            "type": "string",
            "description": "APEC télétravail facet.",
            "default": ""
          },
          "contractType": {
            "title": "Contract type",
            "enum": [
              "",
              "cdi",
              "cdd",
              "alternance",
              "interim",
              "stage"
            ],
            "type": "string",
            "description": "APEC contract facet.",
            "default": ""
          },
          "sinceDate": {
            "title": "Posted within",
            "enum": [
              "",
              "ANY",
              "_24_HOURS",
              "_7_DAYS",
              "_15_DAYS",
              "_30_DAYS"
            ],
            "type": "string",
            "description": "Freshness window. Last 24 hours and 7 days use APEC’s native recency filter; 15/30 days are applied on publication date after the search.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "",
              "SCORE",
              "DATE"
            ],
            "type": "string",
            "description": "Relevance only applies when a keyword is set. Empty = relevance with keyword, otherwise newest first.",
            "default": ""
          },
          "companyName": {
            "title": "Company name contains",
            "type": "string",
            "description": "Optional case-insensitive substring match on the employer name (applied after search)."
          },
          "salaryMin": {
            "title": "Min salary (EUR / year)",
            "minimum": 0,
            "maximum": 500000,
            "type": "integer",
            "description": "Keep only offers whose disclosed annual salary max (or min) is at least this amount in EUR. Offers without a salary are dropped when this filter is set. APEC publishes bands as k€ brut annuel."
          },
          "includePartners": {
            "title": "Include partner job boards",
            "type": "boolean",
            "description": "Keep APEC partner redistributions (HelloWork, Cadremploi, Meteojob, …), matching the site checkbox. Turn off for APEC-direct listings only.",
            "default": true
          },
          "includeJobDescription": {
            "title": "Include job description",
            "type": "boolean",
            "description": "Keep the description snippet already present on the search card. No extra request. Turn off to shrink CSV/Excel exports.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum job rows to collect across all searches. 0 = unlimited (subject to maxPages). One APEC page returns 20 offers.",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on APEC pagination (20 jobs per page).",
            "default": 20
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "On a schedule, push and charge only offer numbers not seen in a previous run. First run delivers the full match set (baseline). Pair with an Apify Schedule and a stable monitorStoreName.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named Key-Value store for seen offer numbers across scheduled runs. Use a distinct name per watch (e.g. python-paris vs chef-de-projet-lyon).",
            "default": "apec-jobs-monitor"
          },
          "resetMonitorState": {
            "title": "Reset monitor state",
            "type": "boolean",
            "description": "Clear the seen-job cache before this run (next run becomes a new baseline).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. APEC search JSON works after a normal HTML warmup (DataDome cookie); leave proxy off for the cheapest run. Add FR residential only if you scale up and see blocks.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}