Search the Community

Showing results for tags 'API'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Rebrickable
    • News
    • Suggestions
    • Help!
    • Bugs
    • API
    • Mobile App - Rebrickable LEGO Shopper
  • Inventories and Data
    • Set Inventories
    • MOC Discussions
    • Other Data
  • Other Stuff
    • LEGO News, Events, Community
    • Non LEGO
  • Projects

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Bricksafe URL



Favourite Set(s)

Found 38 results

  1. In the downloads page ( the part_relationships table has child parts and parent parts and relationship type "Mold, Print, Alternate..." In the API, how can I tell what is the child and what is the parent? For example the part 2339 returns this: {"count":1,"next":null,"previous":null,"results":[{"part_num":"2339","name":"Brick Arch 1 x 5 x 4 [Continuous Bow]","part_cat_id":37,"year_from":1986,"year_to":2017,"part_url":"","part_img_url":"","prints":[],"molds":["14395"],"alternates":["76768"],"external_ids":{"BrickOwl":["853514"]}}]} Where you can see that 14395 is a mold variant and 76768 is an alternate. However when we pull 14395, we see: {"count":1,"next":null,"previous":null,"results":[{"part_num":"14395","name":"Brick Arch 1 x 5 x 4 [Continuous Bow, Raised Underside Cross Supports]","part_cat_id":37,"year_from":2013,"year_to":2019,"part_url":"","part_img_url":"","prints":[],"molds":["2339"],"alternates":[],"external_ids":{"BrickOwl":["853514"]}}]} which lists 2339 as a mold variant! And for completeness, 76768 returns: {"count":1,"next":null,"previous":null,"results":[{"part_num":"76768","name":"Brick Arch 1 x 5 x 4 [Irregular Bow, Raised Underside Cross Supports]","part_cat_id":37,"year_from":2010,"year_to":2015,"part_url":"","part_img_url":"","prints":[],"molds":[],"alternates":["2339"],"external_ids":{"BrickOwl":["148046"]}}]} which shows 2339 as an alternate. Which is all to say, how can I tell which is the parent part and which is the child part?
  2. Hi, im currently started to develop an Android API using the Rebrickable API. I dont want to store the users password on the phones. My idea would be an initial login screen and then I would just store the usertoken. Is there any lifetime for the token? Or would it only change if the user changes his password? best regards Kay
  3. Hello everyone. I am excited to try out the API. I want to request a API Key so I can start learning the API. Is there a getting started guide or if someone can point me into the right direction. Thanks in advance!
  4. Hi Guys, I am new to rebrickable and am trying to build a small applications just try some stuff out. I added all parts from a set ( so now I have 8 loose parts in my Parts List (default list). I can't figure out which endpoint I need to call in order to get back all sets I can build. Just like this feature on the website: After one and a half hour of searching the forum topics I got tired, so I've come to you guys. I hope you can help me. Thanks in advance.
  5. Thomas Jensen

    Set versions

    Could set versions be added to the API ?
  6. Be quick and grab a promotion code and get my new app "Bricks Quick Sort" for free. The app is a paid app so you will not be bothered by any kind of ads what so ever. It is an open beta so everyone are welcome. RZ0RX80K79H8TF8P7ELKWZQ 52EWWA53AUXX3ZMV5TTZ9SU T4F2RPMPYX358F3LULARAWW K9N1C9D7NPLD06QBMP73RBM AK67JJN0TRGJH4EG9N8E0V9 92PQY6AWWDXZ0QD54Z3U4VN A5735Y3HS628CB334TZ01XR WT0H0EJGLK360VE58SXFMNX What is Bricks Quick Sort, read the description on Google Play or down below. Have a nice day Thomas --- Bricks Quick Sort --- Effectively sort your LEGO® bricks into sets. * Did your kid deconstruct a lot of sets and now want them assembled again ? * Have you bought a huge pile of bricks and want to sort them into sets ? With this app you enter the set number and the list of all the needed pieces are retrieved, you can add several sets to the list and the app will keep track of which pieces you have marked found for each set. The current sorting strategy is by part and color. Spare pieces are not included. If you have any suggestions for features or improvements you are very welcome to contact me.
  7. Well, I have gotten Reinstructable into open Beta, and it is looking good so far. Search for sets you own from the vast database here on Rebrickable, and then assign locations to the elements within. It now pulls that image locations correctly, the previous method seems to have broken, if the mod is watching this I have posted what I think is the fix in the API section, but no one seems to be paying attention there. I need to add 2 things to move to production: Syncing to the users account here at Rebrickable allow the user to show all the elements listed in the database at once. once those are added, I will move this fully to production, but the additions will not end there...... Planned additions: Allow the user to import loose pieces, and sync those into their Rebrickable account. Breakdown sets to allow the user to filter the element list to a more managable size when rebuilding a set. SET UP MOCS, as well as import them from Rebrickable. Allow the user to sync from other sites as well. as a reminder or those that want to join in the Beta follow the link:
  8. I created a new user dragmasoft to test my syncing code, but when I attempt to connect to it, it gives me a 403 error This is from the API page. Is there a time limit that needs to pass? My main account has no problems.
  9. Hi all, When I retrieve a lost part it seems that the image url included in the result points to an image with a different color than the part involved.<token>/partlists/27086/parts/3297/4/ { "list_id": 27086, "quantity": 80, "part": { "part_num": "3297", "name": "Slope 33° 3 x 4", "part_cat_id": 3, "part_url": "", "part_img_url": "", "external_ids": { "BrickOwl": [ "431571" ] } }, "color": { "id": 4, "name": "Red", "rgb": "C91A09", "is_trans": false, "external_ids": { "LEGO": { "ext_descrs": [ [ "Bright red", "BR.RED" ], ..... The color for this lost part is Red but when you use the url to pick up the image its black. I also noticed this with other parts and other colors for lost parts. Is this by design? should I retrieve the image in a different way if I want the corresponding image? Regards Peter
  10. Dragma

    Sets in set call.

    Just wondering, is there a reason why the set objects in the:/api/v3/lego/sets/{set_num}/sets/ dose not return the same info as the /api/v3/lego/sets/{set_num}/? for example: looking up K3731-1 in the first returns: "results": [ { "id": 2010, "set_num": "3731-1", "set_name": "Pumpkin Pack", "quantity": 2, "set_img_url": "" } While 3731-1 in the latter returns: { "set_num": "3731-1", "name": "Pumpkin Pack", "year": 2000, "theme_id": 230, "num_parts": 87, "set_img_url": "", "set_url": "", "last_modified_dt": "2011-09-05T14:00:00Z" } Basically if you want to get all the info about a set that is contained within a set you need multiple calls. why not have them both return the same object with the single one setting a quantity of 1?
  11. i want to imoprt the api from rebrickable into my own lego database. wich is created in ms access how can i import the api into mms access, so my dbase stays acurate.
  12. Jeremy

    Price Guide

    Did Rebrickable AAPI has support for prices of piece(s) or set ? I wish can mix with open-source, simple, and lightweight API for current and historical foreign exchange rates published by the European Central Bank on
  13. Hello, I'm struggling with the API-function /api/v3/lego/sets/{set_num}/sets/ The explanation for this function in the API-documentation / Swagger is: "Get a list of all Inventory Sets in this Set." But what are "Inventory Sets" for a given Set? Can someone give me an example set-number which returns a non-empty result? MAybe I understand by that... Many thanks for help
  14. jmp23834

    api with google doc

    Is it possible to call the api from a script in a google sheet? Any samples?
  15. The API-function /api/v3/users/{user_token}/parts/ has a query-parameter named "search". Has someone investigated how this parameter can be used ? Does it understand wildcards? For what kind of search (and on which fields) is it used? Same parameter also exists for /api/v3/users/{user_token}/sets/ How does it work there / can it be used there? Many thanks!
  16. Hi all, When I retrieve a lost part it seems that the image url included in the result points to an image with a different color than the part involved.<token>/partlists/27086/parts/3297/4/ { "list_id": 27086, "quantity": 80, "part": { "part_num": "3297", "name": "Slope 33° 3 x 4", "part_cat_id": 3, "part_url": "", "part_img_url": "", "external_ids": { "BrickOwl": [ "431571" ] } }, "color": { "id": 4, "name": "Red", "rgb": "C91A09", "is_trans": false, "external_ids": { "LEGO": { "ext_descrs": [ [ "Bright red", "BR.RED" ], ..... The color for this lost part is Red but when you use the url to pick up the image its black. I also noticed this with other parts and other colors for lost parts. Is this by design? should I retrieve the image in a different way if I want the corresponding image? Regards Peter
  17. Hello, I'm getting started with the Rebrickable API, and am a bit confused on how it works. I ran the command: curl -X GET --header 'Accept: application/json' --header 'Authorization: key *****' '' ***** stands for my key. When I run this command, it gives me {"detail":"Not found."}. Can anyone help me as to why it is not working? (I'm probably doing something stupid) Also, how would I go about hooking this API into something like an Android application?
  18. TeagueO

    brickset API badge

    I am trying to get the brickset badge. I have created a brickset account but am clueless after that. All I could do was create an API (what is that) key. I had no options for using it though. Could anybody help me? -TeagueO
  19. The API-functions: GET /api/v3/lego/mocs/{set_num}/parts/ GET /api/v3/lego/sets/{set_num}/parts GET /api/v3/lego/sets/{set_num}/sets/ GET /api/v3/users/{user_token}/partlists/ GET /api/v3/users/{user_token}/setlists don't have the query-parameter "ordering" even though paging (paramter page and result with next and previous) are implemented. Is this by design? On the other hand I see that the API-function GET /api/v3/users/{user_token}/profile has a page-parameter (no ordering), but the result doesn't have the typical paging structure (count, next, previous) (Which I think makes sense when looking on what the function returns there is no paging needed). Regards Dietmar
  20. return {"count":1,"next":null,"previous":null, "results":[{"part_num":"3008b", "name":"Brick 1 x 8 with Bottom Tubes, with 3 Lowered Cross Supports", "part_cat_id":11,"part_url":"...","part_img_url":"..."}]} So only part_num 3008b, but what about 3008 and 3008a? {"part_num":"3008","name":"Brick 1 x 8", ..... ,"alternates":["3008a","3008b"], "external_ids":{"BrickOwl":["273019"],"LEGO":["63322"],"LDraw":["63322"]}} also see:
  21. Hello, can someone please explain what exactly the API-function GET /api/v3/lego/elements/{id}/ is used for? In detail: - What ID is the parameter in (Lego-Element-ID, LEGO-design-ID,....)? - What is the result? The part_id seems not to be a Renrickable Part-Number Try for example 18862 for the {id} . It returns: { "part_id": 11548, "color_id": 70, "element_id": "6031144", "design_id": "88585" } So this seems to be LEG-Element-IDs and Design-ID for the queried ID. But the part_id is not a valid Rebrickable-ID/part_num... To be honest, I'm not so familar with the way especially LEGO is numbering their parts;so maybe someone can explain here or guide me to some ressource to understand... Best regards Dietmar
  22. I have alot of parts in my inventory for which I have the bricklink-IDs (written on paper :-) ). As an example let's take 4592c02, which, when entered in the search-box on V3, leads me to: This page clearly states the bricklink ID correctly. Now I want to do the same over API: entering the bricklink-ID and calling an API-function which returns me the correct Rebrickable-ID (298c02 in the example) and a list of external IDs. I tried /api/v3/lego/parts/ with the search-parameter also, but I cannot find any API-function which returns me the external IDs like it was returned by the V2-function get_part and parameter inc_ext=1. In V2 I could use the Bricklink-ID in the part_id of get_part and it returned me the rebrickable_part_ids, if the part_id was a non Rebrickable-ID. I think there are different solutions: Use the search-parameter of /api/v3/lego/parts and extend the result with the external IDs (like in V2); part_ids in the result are clearly Rebrickable-IDs and it is up to the consuming client to evaluate the result; in conjunction with that extend also the result of GET /api/v3/lego/parts/{part_num} so that it contains the external IDs (like it does for print, molds and alternates) Make /api/v3/lego/parts/{part_num} also react on Bricklink-IDs (and maybe others like ldraw, brickowl,...) and have an external-array in the result (this is pretty much the same behaviour like in V2) Add extra-functions like /api/v3/lego/bricklinkparts/{part_num} (and the same for maybe LDRAW, BrickOwl, LEGO (designid)), which return at least the Rebrickable-ID of the part Alternative 2 would suite best to my needs (not much change in my use of the API). From an architectural point of view, 3 would be the best solution (clear separation of concerns). 1 makes sense at all to me (search should search for "everything" (like search on the site) :-) ) Everthing said is just IMHO.. :-) Best regards Dietmar
  23. New methods /api/v3/lego/colors/{id}/ and /api/v3/lego/colors not return information about external color id's (bricklink, ldraw, brickowl). Can you fix it?
  24. Request: not return bricklink id { "part_num": "54200", "name": "Slope 30° 1 x 1 x 2/3 (Cheese Slope)", "part_cat_id": 3, "year_from": 2004, "year_to": 2017, "part_url": "", "part_img_url": "", "prints": [], "molds": [], "alternates": [], "external_ids": { "LDraw": "63290", "BrickOwl": "158788", "LEGO": "63290" } } But on site this id assignet to part:
  25. Hello, Right now for managing my loose parts list, the only API functions available to use are get_user_parts and set_user_parts. It would be nice to have and add_parts API. The trouble I have right now with set_user_parts is that I have a lot of parts and it takes a long time to upload my changes when I make some through my own personal applications. In fact recently I've been receiving 504 timeout errors. (Aside: This is interesting in and of itself, through my application I will receive the 504 error. I then check my parts list through my web browser and it will usually have the incorrect number of parts. If I refresh the page, the number of parts will increase until it reaches the total number of parts that I uploaded.) Most of the time I my list is not changing that much only a few quantities of my thousands of parts are changed. It would be nice to have a function that works like "+ Add Part" or "Save Changes" buttons in the pop-up box that comes when you click on a part in a user's "myparts" list. I imagine it could work in one of two ways, you could submit the change (PART, COLOR, CHANGE) where CHANGE is an integer (including negative values and zero) that you want to add to your list), or submit (PART, COLOR, QTY) where QTY is the final quantity you want in your list. In both cases if the PART, COLOR combo is not in your parts list then it is added and if CHANGE + original quantity or QTY are less than or equal to zero then the PART, COLOR combo is removed from your parts list. This would dramatically reduce the irrelevant information I need to send over the internet, and I think it would make it a lot harder to accidentally mess up an entire part list that takes a long time to establish. Please let me know what you think.