Group Operations
Group operations with URLs are limited to a maximum number of items. Currently: 1000.
If you exceed this limit, you will experience an error 1221.
This limitation doesn't apply to operations with usage of tags (PATCH, DELETE). It, for example, means, that you are allowed to delete a limited number of URLs listing their hashes in "hashes" parameter. But you can delete URLs, that conform with tags query all in single call.
Client libraries README file contains a "Mass shortening" reference which means group or "batch". There is no practical difference between "batch" and "not batch" operations. All operations are "batch". Batch can contain a single entity or multiple entities. For convenience, two different methods are shown in clients:
- shorten() to work with a single URL.
- mass_shorten() to work with arrays of URLs.
Both methods use the same API endpoint. And produce similar results.