Return top credit card brands for lookup of up to 5 first digits. It covers 90% of the cases

The result is an array of 5 elements, where each element represents iin prefixes for a givel size as well as the list of logo Url's for all brands.
Each element in the top-level array is an object where members are prefixes and data is the brand.
For a quick lookup:

  1. get the element by the size of your prefix.
  2. try to obtain the prefix as a member name; The member value is the brand

For logo lookup finf thr brand name as the key to the logos member.
If not found, you can try using 'DEFAULT'.

Click Try It! to start a request and see the response here!