Image Color Extractor API

Image Color Extractor API

Image Color Extractor API allows developers to extract dominant colors from an image with a simple API call. With its fast and accurate color analysis, it's the perfect tool for color-based image searches, color palette generation, and more.

API description

About the API: 

Image Color Extractor API is a powerful tool for extracting and analyzing colors in images. With just a simple API call, developers can retrieve the dominant colors and more in RGB format from any image. This API is perfect for a wide range of applications, including color-based image searches, palette generation for design and branding, and much more.

The API utilizes advanced algorithms to analyze the colors in an image and return accurate and reliable results. The output includes not only the dominant colors but also additional information such as color frequency, proportion, and more. This enables developers to easily sort and filter the results to meet their specific needs.

Whether you're a designer looking for inspiration, a marketer seeking to create eye-catching graphics, or a developer building an application that requires color analysis, Image Color Extractor API is the perfect solution. With fast, easy-to-use, and highly accurate results, it's the ultimate tool for all your color extraction needs

 

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

Pass the image URL of your choice and receive dominant colors, secondary colors, and primary colors. 

 

What are the most common uses cases of this API?

  1. Color-Based Image Search: The API can be used to extract the dominant colors from an image and search for similar images based on their color palette.

  2. Palette Generation: The API can be used to generate color palettes for branding and design purposes by extracting dominant colors from images.

  3. Color Analysis for E-commerce: The API can be used to analyze product images and extract colors to facilitate color-based filtering and searching on e-commerce websites.

  4. Color Correction: The API can be used to extract the dominant colors from an image and use them to adjust and correct the colors of the image for improved visual appeal.

  5. Background Color Detection: The API can be used to extract the dominant colors from an image and automatically set the background color of a website or application based on the image's palette.



Are there any limitations to your plans?

Besides the number of API calls, there are no other limitations

API Documentation

Endpoints


Extract colors from an image

 



                                                                            
GET https://zylalabs.com/api/1331/image+color+extractor+api/1111/extractor
                                                                            
                                                                        

Extractor - Endpoint Features
Object Description
image_url [Required] Image URL (required)
remove_bg [Optional] true if background should be removed (default=true)
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"dominant-colors": [{"value": [61, 50, 35], "weight": 0.714}, {"value": [213, 30, 52], "weight": 0.1572}, {"value": [147, 69, 64], "weight": 0.0745}, {"value": [160, 164, 164], "weight": 0.0409}, {"value": [139, 145, 150], "weight": 0.0134}], "secondary-colors": [{"value": [0, 0, 0], "weight": 0.714, "index": 7, "code": "black", "name": "Black"}, {"value": [220, 20, 60], "weight": 0.1572, "index": 19, "code": "crimson", "name": "Crimson"}, {"value": [165, 42, 42], "weight": 0.0745, "index": 11, "code": "brown", "name": "Brown"}, {"value": [169, 169, 169], "weight": 0.0409, "index": 23, "code": "darkgray", "name": "Dark Gray"}, {"value": [128, 128, 128], "weight": 0.0134, "index": 49, "code": "gray", "name": "Gray"}], "primary-colors": [{"value": [0, 0, 0], "weight": 0.714, "index": 3, "code": "black", "name": "Black"}, {"value": [255, 0, 0], "weight": 0.1572, "index": 4, "code": "red", "name": "Red"}, {"value": [128, 0, 0], "weight": 0.0745, "index": 5, "code": "maroon", "name": "Maroon"}, {"value": [192, 192, 192], "weight": 0.0409, "index": 1, "code": "silver", "name": "Silver"}, {"value": [128, 128, 128], "weight": 0.0134, "index": 2, "code": "gray", "name": "Gray"}]}
                                                                                                                                                                                                                    
                                                                                                    

Extractor - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1331/image+color+extractor+api/1111/extractor?image_url=https://phantom-marca.unidadeditorial.es/7b78119ebc8cda8d862743b4da06aea3/resize/1320/f/jpg/assets/multimedia/imagenes/2022/11/07/16678170689786.jpg&remove_bg=true' --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 Image Color Extractor 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, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]


Related APIs