Discussion Forum: Thread 311238

 Author: carlwain74 View Messages Posted By carlwain74
 Posted: Oct 22, 2021 00:00
 Subject: API failing to retrieve particular item
 Viewed: 74 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

carlwain74 (15)

Location:  USA, Washington
Member Since Contact Type Status
Nov 25, 2013 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: PNW-Bricks
Hi,

I am using the API to retrieve prices. However, I'm having trouble trying
to retrieve details for a particular set.

Set is 40158

API Call
DEBUG:urllib3.connectionpool:https://api.bricklink.com:443 "GET /api/store/v1/items/Set/40158/price?new_or_used=N&country_code=US®ion=north_america
HTTP/1.1" 200 113

Output
DEBUG:root:{
"meta": {
"code": 400,
"description": "Invalid item sequence number: null",
"message": "PARAMETER_MISSING_OR_INVALID"
}
}

Here is the set link to the set

https://www.bricklink.com/v2/catalog/catalogitem.page?G=40158

Is this an issue with bricklink database or the API?
 Author: minithings4life View Messages Posted By minithings4life
 Posted: Oct 22, 2021 01:11
 Subject: Re: API failing to retrieve particular item
 Viewed: 38 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

minithings4life (17098)

Location:  United Kingdom, England
Member Since Contact Type Status
Feb 18, 2003 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: Minithingsforlife
That item is a Gear not a Set.
Your API call will have to look it up in the Gear section.
 Author: carlwain74 View Messages Posted By carlwain74
 Posted: Oct 22, 2021 10:35
 Subject: Re: API failing to retrieve particular item
 Viewed: 24 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

carlwain74 (15)

Location:  USA, Washington
Member Since Contact Type Status
Nov 25, 2013 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: PNW-Bricks
In Help, Minifigforlife writes:
  That item is a Gear not a Set.
Your API call will have to look it up in the Gear section.

It's a set and the set is Pirates Chess Set, Pirates III

Not sure how you determined it was a gear?
 Author: carlwain74 View Messages Posted By carlwain74
 Posted: Oct 22, 2021 10:37
 Subject: Re: API failing to retrieve particular item
 Viewed: 26 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

carlwain74 (15)

Location:  USA, Washington
Member Since Contact Type Status
Nov 25, 2013 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: PNW-Bricks
In Help, carlwain74 writes:
  In Help, Minifigforlife writes:
  That item is a Gear not a Set.
Your API call will have to look it up in the Gear section.

It's a set and the set is Pirates Chess Set, Pirates III

Not sure how you determined it was a gear?

Sorry, I just went back and saw, it's been incorrectly classified in Bricklink.

So the API is fine, but the item itself is wrongly assigned as a gear and not
a set.
 Author: Teup View Messages Posted By Teup
 Posted: Oct 22, 2021 11:43
 Subject: Re: API failing to retrieve particular item
 Viewed: 41 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Teup (6602)

Location:  Netherlands, Utrecht
Member Since Contact Type Status
May 6, 2004 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: BLOKJESKONING
In Help, carlwain74 writes:
  In Help, carlwain74 writes:
  In Help, Minifigforlife writes:
  That item is a Gear not a Set.
Your API call will have to look it up in the Gear section.

It's a set and the set is Pirates Chess Set, Pirates III

Not sure how you determined it was a gear?

Sorry, I just went back and saw, it's been incorrectly classified in Bricklink.

So the API is fine, but the item itself is wrongly assigned as a gear and not
a set.

Well, that's just a decision. Things that are not regular lego sets are classified
as gear. Gears may or may not contain Lego parts. Even though this article happens
to be entirely made from Lego parts, it is still a different kind of item than
a Lego set - namely a board game. Its number is also not similar to that of the
regular Pirates III sets.
 Author: jennnifer View Messages Posted By jennnifer
 Posted: Oct 22, 2021 13:01
 Subject: Re: API failing to retrieve particular item
 Viewed: 34 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

jennnifer (3533)

Location:  USA, Illinois
Member Since Contact Type Status
Sep 8, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: Old Grey Bricks
In Help, carlwain74 writes:
  In Help, carlwain74 writes:
  In Help, Minifigforlife writes:
  That item is a Gear not a Set.
Your API call will have to look it up in the Gear section.

It's a set and the set is Pirates Chess Set, Pirates III

Not sure how you determined it was a gear?

Sorry, I just went back and saw, it's been incorrectly classified in Bricklink.

So the API is fine, but the item itself is wrongly assigned as a gear and not
a set.

You must be such an expert on our catalog to know without doubt that this one
item is wrongly categorized here.

We have a fairly detailed Help section. You might want to have a look around...

Jen
 Author: Admin_Russell View Messages Posted By Admin_Russell
 Posted: Oct 22, 2021 13:32
 Subject: Re: API failing to retrieve particular item
 Viewed: 56 times
 Topic: Help
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Admin_Russell

Location:  USA, California
Member Since Contact Type Status
May 9, 2017 Contact Member Admin
Buying Privileges - OKSelling Privileges - OK
BrickLink Administrator
In Help, carlwain74 writes:
  In Help, carlwain74 writes:
  In Help, Minifigforlife writes:
  That item is a Gear not a Set.
Your API call will have to look it up in the Gear section.

It's a set and the set is Pirates Chess Set, Pirates III

Not sure how you determined it was a gear?

Sorry, I just went back and saw, it's been incorrectly classified in Bricklink.

So the API is fine, but the item itself is wrongly assigned as a gear and not
a set.

It's not really incorrect. All games are currently classified under the Gear
Item Type.

However, we are going to be moving about 60 to 70 Gear items to the Sets Item
Type in a couple weeks. We are doing this because people have had difficulty
finding them in the catalog and they very closely resemble sets (mostly or entirely
brick built, and share the same numbering system as sets).

This will also help our connectivity to Brickset.