Forum
TF Import
I am trying to grab these "attributes" from this type of url:
https://lok-nft.leagueofkingdoms.com/api/land/146140
Outputs:
{"name":"LOK Land #146140 (x:480,y:1440)","description":"League of Kingdoms","external_url":"https://land.leagueofkingdoms.com/map/146140","image":"https://lok-nft.leagueofkingdoms.com/api/card/land/146140?4","image_url":"https://lok-nft.leagueofkingdoms.com/api/card/land/146140?4","attributes":[{"trait_type":"ID","value":"146140"},{"trait_type":"Location","value":"x:480 y:1440"},{"trait_type":"Owner"},{"trait_type":"Description"},{"trait_type":"Development Level","value":4},{"trait_type":"Development Point","value":607494},{"trait_type":"Unclaimed DAI","display_type":"number","value":"0.0000"},{"trait_type":"Unclaimed Resource","display_type":"number","value":24145099},{"trait_type":"Total Claimed DAI","display_type":"number","value":"21.0557"},{"trait_type":"Total Claimed Resource","display_type":"number","value":39130},{"trait_type":"Profile Image","value":"https://lok-nft.leagueofkingdoms.com/api/card/land/146140"},{"trait_type":"Land Color","value":"#ab84"}]}
Which Type or grabber should I be using to add those attributes to custom article fields?
I see. In Joomla 4, few changes were made to include API. So, no need to create Grabber.
Create a new Single of type API. Now under API tab,
- In the base URL, enter: https://lok-nft.leagueofkingdoms.com/api/land
- Enable the setting JSON to Array.
In the link or link to save, just enter the last part of URL like 146141. Hit Preview to see if something is coming.