Support Forum [ All Topics | New Topic ]

Thread: Get All Data for Display in asp.net MVC

i need all Diamonds data like price, shape, carat,cut,color low_size,high_size,clarity . i need API of get all these data to display.
i have API https://technet.rapaport.com/HTTP/JSON/Prices/GetPriceSheet.aspx . but in this limited data is return . i need some other data also . please can you help me for this .


>> add a comment
forefront infotech
02/25/2020 08:11


5 Replies:

Hi 
There are few ways to generate the code 
1) Goto https://technet.rapaport.com/Info/Prices/Format_Json.aspx and follow the instructions
2) Get sample codes 
    https://technet.rapaport.com/Info/SampleCodeByLanguage.aspx
3) Here is a copy of The API code that I have 
    
curl --location --request POST 'https://technet.rapaport.com/HTTP/JSON/RetailFeed/GetDiamonds.aspx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw '
{
"request": {
"header": {
"username": "",
"password": ""
},
"body": {
"search_type": "White",
"shapes": ["round","Princess","pear"],
"size_from": 0.2,
"size_to": 15.3,
"color_from": "D",
"color_to": "K",
"clarity_from": "IF",
"clarity_to": "VS2",
"cut_from": "Excellent",
"cut_to": "Fair",
"polish_from": "Excellent",
"polish_to": "Fair",
"symmetry_from": "Excellent",
"symmetry_to": "Fair",
"price_total_from": 100,
"price_total_to": 150000,
"labs": ["GIA","IGI"],
"table_percent_from": "26.0",
"table_percent_to": "66.0",
"page_number": 1,
"page_size": 20,
"sort_by": "price",
"sort_direction": "Asc"
}
}
}'

Thanks 


>> add a comment
Neil
2/25/2020 10:06:00 AM
Thank You 

>> add a comment
forefront infotech
2/25/2020 11:11:00 PM
Thank You for your Reply . I use your code but it is not solution of my question . in this code return HTML view page .
My Question is that i need price , shape , carat , colour,clarity , cut ,polish,symmetry cert,fluor,depth,ratio in JSON Format to display in data table grid in MVC



>> add a comment
forefront infotech
2/27/2020 11:31:00 PM
Thank You for your Reply . I use your code but it is not solution of my question . in this code return HTML view page .
My Question is that i need price , shape , carat , colour,clarity , cut ,polish,symmetry cert,fluor,depth,ratio in JSON Format to display in data table grid in MVC . For That i need API which is get all these data in json format .


>> add a comment
forefront infotech
2/27/2020 11:47:00 PM
Hi 
Here is a verified JSon code we use 


{
"request": {
"header": {
"username": " ",
"password": " "
},
"body": {
"search_type": "White",
"shapes": ["round", "Princess", "pear"],
"size_from": 0.2,
"size_to": 15.3,
"color_from": "D",
"color_to": "K",
"clarity_from": "IF",
"clarity_to": "VS2",
"cut_from": "Excellent",
"cut_to": "Fair",
"polish_from": "Excellent",
"polish_to": "Fair",
"symmetry_from": "Excellent",
"symmetry_to": "Fair",
"price_total_from": 100,
"price_total_to": 150000,
"labs": ["GIA", "IGI"],
"table_percent_from": "26.0",
"table_percent_to": "66.0",
"eye_cleans": ["Yes", "Borderline"],
"page_number": 1,
"page_size": 20,
"sort_by": "price",
"sort_direction": "Asc"
}
}
}


>> add a comment
Anon
3/1/2020 7:44:00 AM