Supplying Vector, Data Limitation on Get Trade Data #7
-
I was about maintaining a database of exports for all HS using bps_get_trade_hs_chapter. From the documentation, Inf can be used to get data from 2014 - latest. Any thoughts on extracting all chapters for the HS Code? I tried multiple attempts but resulting in error "this request yields no data." Also, is there any limitation on data that can be extracted? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello. Could you please provide a reproducible example of the code you tried to run? |
Beta Was this translation helpful? Give feedback.
-
tried vector alternative with this. I had it once that it worked, unfortunately now it ended in 'this request yield no data' error message
Update: for now, the only way is to extract each HS manually, one line for one flow per HS code. Any help will be appreciated! |
Beta Was this translation helpful? Give feedback.
It seems that the API has a limit on the amount of data we can get on a single request. The workaround, at least for now, is
bps_request_multiple()
(read more in the function's documentation). With this function, we can get the data in all chapters across all available years, as follows. (You may want to read the API documentation to use the original name-value pairs of the query parameters.)