Creating Location Lists

Creating a list of Locations in Brandwatch Consumer Research.

The below call will create a Location List called "Northeastern Cities" in the Project with ID 1998159493. This Location List will be shared with this project only (sharedProjectIds), but can be edited by anyone (shared):

curl -X POST \
  'https://api.brandwatch.com/projects/1998159493/group/location/' \
  -H 'content-type: application/json' \
  -d '{"name":"Northeastern Cities","locations":[{"id":"new8"},{"id":"bos1"},{"id":"phig"},{"id":"bali"},{"id":"wdc0"}],"sharedProjectIds":[1998159493],"shared":"public"}'

For a list of Brandwatch location ids, please contact [email protected].

The response will be similar to the following:

{
    "id": 192667493,
    "name": "Northeastern Cities",
    "shared": "public",
    "sharedProjectIds": [
        1998159493
    ],
    "locations": [
        {
            "id": "wdc0",
            "name": "Washington",
            "type": "city",
            "fullName": "Washington, District of Columbia, District of Columbia, United States, North America"
        },
        {
            "id": "phig",
            "name": "Philadelphia",
            "type": "city",
            "fullName": "Philadelphia, Philadelphia County, Pennsylvania, United States, North America"
        },
        {
            "id": "bos1",
            "name": "Boston",
            "type": "city",
            "fullName": "Boston, Suffolk County, Massachusetts, United States, North America"
        },
        {
            "id": "bali",
            "name": "Baltimore",
            "type": "city",
            "fullName": "Baltimore, Baltimore County, Maryland, United States, North America"
        },
        {
            "id": "new8",
            "name": "New York City",
            "type": "city",
            "fullName": "New York City, New York County, New York, United States, North America"
        }
    ],
    "userName": "[email protected]",
    "userId": 117025679
}