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:
Get resized images for Instagram purposes with an URL.
The default orientation value is set to : square
square: 1080x1080landscape: 1080x566portrait: 1080x1350profile: 110x110story: 1080x1920Get Instagram - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The image URL that you want to resize. |
orientation |
Optional The desire dimension for the image. Default: square. Options: square, landscape, portrait, profile, story. |
{"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'
Get resized images for Facebook purposes.
The default orientation value is set to : profile
profile: 180x180cover: 820x462link: 1200x630image: 1200x630event: 1920x1080ad: 1200x628storyad: 1080x1920groupcover: 1640x922messengerad: 1200x628Get Facebook - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The image URL that you want to resize. |
orientation |
Optional The desire dimension for the image. Default: profile. Options: profile, cover, link, image, event, ad, storyad, groupcover, messengerad. |
{"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'
Get resized images for LinkedIn purposes.
The default orientation value is set to : profile
profile: 400x400background: 1584x396postdesktop: 1200x1200postmobile: 1200x628post: 1200x628companylogo: 300x300companycover: 1536x768companysponsoredcontent: 1200x627companyhero: 1128x376companybanner: 646x220Get LinkedIn - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The image URL that you want to resize. |
orientation |
Optional The desired size of the image. Default: profile. Options: profile, background, postdesktop, postmobile, post, companylogo, companycover, companysponsoredcontent, companyhero, companybanner. |
{"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'
Get resized images for Pinteret purposes.
Default orientation value is profile
profile: 165x165board: 222x150pin: 1000x1500Get Pinterest - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The URl of the image you want to resize. |
orientation |
Optional The size of the image you want to get. Default: profile. Ex: profile, board, pin. |
{"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'
Get resized images for Tumblr purposes.
The default orientation value is set to profile:
profile: 128x128post: 500x750Get Tumblr - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The URl of the image you want to resize. |
orientation |
Optional The size of the image you want to get. Default: profile. Ex: profile, post. |
{"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'
Get resized images for Twitter purposes.
The default orientation value is set to profile.
profile: 400x400header: 1500x500image: 1024x512card: 1200x628ad: 800x428Get Twitter - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The URl of the image you want to resize. |
orientation |
Optional The size of the image you want to get. Default: profile. Ex: profile, header, image, card, ad. |
{"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'
Get resized images for Youtube purposes.
The default orientation value is set to channelcoverdesktop:
channelcoverdesktop: 2560x1440channelcoverphone: 1546x423displayad: 300x250overlayad: 480x60companion: 300x250Get Youtube - Endpoint Features
| Object | Description |
|---|---|
url |
[Required] The URL of the image you want to resize. |
orientation |
Optional The size of the image you want to get. Default: channelcoverdesktop. Ex:channelcoverdesktop, channelcoverphone, displayad, overlayad, companion. |
{"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'
| 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.
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, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
2,310ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
659ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
6,990ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
21ms
Service Level:
100%
Response Time:
0ms