Skip to content

Instantly share code, notes, and snippets.

@radiustheme
Last active November 8, 2025 09:41
Show Gist options
  • Select an option

  • Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.

Select an option

Save radiustheme/7a15605eac0a6a952d90e5853f5e9c39 to your computer and use it in GitHub Desktop.
How to import sample data for classified listing like categories & locations
{
"locations": [
{
"name": "New York",
"slug": "",
"description": "",
"meta": [
{"image_id" : 45},
{"_icon" : ""}
],
"order": 0,
"child": [
{"name": "New York", "order": 1 },
{"name" : "Port Chester", "order": 2},
{"name" : "Mineola", "order": 3},
{"name" : "Mount Vernon", "order": 4},
{"name" : "Hempstead", "order": 5},
{"name" : "Lynbrook", "order": 6},
{"name" : "Yonkers", "order": 7},
{"name" : "Franklin Square", "order": 8},
{"name" : "Newburgh", "order": 9},
{"name" : "Buffalo", "order": 10},
{"name" : "Long Beach", "order": 11},
{"name" : "Ithaca", "order": 12},
{"name" : "New Rochelle", "order": 13},
{"name" : "Freeport", "order": 14},
{"name" : "Rochester", "order": 15},
{"name" : "Albany", "order": 16},
{"name" : "Valley Stream", "order": 17},
{"name" : "Poughkeepsie", "order": 18},
{"name" : "Baldwin", "order": 19},
{"name" : "West Hempstead", "order": 20},
{"name" : "Schenectady", "order": 21},
{"name" : "White Plains", "order": 22},
{"name" : "Uniondale", "order": 23},
{"name" : "North Valley Stream", "order": 24},
{"name" : "Ossining", "order": 25}
]
}
],
"categories": [
{
"name": "Electronics",
"slug": "",
"description": "",
"meta": "",
"order": 0,
"child":[
{
"name": "Mobile Phone",
"order": 1
},
{
"name": "Mobile Phone Accessories",
"order": 2
},
{
"name": "Computers & Tablets",
"order": 3
},
{
"name": "Computer Accessories",
"order": 4
},
{
"name": "TVs",
"order": 5
},
{
"name": "TV & Video Accessories",
"order": 6
},
{
"name": "Cameras & Camcorders",
"order": 7
},
{
"name": "Audio & MP3",
"order": 8
},
{
"name": "Video Games & Consoles",
"order": 9
},
{
"name": "Freeze",
"order": 10
},
{
"name": "Air Conditioner (AC)",
"order": 11
},
{
"name": "Other Electronics",
"order": 11
}
]
}
],
"listings":[
]
}
@jeffosico
Copy link

Hi everyone. Any sample data for listing import? Would be much appreciated.

@sathish17110
Copy link

Any one looking for ebay categories in json file to import, here is the link. you might get errors in the business and industrial categories because some of the sub categories are long. if so you might have to change or modify them. also because this is a huge list your server ,might slow down when looking or searching for listings if you import them all.

https://github.com/sathish17110/classified-listing-categories

@jaymzway
Copy link

Hi everyone. Any sample data for listing import? Would be much appreciated.

if you scroll up you will see plenty of my sample data i submitted

@davedele
Copy link

Here is every state and city in the USA.
Copy the below, save a .json file (eg: all_locations.json). You may have to run the uploader several times.

https://gist.github.com/davedele/41bb65ba86e3763f0db8aa2fb64f0385

@NeoDevX
Copy link

NeoDevX commented Aug 16, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment