Upload Excel Parameter V2
Upload an Excel file and register it as the scraper's parameter set.
This endpoint is called with multipart/form-data, not JSON. Attach a .xlsx file to the excel_file field, and it becomes the scraper's active parameter set.
On success, every other parameter set previously registered on the same scraper is deactivated, leaving only the one you just uploaded as active.
A multipart request cannot carry the version in the Content-Type header, so also send version=2 as a form field (without it the request returns 404).
The value in the N-th column becomes paramN (e.g. column 1 → param1, column 5 → param5). Empty columns are skipped. Every row from the first one is collected as one run, so a header row is collected too.
Request Parameters
-
api_key: StringHashScraper API key
-
schedule_id: StringID of the scraper to register the parameter set on.
-
excel_file: File
.xlsxfile. Sent as amultipart/form-datafield with MIME typeapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
Response Fields
-
result: StringRequest outcome.
-
version: StringAPI version.
-
schedule_id: StringIdentifier of the scraper the parameter set was registered on.
-
file_name: StringOriginal filename of the uploaded Excel file.
-
message: StringSuccess message. Always returns
Excel Parameter saved successfully. -
elapsed_time: FloatServer-side processing time (seconds, as a numeric value).
Error Responses
-
schedule_id missing
{ "result": "error", "version": "v2", "message": "`schedule_id` parameter is required" } -
excel_file missing
{ "result": "error", "version": "v2", "message": "`excel_file` parameter is required" } -
Schedule not found
{ "result": "error", "version": "v2", "message": "schedule(id: YOUR_SCHEDULE_ID) not found" } -
Invalid file extension
{ "result": "error", "version": "v2", "message": "xlsx 또는 xls 형식의 파일을 선택해주세요" } -
Invalid content type
{ "result": "error", "version": "v2", "message": "\"excel_file\"의 type을 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet로 설정해주세요. ..." }
Related Guides
Example Request
curl -X POST \
-F "api_key=YOUR_API_KEY" \
-F "version=2" \
-F "schedule_id=YOUR_SCHEDULE_ID" \
-F "excel_file=@/path/to/file.xlsx;type=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \
'https://www.hashscraper.com/api/set_excel_param'
Example Response 200
{
"result": "success",
"version": "v2",
"schedule_id": "사람인_채용공고_수집_1697441449957",
"file_name": "params.xlsx",
"message": "Excel Parameter saved successfully",
"elapsed_time": 0.0512
}