Discussion Forum: Thread 259549

 Author: Teup View Messages Posted By Teup
 Posted: Nov 8, 2019 13:24
 Subject: How to convert a BL to a Rebrickable number?
 Viewed: 45 times
 Topic: General
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Teup (4203)

Location:  Netherlands, Utrecht
Member Since Contact Type Status
May 6, 2004 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: The T-workshop
Does anybody know if maybe there's a way to convert a Bricklink part number
to a Rebrickable number? (say, "3626cpb2462" to "3626cpr2987")

(I want to let my software do it - API, website scraping, all is fair. It would
help me a lot building my own webstore's inventory and not violate any Bricklink
copyrights in the process.)

I know that the opposite is possible: You can request a part in the Rebrickable
API and it tells you everything about the part including what it's called
on Bricklink. But.. I don't know if there's any resource or website that
provides the info in the opposite direction?
 Author: hpoort View Messages Posted By hpoort
 Posted: Nov 8, 2019 14:41
 Subject: Re: How to convert a BL to a Rebrickable number?
 Viewed: 30 times
 Topic: General
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

hpoort (383)

Location:  Netherlands, Groningen
Member Since Contact Type Status
Oct 11, 2014 Contact Member Buyer
Buying Privileges - OK
In General, Teup writes:
  Does anybody know if maybe there's a way to convert a Bricklink part number
to a Rebrickable number? (say, "3626cpb2462" to "3626cpr2987")

(I want to let my software do it - API, website scraping, all is fair. It would
help me a lot building my own webstore's inventory and not violate any Bricklink
copyrights in the process.)

I know that the opposite is possible: You can request a part in the Rebrickable
API and it tells you everything about the part including what it's called
on Bricklink. But.. I don't know if there's any resource or website that
provides the info in the opposite direction?

The information needed, i.e. a comparative list of both the Bricklink and Rebrickable
numbers, is not part of the Bricklink database. However, what Bricklink does,
is to provide a link to it's own part number on the Rebrickable (https://www.bricklink.com/v2/catalog/catalogitem.page?P=3001
provides a link to https://rebrickable.com/parts/bricklink/3001) and leave it
up to Rebrickable to know which part it is according to their numbering.

This way, it is clear that the number is proprietary of Bricklink (or TLG if
it is a plain part) and that the other application (Rebrickable in your example)
just knows about these numbers. This same procedure is used on other sites such
as The Brick Brothers and New Elementary that link to a.o. to Bricklink and Lego.com.

For your own webshop, you should ideally have your own unique part/article numbers
(1, 2, 3, ... would do the trick), that you may then freely link to the resources
on lego.com, bricklink.com, peeron, rebrickable or wherever, using their unique
resource identifiers.


Hans-Peter
 Author: Teup View Messages Posted By Teup
 Posted: Nov 8, 2019 17:30
 Subject: Re: How to convert a BL to a Rebrickable number?
 Viewed: 26 times
 Topic: General
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Teup (4203)

Location:  Netherlands, Utrecht
Member Since Contact Type Status
May 6, 2004 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: The T-workshop
In General, hpoort writes:
  In General, Teup writes:
  Does anybody know if maybe there's a way to convert a Bricklink part number
to a Rebrickable number? (say, "3626cpb2462" to "3626cpr2987")

(I want to let my software do it - API, website scraping, all is fair. It would
help me a lot building my own webstore's inventory and not violate any Bricklink
copyrights in the process.)

I know that the opposite is possible: You can request a part in the Rebrickable
API and it tells you everything about the part including what it's called
on Bricklink. But.. I don't know if there's any resource or website that
provides the info in the opposite direction?

The information needed, i.e. a comparative list of both the Bricklink and Rebrickable
numbers, is not part of the Bricklink database. However, what Bricklink does,
is to provide a link to it's own part number on the Rebrickable (https://www.bricklink.com/v2/catalog/catalogitem.page?P=3001
provides a link to https://rebrickable.com/parts/bricklink/3001) and leave it
up to Rebrickable to know which part it is according to their numbering.

This way, it is clear that the number is proprietary of Bricklink (or TLG if
it is a plain part) and that the other application (Rebrickable in your example)
just knows about these numbers. This same procedure is used on other sites such
as The Brick Brothers and New Elementary that link to a.o. to Bricklink and Lego.com.

For your own webshop, you should ideally have your own unique part/article numbers
(1, 2, 3, ... would do the trick), that you may then freely link to the resources
on lego.com, bricklink.com, peeron, rebrickable or wherever, using their unique
resource identifiers.


Hans-Peter

Thanks for your reply. Hmmm those links to Rebrickable, thanks for pointing that
out. They would be exactly what I needed. If they worked.. but they're
bugged! It seems like they are just plain links to rebrickable to the Bricklink
part number, so for all parts that have a different Rebrickable number, the link
is broken. I don't see what good those links are at all then. They don't
add anything. It's much better to enter the Bricklink number into the Rebrickable
search engine, at least that way you can manually turn a Bricklink number into
a Rebrickable number.
Bricklink better remove this feature altogether if they're not going to provide
the correct links..

I do have my own numbering system, and everything works very well. It's just
that when I part out new sets on Bricklink and my software spots new parts in
my inventory, it would be nice if they could be automatically understood. Especially,
that the image for the part could be automatically added to my database. In order
to do this, I would need it to convert that Bricklink part number that it has
in my inventory into a link for its picture on Rebrickable - and that link contains
the Rebrickable part number.