关于API:
此API能够调整任何您想要的图像大小,使其完美适合您想要的任何社交媒体服务。此API适用于Instagram、LinkedIn、Facebook、Pinterest、Youtube、Tumblr和Twitter。
此API将接收您想要调整大小的图像URL,您可以声明您想要的方向,这样您就可以获得适合不同用途的完美图像。
除了每月API调用的数量:
{"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'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
每个端点返回一个为特定社交媒体平台量身定制的调整大小的图像URL 响应包括根据请求的方向生成的图像URL 确保与平台的要求兼容
用户可以指定图像网址和所需的方向(例如,正方形、横向、纵向)以进行调整大小。每个平台都有默认方向,但用户可以根据需要自定义他们的请求
响应数据通常包含一个字段,其中包含调整大小后的图像 URL。这种结构便于直接集成到应用程序或网站中以供立即使用
每个端点提供了不同社交媒体使用所需的具体图像尺寸和格式,比如个人资料图片、封面图片和帖子,确保用户拥有满足其需求的正确尺寸
响应中的主要字段是“图片网址”,指向调整大小后的图片 此网址可直接用于上传或在相应的社交媒体平台上分享
用户可以通过更改方向参数来自定义请求以满足他们的需求,例如选择“横向”作为 Facebook 封面图片或选择“纵向”作为 Instagram 故事
常见的用例包括市场营销机构为活动生成图像 社交媒体经理为多个平台准备内容 以及企业在各渠道上需要一致的品牌形象
该API通过遵循每个社交媒体平台提供的最新图像大小规范来确保准确性,并定期更新尺寸以反映其指南中的任何变更
服务级别:
100%
响应时间:
20,003ms
服务级别:
100%
响应时间:
3,208ms
服务级别:
100%
响应时间:
21ms
服务级别:
100%
响应时间:
14ms
服务级别:
100%
响应时间:
19ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
2,310ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
0ms
服务级别:
100%
响应时间:
1,957ms
服务级别:
100%
响应时间:
751ms
服务级别:
100%
响应时间:
135ms
服务级别:
100%
响应时间:
198ms
服务级别:
100%
响应时间:
221ms
服务级别:
100%
响应时间:
17,611ms
服务级别:
100%
响应时间:
50ms
服务级别:
100%
响应时间:
886ms
服务级别:
100%
响应时间:
9,356ms
服务级别:
100%
响应时间:
478ms
服务级别:
100%
响应时间:
116ms