ainea Business API

Free location-based business search: give an activity and a place and get matching businesses with address, phone, email and website. About 6.5M businesses in 70 countries (strongest in US, DE, UK, FR). Remote MCP endpoint: https://api.ainea.org/mcp - no API key needed.

Hosted MCP Server

npx add-mcp 'https://api.ainea.org/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Public · free · no account needed

Find tradespeople, lawyers & doctors near any location – via API

The Business API returns businesses matching an activity near a location – with address, phone, email and website. For your website, your app or your AI assistant.

6.5 M

businesses with a website

60

categories

70

countries

1.9 M

searchable places

€0

no sign-up

The ainea Business API is a free interface for location-based business search. It answers requests such as “electrician in Manchester” or “Klempner in Regensburg” with matching businesses nearby. Of 6.48 million businesses, 6.34 million have a phone number and 4.01 million an email address. Coverage is strongest in the USA (2.8 M), Germany (813,000), the United Kingdom (536,000) and France (455,000).

Over 6 million businesses 60 categories in 70 countries – from roofers to employment lawyers.

Any place, any language Place name, district, postcode or coordinates. “plumber”, “Klempner” and “idraulico” all work.

Built for AI REST with OpenAPI for ChatGPT actions, an MCP server for Claude and other agents.

Sensibly ranked Trustworthy businesses with complete contact details nearby come first.

Base URL https://api.ainea.org · MCP: https://api.ainea.org/mcp · OpenAPI: /openapi.json · interactive: /docs

Quick start

No key, no sign-up: a simple GET request is all you need.

curl "https://api.ainea.org/search?activity=electrician&location=Regensburg"
{
  "activity": "Electrician",
  "location": "Regensburg (DE-BY)",
  "radius_km": 30.0,
  "count": 1,
  "businesses": [
    {
      "id": "08f1f2a6c3b4e5d6...",
      "name": "Elektro Muster GmbH",
      "category": "Electrician",
      "distance_km": 2.4,
      "address": "Musterstraße 12, 93047 Regensburg, DE",
      "phone": "+49 941 123456",
      "email": "info@elektro-muster.de",
      "website": "https://elektro-muster.de"
    }
  ]
}

Without limit the API returns exactly one business – the best match. With limit=10 you get up to ten. Search terms can be in any supported language (e.g. plumber, Klempner, plombier).

Try it

The request runs directly from your browser against the live API and counts towards your quota. By using it you accept the terms of use.

GET/search

Searches businesses of an activity near a location. Results are ranked by trustworthiness and distance; businesses with an email address on their own domain are preferred. At most one location per website is returned.

ParameterTypeDescription
activity *textActivity as free text in any supported language, e.g. plumber, employment lawyer, Klempner. Generic terms such as lawyer search all matching specialisations. List: /categories.
locationtextPlace name, district or postcode, optionally with country or region: Manchester, 93047, Paris, FR, Springfield, US-IL, Vienna, Austria.
countrytextOptional ISO country code to narrow the search, e.g. GB, DE, US.
lat, lonnumberInstead of location: coordinates, e.g. from the user’s location sharing.
radius_kmnumberSearch radius, 1–100, default 30. If nothing is found, it is doubled once (field radius_extended).
limitnumberNumber of results, 1–10, default 1.

* Required. In addition, either location or lat + lon is needed.

GET/company

Finds a specific business by its name or website – e.g. for the question “How do I contact company XY?”. Parts of the name are enough; typos and spellings such as “ae” instead of “ä” are tolerated.

ParameterTypeDescription
name *textCompany name (min. 3 characters), e.g. SPL Rechtsanwälte, or the website/domain, e.g. spl-rechtsanwaelte.de.
locationtextOptional: place or postcode to narrow down common names (50 km radius); then also returns distance_km.
countrytextOptional: ISO country code.
limitnumberNumber of results, 1–10, default 3.
curl -G "https://api.ainea.org/company" --data-urlencode "name=SPL Rechtsanwälte" --data-urlencode "location=Stuttgart"

{ "name": "SPL Rechtsanwälte", "location": "Stuttgart (DE-BW)", "count": 1,
  "businesses": [ { "id": "manuell-spl-rechtsanwaelte.de",
    "name": "SPL Rechtsanwälte Schanbacher Lay PartG mbB", "category": "Construction & energy lawyer (solar, heat pumps)",
    "distance_km": 0.5, "address": "Königstraße 43a, 70173 Stuttgart, DE",
    "phone": "+49 711 76977510", "email": "kanzlei@spl-rechtsanwaelte.de",
    "website": "https://spl-rechtsanwaelte.de/" } ] }

If nothing is found, the response contains a hint. The same limits as for /search apply.

GET/business/{id}

All stored details of a business whose id you received from /search – additionally coordinates (for map views), category and, where applicable, brand/chain.

curl "https://api.ainea.org/business/08f1f2a6c3b4e5d6..."

{ "id": "...", "name": "Elektro Muster GmbH", "category": "Electrician",
  "address": "Musterstraße 12, 93047 Regensburg, DE", "phone": "+49 941 123456",
  "email": "info@elektro-muster.de", "website": "https://elektro-muster.de",
  "subcategory": "electrician", "lat": 49.0151, "lon": 12.1016 }

GET/categories

List of all searchable activities with example terms. Does not count towards your quota – ideal for filling a drop-down.

{ "activities": [
    { "name": "Employment lawyer", "api_name": "Anwalt Arbeitsrecht", "examples": ["kuendigung", "abfindung", "fachanwalt", "employment", "lawyer", "law"] },
    { "name": "Roofer", "api_name": "Dachdecker", "examples": ["dach", "bedachung", "dachsanierung", "dachrinne", "zimmerei", "roofer"] },
    ...
  ] }

Responses & errors

All responses are JSON. Content problems come with HTTP 200 and a field error – so an AI agent can read the message directly and react. Always check for error first.

SituationHTTPResponse
Results found200businesses: list (may be empty)
Ambiguous place200error + candidates; search again with the value of location_query
Place not found200error
Activity not recognised200error + possible_activities
Invalid parameter422validation error
Limit reached429error + retry_after_s, header Retry-After

Example: ambiguous place

GET /search?activity=lawyer&location=Springfield

{ "error": "Location 'Springfield' is ambiguous. Please search again with a more specific location (e.g. a value from 'location_query').",
  "candidates": [
    { "name": "Springfield", "country": "US", "region": "US-MO", "type": "locality", "location_query": "Springfield, US-MO" },
    { "name": "Springfield", "country": "US", "region": "US-IL", "type": "locality", "location_query": "Springfield, US-IL" }
  ] }

Show the candidates for selection (or let your agent ask) and search again with location=Springfield, US-IL. Ambiguous responses do not count towards your quota.

Limits & fair use

The API is public and free. To keep it that way and to prevent anyone from harvesting the whole dataset, limits apply per IP address (per /64 network for IPv6). Only requests that return business data are counted.

PeriodRequests per IP
per minute3
per hour10
per day30

Every successful response contains the headers X-RateLimit-Limit and X-RateLimit-Remaining (hourly quota). When exceeded, you get HTTP 429 with Retry-After in seconds.

Platforms with many users: call the API directly from your users’ browsers (CORS is enabled) – then every visitor has their own quota. If your server bundles the requests, all users share your server IP’s limit; for this case we issue an API key on request (header X-API-Key) with a higher quota. Caching results for a few hours is explicitly welcome.

Not allowed: systematic harvesting of the dataset, building your own address lists and sending unsolicited advertising to the contacts found. The data is meant to show people the right business for a specific need.

Use with AI agents

Claude (MCP)

In Claude, go to Settings → Connectors → Add custom connector and enter https://api.ainea.org/mcp. Claude gets the tools search_businesses, find_company (search by company name), get_business and list_categories and uses them on its own when someone asks, for example: “I need a tenancy lawyer in Cologne.” Other MCP-capable agents (e.g. in your own frameworks) can connect via the same address.

ChatGPT (GPT actions)

When creating a custom GPT, go to Actions → Import from URL and enter https://api.ainea.org/openapi.json. Authentication: None. Recommended addition to the GPT instructions: “When the user looks for a tradesperson or service provider, call search_businesses. If the place is ambiguous, ask.”

Your own agent with tool calling

Any language model with function calling can use the REST API. A complete example with the Anthropic API is in the code section and in the GitHub repository.

Example: findMyLawyer – a lawyer search in 80 lines

The API works well as a data source for specialised directories. One example: a website where people find a law firm by practice area and place of residence. More ideas:

Legal

findMyLawyer

Choose a practice area (employment, family, tenancy, inheritance, criminal, traffic law, notary), enter a place, compare firms.

Emergency

Emergency finder

Locksmith, plumber or towing service via location sharing (lat / lon) – one tap, one phone number.

Moving

Moving checklist

Automatically suggest a GP, paediatrician, vet and pharmacy near the new address.

Building

Renovation planner

Show suitable businesses in the region for every trade (roof, windows, electrics, heating, solar).

How findMyLawyer works

The page is plain HTML + JavaScript (e.g. on GitHub Pages). Every visitor’s browser queries the API directly – so every visitor has their own quota and you need no server. The full code is in the folder examples/find-my-lawyer of the GitHub repository.

// findMyLawyer – core of the search (app.js)
const API = "https://api.ainea.org";
const PRACTICE_AREAS = ["Employment lawyer", "Family & divorce lawyer", "Tenancy lawyer", "Inheritance lawyer",
                        "Criminal defence lawyer", "Traffic lawyer", "Construction & energy lawyer", "Notary"];

async function searchLawFirms(practiceArea, place) {
  const url = new URL("/search", API);
  url.search = new URLSearchParams({ activity: practiceArea, location: place, limit: 10, radius_km: 30 });
  const response = await fetch(url);
  const data = await response.json();

  if (response.status === 429) throw new Error(data.error);            // rate limit – retry later
  if (data.candidates) return { choices: data.candidates };            // ambiguous location
  if (data.error) throw new Error(data.error);
  return { lawFirms: data.businesses, location: data.location };
}

// usage
const result = await searchLawFirms("Tenancy lawyer", "Cologne");
if (result.choices) showLocationChoice(result.choices.map(c => c.location_query));   // e.g. "Springfield, US-IL"
else showLawFirms(result.lawFirms);

Tip: for a platform with its own backend, the repository also contains a server variant (Python) with a cache that bundles requests and uses an API key.

Code examples

Search for up to five roofers in Regensburg – including handling of ambiguity and limits.

import requests

API = "https://api.ainea.org"

def search(activity, location, limit=5, radius_km=30):
    r = requests.get(f"{API}/search", timeout=15, params={
        "activity": activity, "location": location, "limit": limit, "radius_km": radius_km})
    data = r.json()
    if r.status_code == 429:                       # rate limit reached
        raise RuntimeError(f"{data['error']} (retry in {r.headers.get('Retry-After')} s)")
    if "candidates" in data:                       # ambiguous location
        raise ValueError("Please be more specific: " + ", ".join(c["location_query"] for c in data["candidates"]))
    if "error" in data:
        raise ValueError(data["error"])
    return data["businesses"]

for b in search("roofer", "Regensburg"):
    print(f'{b["name"]} – {b["distance_km"]} km – {b.get("phone", "-")} – {b.get("website", "")}')

More examples – Node.js, a Python backend with cache, the complete findMyLawyer page and the chatbot – in the GitHub repository schanbacher123/business-api.

Searchable activities

These 60 activities are recognised – in English, German, French, Italian, Spanish, Dutch and Polish, including many synonyms. /categories returns the current list.

  • Architect
  • Beauty salon
  • Building contractor
  • Car dealer
  • Car repair
  • Carpenter / joiner
  • Catering
  • Cleaning company
  • Computer repair
  • Construction & energy lawyer (solar, heat pumps)
  • Criminal defence lawyer
  • Dentist
  • Dermatologist
  • Driving school
  • Electrician
  • Employment lawyer
  • Estate agent
  • Family & divorce lawyer
  • Financial advisor
  • Flooring
  • Funeral home
  • General practitioner
  • Gym
  • Gynaecologist
  • Hairdresser / barber
  • Handyman / caretaker
  • Home care
  • House clearance
  • Inheritance lawyer
  • Insurance broker
  • Landscaping & gardening
  • Locksmith
  • Notary
  • Ophthalmologist
  • Orthopaedist
  • Paediatrician
  • Painter & decorator
  • Pest control
  • Pharmacy
  • Phone repair
  • Photographer
  • Physiotherapy
  • Plumbing & heating
  • Property management
  • Psychotherapist
  • Removals
  • Restaurant
  • Roofer
  • Senior care
  • Solar & photovoltaics
  • Tax advisor / accountant
  • Tenancy lawyer
  • Tiler
  • Towing service
  • Traffic lawyer
  • Tutoring
  • Tyre service
  • Veterinarian
  • Web design
  • Windows & doors

Frequently asked questions

What is the ainea Business API?

A free public interface (REST and MCP) that returns businesses matching an activity near a location – with name, address, phone, email and website. It contains more than 6 million businesses in 60 categories across 70 countries, mainly in Europe and North America.

How do I find a tradesperson near me via API?

Call GET https://api.ainea.org/search?activity=electrician&location=Manchester. Instead of a place name you can use a postcode or coordinates (lat, lon); with limit=10 you get up to ten results within the default radius of 30 km.

Can I search directly by company name?

Yes. GET https://api.ainea.org/company?name=SPL Rechtsanwälte returns the matching business with phone, email, address and website. Parts of the name, typos or the domain (e.g. firma.de) also work; the optional location parameter narrows down common names. AI agents use the tool find_company.

Is the API free and do I need an API key?

Usage is free and works without sign-up or key. Per IP address the limits are 3 requests per minute, 10 per hour and 30 per day. Platforms with their own server can request an API key with a higher quota.

Which categories and countries are covered?

60 activities – including electricians, plumbing & heating, roofers, painters, car repair, general practitioners, dentists, vets, tax advisors, notaries and lawyers for employment, family, tenancy, inheritance, criminal, traffic, construction and energy law – in 70 countries, strongest in the USA, Germany, the UK, France, Italy, Spain, the Netherlands, Canada, Switzerland and Austria.

How do I connect the API to ChatGPT or Claude?

In Claude, add the MCP address https://api.ainea.org/mcp under Settings → Connectors. In a custom GPT, import the schema https://api.ainea.org/openapi.json under Actions. Other language models use the REST API via tool calling.

In which languages can I search?

Activities are recognised in English, German, French, Italian, Spanish, Dutch and Polish (e.g. plumber, Klempner, plombier, fontanero, idraulico). Place names also work in other languages, e.g. Munich or Vienna.

Where does the data come from and how reliable is it?

Data source: public information and company websites. The data is merged automatically and provided without warranty; the ranking is neither a recommendation nor a quality rating.

Can I build my own platform, e.g. a lawyer directory?

Yes. The findMyLawyer example shows a lawyer search by practice area and location that runs entirely in the browser. Unsolicited advertising to the contacts found and systematic harvesting of the data are not allowed.

About the project

The Business API was created as a research project at the Steinbeis Transfer Centre Improved Decision Making (Allensbach, Germany) under the direction of Prof. Dr. Peter Schanbacher. Its goal is to give AI assistants and applications an open, transparent data basis for the question “Whom can I contact for my need near me?”. The data is prepared automatically from public information and company websites.

Data & legal

Data source: public information and company websites. The data is merged automatically.

No warranty: data may be outdated or incomplete. The ranking is based on publicly visible information (e.g. contact details, commercial register entry, chamber membership, founding year) and is not a quality rating of a business. Please point this out to your users.

Disclaimer: the API is provided free of charge and without warranty. Results are not a recommendation, not a quality rating and not advice; we are not party to any contracts with businesses. The terms of use & disclaimer (German, legally binding) apply.

For businesses: would you like your details corrected or removed? Write to us – we will take care of it promptly.