[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Sumble location codes](https://spiral.ai/integrations/n8n/sumble-location-codes)

# How to Use Sumble location codes in n8n

Sumble location codes returns exact geographic filter codes from Sumble's location hierarchy. Use it to translate place names into codes before researching companies by location.

|  |  |
| --- | --- |
| Model | Sumble location codes |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | Up to $0.17459 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Sumble location codes in n8n

- Every Monday, use Sumble location codes to resolve Austin, Dallas, and Houston, and report differences from the previous lookup results.
- On the first business day of each month, use Sumble location codes to retrieve the locations directly beneath Canada and report any changes.
- Before our weekly European research brief, use Sumble location codes to resolve Germany, France, and Spain and include the returned code table.
- Each month, use Sumble location codes to search for Cambridge and flag changes in the returned matches for our territory review.
- Before the quarterly Asia-Pacific planning meeting, use Sumble location codes to retrieve matching locations for Singapore, Tokyo, and Sydney.

## How to set up Sumble location codes in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Sumble location codes in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Sumble location codes, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Sumble location codes**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "sumble/locations/find",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Sumble location codes on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Sumble location codes tools and prices

- [Sumble · Location lookup](https://spiral.ai/tools/alexandria/sumble/locations/find) (Alexandria): Up to $0.17459 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Search country, state, and city names. Do not also send parent. |
| parent |  | — | List children of a region, country, or state code, such as US or US:Texas. Do not also send query. Omit both to list top-level regions and countries. |

## What can you do with Sumble location codes in n8n?

Keep the geographic code mapping for a recurring Sumble research brief consistent. A scheduled agent can repeat a defined set of location lookups and flag differences from its previous results.

### Define sales territories

Resolve the places in a territory plan to Sumble codes so later company searches use the intended geographic boundaries.

### Normalize CRM geography

Build a mapping from business location labels in a CRM export to returned Sumble codes, with unresolved labels set aside for review.

### Populate an internal location selector

Use returned locations and their children to populate geographic choices in an internal company research tool.

### Prepare regional market research

Resolve planned research markets such as Canada, Germany, and Singapore before running separate searches for companies in those markets.

### Review account routing geography

Compare place labels in internal routing rules with Sumble's returned codes before applying those rules to company research results.

### Keep campaign boundaries consistent

Create a shared geographic code mapping for an internal account campaign so each analyst uses the same locations in later searches.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Sumble location codes in other agents

- [Amp](https://spiral.ai/integrations/amp/sumble-location-codes)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/sumble-location-codes)
- [Claude](https://spiral.ai/integrations/claude-desktop/sumble-location-codes)
- [Claude Code](https://spiral.ai/integrations/claude-code/sumble-location-codes)
- [Cline](https://spiral.ai/integrations/cline/sumble-location-codes)
- [Codex](https://spiral.ai/integrations/codex/sumble-location-codes)
- [Cursor](https://spiral.ai/integrations/cursor/sumble-location-codes)
- [Devin](https://spiral.ai/integrations/devin/sumble-location-codes)
- [dots](https://spiral.ai/integrations/dots/sumble-location-codes)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/sumble-location-codes)
- [Gemini](https://spiral.ai/integrations/gemini/sumble-location-codes)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/sumble-location-codes)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/sumble-location-codes)
- [goose](https://spiral.ai/integrations/goose/sumble-location-codes)
- [Grok](https://spiral.ai/integrations/grok/sumble-location-codes)
- [Grok Build](https://spiral.ai/integrations/grok-build/sumble-location-codes)
- [Hermes](https://spiral.ai/integrations/hermes/sumble-location-codes)
- [Instinct](https://spiral.ai/integrations/instinct/sumble-location-codes)
- [Manus](https://spiral.ai/integrations/manus/sumble-location-codes)
- [Muse](https://spiral.ai/integrations/muse/sumble-location-codes)
- [Muse Code](https://spiral.ai/integrations/muse-code/sumble-location-codes)
- [Notion](https://spiral.ai/integrations/notion/sumble-location-codes)
- [OpenClaw](https://spiral.ai/integrations/openclaw/sumble-location-codes)
- [opencode](https://spiral.ai/integrations/opencode/sumble-location-codes)
- [Perplexity](https://spiral.ai/integrations/perplexity/sumble-location-codes)
- [Raycast](https://spiral.ai/integrations/raycast/sumble-location-codes)
- [VS Code](https://spiral.ai/integrations/vscode/sumble-location-codes)
- [Windsurf](https://spiral.ai/integrations/windsurf/sumble-location-codes)
- [Zapier](https://spiral.ai/integrations/zapier/sumble-location-codes)

## More n8n guides

- [Sumble job title classification](https://spiral.ai/integrations/n8n/sumble-job-title-classification)
- [Sumble priority signal digest](https://spiral.ai/integrations/n8n/sumble-priority-signal-digest)
- [Sumble job posts](https://spiral.ai/integrations/n8n/sumble-job-posts)
- [Sumble project lookup](https://spiral.ai/integrations/n8n/sumble-project-lookup)
- [Sumble conference search](https://spiral.ai/integrations/n8n/sumble-conference-search)
- [Sumble technology categories](https://spiral.ai/integrations/n8n/sumble-technology-categories)

## Questions about Sumble location codes in n8n

**Can n8n use Sumble location codes?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Sumble location codes like any built-in tool.

**How much does Sumble location codes cost in n8n?**

Up to $0.17459 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Sumble location codes in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Sumble location codes on its own Alexandria account.

**How long does it take to set up Sumble location codes in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Sumble location codes runs?**

Sumble location codes runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**What does the Sumble location lookup return?**

It returns geographic codes intended for Sumble filters. Results can come from a place-name search, the children of a location, or the top level of the location hierarchy.

**Does capitalization matter in Sumble location codes?**

Yes. The returned filter codes are case-sensitive, so preserve their capitalization when using them in geographic filters.

**Where does Sumble get its location data?**

Sumble identifies GeoNames as its location data source and lists the license as CC BY 4.0.

**Can I browse places within a larger location?**

Yes. Sumble supports returning a location's children as well as top-level locations, which lets you explore the hierarchy before choosing filter codes.

**What request limit applies to location lookups?**

Sumble documents a limit of 10 requests per second per user, shared across its endpoints. Occasional bursts are allowed.

