Create a new supplier scraping request for a supplier
Body
Required
-
Description of how to get the data for this supplier
-
URL to scrape for sourcing opportunities
-
Authentication method required for scraping
Values are
none,username_password,api_token, orother. -
Description of how to authenticate
-
Username for authentication
-
Password for authentication
-
API token for authentication
POST
/2024-09/suppliers/{supplier}/scraping-requests
curl \
--request POST 'https://app.merchanthq.com/api/2024-09/suppliers/{supplier}/scraping-requests' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"data_source_description":"string","url_for_scraping":"https://example.com","authentication_method":"none","authentication_description":"string","username":"string","password":"string","api_token":"string"}'
Request examples
{
"data_source_description": "string",
"url_for_scraping": "https://example.com",
"authentication_method": "none",
"authentication_description": "string",
"username": "string",
"password": "string",
"api_token": "string"
}
Response examples (201)
{
"data": {
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"supplier_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"data_source_description": "string",
"url_for_scraping": "https://example.com",
"authentication_method": "none",
"authentication_description": "string",
"approved_at": "string",
"completed_at": "string",
"rejected_at": "string",
"developer_notes": "string",
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
}