{
  "openapi": "3.0.1",
  "info": {
    "title": "APEC Jobs Scraper",
    "description": "Scrape APEC.fr French executive (cadre) job postings by keyword, département/city or pasted APEC search URL: title, company, salary range, location, contract type, remote work and apply URL. No login needed.",
    "version": "0.1",
    "x-build-id": "t4Izk004bQ7fYYPHc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~apec-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~apec-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~apec-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": {
          "searchQuery": {
            "title": "Search query (mots-clés)",
            "type": "string",
            "description": "Free-text keyword(s) searched on APEC.fr (e.g., 'développeur', 'data scientist', 'directeur financier'). Searches title and description, French syntax. Leave empty to browse all active offers. NOT a job ID or URL."
          },
          "locations": {
            "title": "Locations (département or city)",
            "type": "array",
            "description": "Limit the search to French départements. Enter département numbers (e.g. '75' for Paris, '69' for Rhône, '13' for Bouches-du-Rhône) or a major city name such as 'Paris', 'Lyon' or 'Bordeaux', which is mapped to its département. Leave empty to search all of France. Ignored when startUrls is used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "APEC search URLs (optional)",
            "type": "array",
            "description": "Paste one or more APEC search result URLs (https://www.apec.fr/candidat/recherche-emploi.html/emploi?...). The filters inside each URL (keywords, lieux, contract type, remote work, experience, salary, recency) are used as-is, and the form filters above are ignored. maxResults and sortBy still apply. Leave empty to use the form filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of job offers to return. Defaults to 50. APEC caps a single search at ~1000 results regardless of totalCount, so use sortBy + postedWithinDays to slice large queries. NOT items per page.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "date_desc",
              "date_asc"
            ],
            "type": "string",
            "description": "How to sort results. 'relevance' uses APEC's default scoring; 'date_desc' returns newest first (best for monitoring); 'date_asc' oldest first. Defaults to date_desc.",
            "default": "date_desc"
          },
          "postedWithinDays": {
            "title": "Posted within N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only return offers published within the last N days. Common values: 1, 7, 14, 30, 90. Leave empty for all (no date filter). Useful for daily monitoring jobs."
          },
          "salaryMin": {
            "title": "Minimum salary (EUR/year, gross)",
            "minimum": 0,
            "type": "integer",
            "description": "Annual gross salary search boundary in euros (e.g., 50000 = 50 k€). APEC matches salary ranges that overlap the requested band, so an offer's displayed lower bound may be below this value. With salaryMin alone, APEC uses a 200000 EUR upper boundary. Leave empty for no minimum filter."
          },
          "salaryMax": {
            "title": "Maximum salary (EUR/year, gross)",
            "minimum": 0,
            "type": "integer",
            "description": "Annual gross salary search boundary in euros. APEC matches ranges that overlap the requested band, including open-ended ranges. With salaryMax alone, APEC uses a 20000 EUR lower boundary. Combine with salaryMin for a band (e.g., 40000–60000). Leave empty for no maximum filter."
          },
          "contractTypes": {
            "title": "Contract types",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by contract type. CDI = permanent, CDD = fixed-term, FREELANCE = freelance/contractor, STAGE = internship, ALTERNANCE = apprenticeship. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "CDI",
                "CDD",
                "FREELANCE",
                "STAGE",
                "ALTERNANCE"
              ]
            }
          },
          "remoteWork": {
            "title": "Remote work",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by remote-work policy. FULL_REMOTE = 100% remote, HYBRID = partial remote, OCCASIONAL = occasional remote, NONE = on-site only. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "FULL_REMOTE",
                "HYBRID",
                "OCCASIONAL",
                "NONE"
              ]
            }
          },
          "experienceLevel": {
            "title": "Experience level",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by required experience. JUNIOR = <1 year, MID = 1–7 years, SENIOR = 7+ years, EXEC = executive. Leave empty for all levels.",
            "items": {
              "type": "string",
              "enum": [
                "JUNIOR",
                "MID",
                "SENIOR",
                "EXEC"
              ]
            }
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy configuration. The default uses Unblocker with its automatically selected exit location for the public APEC search API. Requests have a bounded 90-second timeout to allow the proxy to finish. If this returns an anti-bot block, the Actor retries through a browser on a French residential IP. Explicit proxy groups, countries or disabled proxy settings are preserved.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}