Asset Generator For Social Media API

Asset Generator For Social Media API

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.

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. 

API Documentation

Endpoints


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



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/186/get+instagram
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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' 

    

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



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/187/get+facebook
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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' 

    

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



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/188/get+linkedin
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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' 

    

Get resized images for Pinteret purposes. 

 

Default orientation value is profile

  • profile: 165x165
  • board: 222x150
  • pin: 1000x1500



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/189/get+pinterest
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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' 

    

Get resized images for Tumblr purposes. 

The default orientation value is set to profile:

 
  • profile: 128x128
  • post: 500x750



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/190/get+tumblr
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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' 

    

Get resized images for Twitter purposes. 

The default orientation value is set to profile.

  • profile: 400x400
  • header: 1500x500
  • image: 1024x512
  • card: 1200x628
  • ad: 800x428



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/191/get+twitter
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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' 

    

Get resized images for Youtube purposes. 

The default orientation value is set to channelcoverdesktop:

  • channelcoverdesktop: 2560x1440
  • channelcoverphone: 1546x423
  • displayad: 300x250
  • overlayad: 480x60
  • companion: 300x250



                                                                            
GET https://zylalabs.com/api/149/asset+generator+for+social+media+api/192/get+youtube
                                                                            
                                                                        

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.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Example Response":"No response example available for now."}
                                                                                                                                                                                                                    
                                                                                                    

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

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise
Starts at $ 10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

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, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

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 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

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]

 Service Level
100%
 Response Time
2,173ms

Category:


Related APIs