Compare brands sizing

Allows you to compare the main sizing of two brands.

To use, pass the brand GET parameter containing the API url for another brand resource. Just like on the regular brand comparison feature on the main site.

For example, to see the comparison between Freya and Comexim you'd access the following URL:

https://api.bratabase.com/brands/freya/sizing/compare/?brand=https://api.bratabase.com/brands/comexim/

Important note

Before going any further. Please understand that this comparison is made using index sizes, so you have to be completely sure on how they work and their caveats. So you promise not to pretend to tell your users that these cups equivalences are good for bra fitting. This is just a naive comparison of cups positions but does not imply equal fit. This is important because using the Bratabase API to provide results we do not endorse will hurt the site.

body

The response is an Entity with the following body:

{
    "body": {
        "brand_1": "https://api.bratabase.com/brands/freya/", 
        "can_compare": true, 
        "bratabase_url": true, 
        "brand_2": "http://www.bratabase.com/browse/freya/vs/brand/comexim/", 
        "cups": {
            "brand_1": [
                null, 
                "B", 
                "C", 
                "D", 
                ..., 
                "J", 
                "JJ", 
                "K", 
                null, 
                null
            ], 
            "can_compare": true, 
            "brand_2": [
                "A", 
                "B", 
                "C", 
                "D", 
                ..., 
                "N", 
                "O", 
                "P", 
                "Q"
            ], 
            "all_indexes": [
                1, 
                2, 
                3, 
                ..., 
                15, 
                16, 
                17
            ]
        }, 
        "bands": {
            "brand_1": [
                null, 
                null, 
                28, 
                30, 
                32, 
                34, 
                36, 
                38, 
                40, 
                null, 
                null, 
                null
            ], 
            "all_bands": [
                24, 
                26, 
                ..., 
                42, 
                44, 
                46
            ], 
            "brand_2": [
                50, 
                55, 
                ..., 
                100, 
                105
            ], 
            "any_missing": true
        }
    }, 
    "links": {
        "brand": "https://api.bratabase.com/brands/freya/"
    }, 
    "self": "https://api.bratabase.com/brands/freya/sizing/compare/", 
    "meta": {
        "collection": null
    }, 
    "rel": "entity", 
    "spec": "http://developers.bratabase.com/brand-sizing-compare/"
}

How to get here

To reach this endpoint follow the compare url under the links section on the Brand sizing detail.

API root -> brands -> href -> sizing -> compare

Related pages


Edit