SmugMug API
Tutorial
API Concepts
Advanced
- Optimizing response sizes
- Expanding related data
- Configuring expansions
- Rate Limits
- Method and Content Overrides
- Performance Metrics
- Multi-get
- Options requests
Live API Browser
Reference
Multi-get
In some cases, you may already know the URI's for several objects of the same endpoint that you would like to request. Instead of making several separate requests to the same endpoint, you can use a feature called multiget to retrieve all of the objects in a single request.
For example, fetching user data for users cmac and onethumb can be done with the following two requests:
This same data can be requested using a single HTTP request, like below (_filteruri
is used to condense the response for presentation purposes only):
Note how the LocatorType has changed to Objects
and the value of Response.User
is now an array containing multiple User
objects.
Multiget also supports being used with actions, expansions, and filters.