Actions80
- Account Actions
- Clipart Actions
- Clipart Storage Actions
- Design Actions
- Font Actions
- Image Actions
- Product Actions
- Project Actions
- Project Folder Actions
- Side Actions
- Storage Actions
- Store Actions
- Template Actions
- Webhook Actions
Overview
This node integrates with the Printcart API to retrieve a list of clipart items. It is designed to fetch clipart resources from a Printcart account, allowing users to specify how many cliparts to retrieve and how to sort them. This operation is useful in scenarios where you want to automate workflows involving graphic assets, such as dynamically populating design templates or managing clipart libraries.
For example, a user might use this node to:
- Retrieve the latest 10 clipart images sorted by their ID in descending order.
- Fetch a customized number of cliparts sorted ascendingly by a specific attribute for further processing or display.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports "API Token" |
| Limit | Maximum number of clipart results to return (minimum 10) |
| Sort | Sorting direction for the results; options are "Desc" (descending) or "Asc" (ascending) |
| Sort By | The field by which to sort the clipart list; default is "id" |
Output
The node outputs an array of JSON objects representing clipart items retrieved from the Printcart API. Each object corresponds to a clipart entry with its associated properties as returned by the API. The exact structure depends on the API response but typically includes identifiers, metadata, and URLs related to each clipart.
No binary data output is indicated for this operation.
Dependencies
- Requires an API token credential for authenticating requests to the Printcart API.
- The node makes HTTP GET requests to the endpoint:
https://{sid}:{secret}@api.printcart.com/v1/clipartswith query parameters for limit, sort, and sortBy. - The
sidandsecretvalues are obtained from the authenticated credentials.
Troubleshooting
Common Issues:
- Invalid or missing API token will cause authentication failures.
- Requesting fewer than 10 results may be rejected due to minimum limit enforcement.
- Incorrect sorting parameters may result in default sorting behavior or errors.
Error Messages:
- Authentication errors typically indicate invalid or expired API tokens; ensure the token is valid and correctly configured.
- HTTP request failures may occur if network connectivity to the Printcart API is interrupted.
- If the node logs "Sort parameter not found. Using default value.", it means the optional sort type was not set and defaults are applied.
Resolutions:
- Verify and update the API token credential in n8n.
- Ensure the "Limit" property is set to at least 10.
- Use valid sorting options ("Asc" or "Desc") and valid fields for "Sort By".
Links and References
- Printcart API Documentation (Assumed URL for reference; replace with actual if available)