{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":null,"catalogType":"api","categories":["lead-generation","enrichment"],"dataPlatform":"companyenrich","dataPlatformLogoUrl":"https://companyenrich.com/favicon-192.png","dataPlatformTranslations":{"ar":"companyenrich","ja":"companyenrich","zh":"companyenrich"},"dataProduct":"reference-data","description":"Search CompanyEnrich City via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Treg, pass parameters such as countryCodes, query, and retrieve structured data including city or location identifier, location name, reported latitude, reported longitude, and current page to build city selectors, disambiguate places, and navigate large result sets.","descriptionTranslations":{"ar":"ابحث عن أسماء المدن وبادئاتها عبر OpenAny REST لبناء خيارات مواقع في واجهة بحث الشركات أو النماذج الجغرافية. قيّد المرشحين برموز البلدان واستخدم المعرّفات والإحداثيات لتمييز الأماكن المتشابهة وتصفح النتائج بمعلومات الصفحات، مع حفظ السجل المختار بدل افتراض أن التطابق النصي يحدد مدينة فريدة.","ja":"OpenAny REST で都市名や接頭辞を検索し、企業調査画面や地理フォームの所在地候補を作成できます。国コードで絞り込み、ID と座標で同名の場所を区別し、ページ情報で結果を閲覧してください。テキスト一致が常に一つの都市を特定すると考えず、選択したソースレコードを保持します。","zh":"通过 OpenAny REST 按城市名称或前缀搜索，为公司调研界面或地理表单提供位置选项。用国家代码缩小候选范围，借助返回的 ID 和坐标区分同名地点，并根据分页信息浏览结果；保留选定的来源记录，不假设文字匹配一定只指向唯一城市。"},"effectContentHtml":"","executionMode":"sync","id":"9da37119-7779-402f-9b00-c2228ed33b4e","includedContentHtml":"","inputs":[{"description":"JSON request body for Search cities by name. See individual field descriptions for input requirements.","json_schema":{"additionalProperties":false,"description":"JSON request body for Search cities by name. See individual field descriptions for input requirements.","properties":{"countryCodes":{"description":"ISO alpha-2 codes to scope the search","example":["US"],"items":{"type":"string"},"type":"array"},"page":{"description":"1-based page number","minimum":1,"type":"integer"},"query":{"description":"city name; prefixes work ('san fran' matched three San Francisco entries)","example":"san fran","minLength":1,"type":"string"}},"required":[],"type":"object"},"location":"body","name":"body","nullable":false,"pointer":"","required":true,"type":"object"}],"logoUrl":"https://treg.to/favicon.svg","method":"POST","name":"CompanyEnrich City Search API","nameTranslations":{"ar":"API للبحث عن المدن CompanyEnrich","ja":"CompanyEnrich 都市検索 API","zh":"CompanyEnrich 城市搜索 API"},"overviewHtml":"\u003ch2\u003eCompanyEnrich City Search API\u003c/h2\u003e\n\u003cp\u003eProvide optional query, countryCodes and page in a required JSON object. City-name prefixes are supported, and items contain location identifiers, names and coordinates.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired JSON body object; optional query, countryCodes (ISO alpha-2 array) and page (1-based).\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003etreg · Search cities by name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eBuild city selectors\u003c/strong\u003e: Suggest candidate locations from partial names.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eDisambiguate places\u003c/strong\u003e: Retain country context and source IDs for similar names.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eNavigate large result sets\u003c/strong\u003e: Use page totals for the next-page control.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCity or location identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eLocation name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].latitude\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported latitude\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].longitude\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported longitude\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003epage\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCurrent page\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalItems\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal result count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalPages\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal page count\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request POST \\\n  https://api.openany.si/v1/agent-apis/treg/call/companyenrich.geo.cities.search \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#34;Content-Type: application/json\u0026#34; \\\n  --data-raw \u0026#39;{\u0026#34;countryCodes\u0026#34;:[\u0026#34;US\u0026#34;],\u0026#34;query\u0026#34;:\u0026#34;san fran\u0026#34;}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is an abbreviated historical third-party reference. The request below is a calling template; field values and available entries can differ in current responses.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/9da37119-7779-402f-9b00-c2228ed33b4e\"\u003ePublished CompanyEnrich City Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eCan I use a city-name prefix?\u003c/h3\u003e\n\u003cp\u003eYes. The contract documents prefix matching, including san fran as an example.\u003c/p\u003e\n\u003ch3\u003eHow do I restrict results to a country?\u003c/h3\u003e\n\u003cp\u003eProvide countryCodes as an array of ISO alpha-2 codes, such as US.\u003c/p\u003e\n\u003ch3\u003eCan a query match several location records?\u003c/h3\u003e\n\u003cp\u003eYes. Compare names, coordinates and your country context before choosing a record.\u003c/p\u003e\n\u003ch3\u003eAre body properties required?\u003c/h3\u003e\n\u003cp\u003eThe body object is required, while its query, countryCodes and page properties are optional.\u003c/p\u003e\n\u003ch3\u003eHow do I paginate?\u003c/h3\u003e\n\u003cp\u003eUse a positive 1-based page number and read totalPages and totalItems.\u003c/p\u003e\n\u003ch3\u003eDoes this perform address geocoding?\u003c/h3\u003e\n\u003cp\u003eNo. It searches location records by city name; it does not expose a street-address input.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/companyenrich/search-states-and-provinces\"\u003eCompanyEnrich State Search API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/companyenrich/get-a-country-by-iso-code\"\u003eCompanyEnrich Country Lookup API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/companyenrich/search-cities-by-name","providerId":"treg","publicPath":"/v1/agent-apis/treg/call/companyenrich.geo.cities.search","requestContentType":"application/json","revision":4,"samples":[{"http_status":200,"name":"Third-party reference · Testnet verified: business + billing","request":{"body":{"countryCodes":["US"],"query":"san fran"},"headers":{},"path":{},"query":{}},"response_body":{"items":[{"id":130518,"latitude":37.77823,"longitude":-122.4425,"name":"City and County of San Francisco"},{"id":131186,"latitude":37.77493,"longitude":-122.41942,"name":"San Francisco"},{"id":131281,"latitude":37.65466,"longitude":-122.40775,"name":"South San Francisco"}],"page":1,"totalItems":3,"totalPages":1}}],"seoDescription":"Search CompanyEnrich City via REST or MCP powered by Treg. Pay per call, no subscription. Ready for developers and AI agents with one API key.","updatedAt":"2026-12-03T02:37:01.741Z","usageInstructionsHtml":""}}