{"orientation": "landscape", "service": "instagram", "width": 1080, "height": 566, "url": "https://assets.apilayer.com/social_asset/f2d591ca-ea73-11ee-aa85-1f7c282ce842/f2d59526-ea73-11ee-aa85-1f7c282ce842/instagram-landscape-1080x566-f2d456c0-ea73-11ee-aa85-1f7c282ce842.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/186/get+instagram?url=https://media.4-paws.org/1/e/d/6/1ed6da75afe37d82757142dc7c6633a532f53a7d/VIER%20PFOTEN_2019-03-15_001-2886x1999-1920x1330.jpg' --header 'Authorization: Bearer YOUR_API_KEY'
{"orientation": "event", "service": "facebook", "width": 1920, "height": 1080, "url": "https://assets.apilayer.com/social_asset/cbef90fc-ea77-11ee-ad1d-2b0a2cc9300a/cbef9368-ea77-11ee-ad1d-2b0a2cc9300a/facebook-event-1920x1080-cbedf846-ea77-11ee-ad1d-2b0a2cc9300a.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/187/get+facebook?url=https://media.4-paws.org/1/e/d/6/1ed6da75afe37d82757142dc7c6633a532f53a7d/VIER%20PFOTEN_2019-03-15_001-2886x1999-1920x1330.jpg' --header 'Authorization: Bearer YOUR_API_KEY'
{"orientation": "post", "service": "linkedin", "width": 1200, "height": 628, "url": "https://assets.apilayer.com/social_asset/6ce134c2-ea7b-11ee-88ab-d7f946b4fe94/6ce13724-ea7b-11ee-88ab-d7f946b4fe94/linkedin-post-1200x628-6ce069ac-ea7b-11ee-88ab-d7f946b4fe94.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/188/get+linkedin?url=https://media.4-paws.org/1/e/d/6/1ed6da75afe37d82757142dc7c6633a532f53a7d/VIER%20PFOTEN_2019-03-15_001-2886x1999-1920x1330.jpg' --header 'Authorization: Bearer YOUR_API_KEY'
{"orientation": "profile", "service": "pinterest", "width": 165, "height": 165, "url": "https://assets.apilayer.com/social_asset/0e21c4ca-6f91-11ee-974d-459327dd5ec9/0e21c722-6f91-11ee-974d-459327dd5ec9/pinterest-profile-165x165-0e2182e4-6f91-11ee-974d-459327dd5ec9.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/189/get+pinterest?url=https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg&orientation=profile' --header 'Authorization: Bearer YOUR_API_KEY'
{"orientation": "profile", "service": "tumblr", "width": 128, "height": 128, "url": "https://assets.apilayer.com/social_asset/0ffc6478-1a40-11ed-9ad5-9f44d7a64fe2/0ffc6658-1a40-11ed-9ad5-9f44d7a64fe2/tumblr-profile-128x128-0ffc2968-1a40-11ed-9ad5-9f44d7a64fe2.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/190/get+tumblr?url=https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg&orientation=profile' --header 'Authorization: Bearer YOUR_API_KEY'
{"orientation": "image", "service": "twitter", "width": 1024, "height": 512, "url": "https://assets.apilayer.com/social_asset/03a5f3e2-ea82-11ee-b330-d34a98afdd5f/03a5f702-ea82-11ee-b330-d34a98afdd5f/twitter-image-1024x512-03a56a94-ea82-11ee-b330-d34a98afdd5f.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/191/get+twitter?url=https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg&orientation=ad' --header 'Authorization: Bearer YOUR_API_KEY'
{"orientation": "channelcoverdesktop", "service": "youtube", "width": 2560, "height": 1440, "url": "https://assets.apilayer.com/social_asset/eea04c98-9336-11ed-b27b-f51c57fae901/eea04eb4-9336-11ed-b27b-f51c57fae901/youtube-channelcoverdesktop-2560x1440-ee90e0aa-9336-11ed-b27b-f51c57fae901.jpg"}
curl --location --request GET 'https://zylalabs.com/api/149/asset+generator+for+social+media+api/192/get+youtube?url=https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Asset Generator For Social Media API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
About the API:
This API has the ability to resize any image you want to be perfect for any social media service you want. This API works for Instagram, LinkedIn, Facebook, Pinterest, Youtube, Tumblr, and Twitter.
This API will receive the image URL that you want to resize, and you can declare the orientation you want to give to it, so you can get the perfect image for different purposes.
Besides the number of API calls per month:
Each endpoint returns a resized image URL tailored for specific social media platforms. The response includes the image URL based on the requested orientation, ensuring compatibility with the platform's requirements.
Users can specify the image URL and the desired orientation (e.g., square, landscape, portrait) for resizing. Each platform has default orientations, but users can customize their requests as needed.
The response data typically includes a single field containing the resized image URL. This structure allows for straightforward integration into applications or websites for immediate use.
Each endpoint provides specific image dimensions and formats required for various social media uses, such as profile pictures, cover images, and posts, ensuring users have the right sizes for their needs.
The primary field in the response is the "image URL," which directs to the resized image. This URL can be used directly for uploading or sharing on the respective social media platform.
Users can customize requests by changing the orientation parameter to match their needs, such as selecting "landscape" for Facebook cover images or "portrait" for Instagram stories.
Common use cases include marketing agencies generating images for campaigns, social media managers preparing content for multiple platforms, and businesses needing consistent branding across channels.
The API ensures accuracy by adhering to the latest image size specifications provided by each social media platform, regularly updating the dimensions to reflect any changes in their guidelines.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund