GET
/v1/crawlers/{crawler_hash}/paramsGet Crawler Parameters
Retrieve the list of configurable input parameters for a specific crawlerThis endpoint returns all configurable input parameters for a specific crawler. The response is organized into two main sections: task and squid.
Response Structure
The response contains:
- task: Object containing task-level parameters (parameter name as key)
- squid: Object containing squid-level parameters and functions
- squid.functions: Optional add-on features with extra credit costs
Task-level Parameter Fields
task.{parameter_name}.type
string
Example: string
task.{parameter_name}.group
string
Example: url
task.{parameter_name}.regex
string
Example: ^https?://.*
task.{parameter_name}.required
boolean
Example: true
task.{parameter_name}.default
stringnumberbooleannull
Example: null
task.{parameter_name}.attribute
string
Example: url
task.{parameter_name}.is_params
boolean
Example: true
Squid-level Parameter Fields
squid.{parameter_name}.type
string
Example: string
squid.{parameter_name}.allowed
array
Example: [en, es, fr]
squid.{parameter_name}.default
stringnumberbooleannull
Example: en
squid.{parameter_name}.required
boolean
Example: false
squid.{parameter_name}.attribute
string
Example: language
Functions (Optional Add-ons) Fields
squid.functions.{function_name}.sort
integer
Example: 1
squid.functions.{function_name}.default
boolean
Example: false
squid.functions.{function_name}.credits_per_function
number
Example: 0.5
Headers
| Key | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_KEY | Yes |
| Content-Type | application/json | No |
Parameters
crawler_hashstring
RequiredExample:
4734d096159ef05210e0e1677e8be823Pro Tip
The response structure uses parameter names as object keys. Access task parameters via params.task.url, squid parameters via params.squid.language, etc.
Note
Functions under squid.functions are optional add-ons. Each function has a credits_per_function cost applied per result row when enabled.
Warning
Pay attention to 'allowed' arrays in squid parameters - these only accept specific values. Sending invalid values will cause validation errors.
Pro Tip
Use 'regex' patterns in task parameters to validate input before sending. This helps catch errors early and reduces failed tasks.
Pro Tip
Parameters with 'group' field are logically related. For location-based crawlers, you'll typically need to provide all parameters in the 'location' group.