# Reconcile data from GlobalNames API into separate columns

**URL:** <https://forum.openrefine.org/t/reconcile-data-from-globalnames-api-into-separate-columns/1038>\
**Category:** Data cleaning and transformations\
**Tags:** reconciliation\
**Created:** [November 3, 2023, 12:20am UTC](https://forum.openrefine.org/t/reconcile-data-from-globalnames-api-into-separate-columns/1038 "2023-11-03T00:20:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johno\_Ridden](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/johno_ridden/32/663_2.png) [@Johno\_Ridden](https://forum.openrefine.org/u/Johno_Ridden)\
**Post date:** [November 3, 2023, 12:20am UTC](https://forum.openrefine.org/t/reconcile-data-from-globalnames-api-into-separate-columns/1038/1 "2023-11-03T00:20:15Z")

</div>

Hello,

I am using the GlobalNames API to reconcile data. The version I am using is 3.6.2.

Here is a screen shot below.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/openrefine/original/1X/6bc331703bc01242c118b3eef9eac7588508ef62.png)

This is the data.  
[{"taxon":"Biota","rank":"unranked"},{"taxon":"Plantae","rank":"kingdom"},{"taxon":"Tracheophyta","rank":"phylum"},{"taxon":"Magnoliopsida","rank":"class"},{"taxon":"Myrtales","rank":"order"},{"taxon":"Myrtaceae","rank":"family"},{"taxon":"Myrtoideae","rank":"subfamily"},{"taxon":"Kunzea","rank":"genus"}]

What GREL can I use to extract this into separate columns based on 'taxon' and 'rank'?

Thanks,  
Johno

---

<div class="post-metadata">

**Author:** ![tfmorris](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/tfmorris/32/17_2.png) [@tfmorris](https://forum.openrefine.org/u/tfmorris)\
**Post date:** [November 3, 2023, 1:59am UTC](https://forum.openrefine.org/t/reconcile-data-from-globalnames-api-into-separate-columns/1038/2 "2023-11-03T01:59:35Z")

</div>

Something like "Add column based on this column..." with

forEach(value.parseJson(),i,i.taxon).join('|')

for taxon and rank to create two new columns and then "Split multi-valued cells..." with the pipe (|) character as your delimiter should do the trick.

Tom

---

<div class="post-metadata">

**Author:** ![Johno\_Ridden](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/johno_ridden/32/663_2.png) [@Johno\_Ridden](https://forum.openrefine.org/u/Johno_Ridden)\
**Post date:** [November 3, 2023, 2:23am UTC](https://forum.openrefine.org/t/reconcile-data-from-globalnames-api-into-separate-columns/1038/3 "2023-11-03T02:23:39Z")

</div>

That works. Brilliant, thanks so much!
