Asset Generator For Social Media API

API ID 149

With this API you will be able to resize any image you want and get them with all the propper sizes for the social media service you want.

100% uptime 2,279 ms avg response

API Documentation

Endpoints

Request

Get resized images for Instagram purposes with an URL. 

Instagram

The default orientation value is set to : square

  • square: 1080x1080
  • landscape: 1080x566
  • portrait: 1080x1350
  • profile: 110x110
  • story: 1080x1920
Endpoint ID: 186
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/186/get+instagram
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get Instagram — CODE SNIPPETS

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' 


    
Request

Get resized images for Facebook purposes. 

 

Facebook

The default orientation value is set to : profile

  • profile: 180x180
  • cover: 820x462
  • link: 1200x630
  • image: 1200x630
  • event: 1920x1080
  • ad: 1200x628
  • storyad: 1080x1920
  • groupcover: 1640x922
  • messengerad: 1200x628
Endpoint ID: 187
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/187/get+facebook
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get Facebook — CODE SNIPPETS

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' 


    
Request

Get resized images for LinkedIn purposes. 

The default orientation value is set to : profile

  • profile: 400x400
  • background: 1584x396
  • postdesktop: 1200x1200
  • postmobile: 1200x628
  • post: 1200x628
  • companylogo: 300x300
  • companycover: 1536x768
  • companysponsoredcontent: 1200x627
  • companyhero: 1128x376
  • companybanner: 646x220
Endpoint ID: 188
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/188/get+linkedin
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get LinkedIn — CODE SNIPPETS

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' 


    
Request

Get resized images for Pinteret purposes. 

 

Default orientation value is profile

  • profile: 165x165
  • board: 222x150
  • pin: 1000x1500
Endpoint ID: 189
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/189/get+pinterest
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get Pinterest — CODE SNIPPETS

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' 


    
Request

Get resized images for Tumblr purposes. 

The default orientation value is set to profile:

 
  • profile: 128x128
  • post: 500x750
Endpoint ID: 190
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/190/get+tumblr
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get Tumblr — CODE SNIPPETS

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' 


    
Request

Get resized images for Twitter purposes. 

The default orientation value is set to profile.

  • profile: 400x400
  • header: 1500x500
  • image: 1024x512
  • card: 1200x628
  • ad: 800x428
Endpoint ID: 191
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/191/get+twitter
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get Twitter — CODE SNIPPETS

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' 


    
Request

Get resized images for Youtube purposes. 

The default orientation value is set to channelcoverdesktop:

  • channelcoverdesktop: 2560x1440
  • channelcoverphone: 1546x423
  • displayad: 300x250
  • overlayad: 480x60
  • companion: 300x250
Endpoint ID: 192
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/192/get+youtube
INPUT PARAMETERS

Get 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.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
orientation
API EXAMPLE RESPONSE
JSON
{"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"}
Get Youtube — CODE SNIPPETS

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' 


    

API Access Key & Authentication

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.

Headers
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 🎉)

🚀 Enterprise Plan

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring
zeiss-logo amazon-logo zoom-logo decathlon-logo

Trusted by leading companies

Overview

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. 

 

What this API receives and what your API provides (input/output)?

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. 

 

What are the most common uses cases of this API?

 
This API is ideal for those marketing agencies that want to programmatically generate images for different social media services. Just by declaring the orientation, you will be getting a new JPG file for download and you can post it right away. 
 
 

Are there any limitations with your plans?

Besides the number of API calls per month:

  • Basic: 50 calls daily. 
  • Pro: 1000 calls daily. 

Asset Generator For Social Media API FAQs

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.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

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.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs