shorturl_batch_create
Shorten up to 10 long URLs in a single batch. Returns a mapping of original to shortened URLs for efficient bulk URL shortening.
Instructions
Create short URLs for multiple long URLs in a single batch.
Shortens multiple URLs at once, returning a mapping of original URLs
to their shortened versions. Useful for bulk URL shortening tasks.
Args:
urls: A list of long URLs to shorten (max 10 per batch).
Returns:
JSON response containing the mapping of original to shortened URLs.
Example:
shorturl_batch_create(urls=["https://example.com/long-url-1", "https://example.com/long-url-2"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | A list of long URLs to shorten. Each must be a valid HTTP or HTTPS URL. Maximum 10 URLs per batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |