{"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 State 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 location identifier, state or province code, state or province name, reported latitude, and reported longitude to build region selectors, normalize location records, and browse location results.","descriptionTranslations":{"ar":"ابحث عن الولايات والمقاطعات عبر OpenAny REST لمساعدة المستخدم في اختيار منطقة لبحث الشركات أو النماذج الجغرافية. أرسل اسمًا أو بادئة، وقيّد البحث اختياريًا برموز البلدان، ثم استخدم المعرّفات والرموز الإقليمية والإحداثيات لتمييز المرشحين ومعلومات الصفحات لتصفح بقية النتائج.","ja":"OpenAny REST で州や省を検索し、企業調査や地理情報フォームの地域選択に利用できます。名称や接頭辞を指定し、任意の国コードで範囲を絞り、ID、地域コード、座標で候補を区別できます。ページ情報を使ってアプリ側で最初の応答以降も閲覧できます。","zh":"通过 OpenAny REST 搜索州和省，为公司调研或地理表单提供区域选择。提交名称或前缀，可用国家代码限定范围；利用返回的 ID、区域代码和坐标区分候选项，并根据分页信息继续浏览首个响应以外的结果。"},"effectContentHtml":"","executionMode":"sync","id":"21740802-0b70-41af-9995-f54826d7984d","includedContentHtml":"","inputs":[{"description":"JSON request body for Search states and provinces. See individual field descriptions for input requirements.","json_schema":{"additionalProperties":false,"description":"JSON request body for Search states and provinces. 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":"state or province name; prefixes DO work here ('cali' matched California)","example":"cali","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 State Search API","nameTranslations":{"ar":"API للبحث عن الولايات CompanyEnrich","ja":"CompanyEnrich 州・省検索 API","zh":"CompanyEnrich 州省搜索 API"},"overviewHtml":"\u003ch2\u003eCompanyEnrich State Search API\u003c/h2\u003e\n\u003cp\u003eSend a JSON object with optional query, countryCodes and page. The response contains items plus page, totalItems and totalPages; name prefixes are supported for this state/province search.\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 states and provinces\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 region selectors\u003c/strong\u003e: Offer state or province candidates within selected countries.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eNormalize location records\u003c/strong\u003e: Keep returned IDs and regional codes with user selections.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eBrowse location results\u003c/strong\u003e: Use page metadata to navigate the result set.\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\u003eLocation identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].code\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eState or province code\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eState or province 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.states.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;cali\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/21740802-0b70-41af-9995-f54826d7984d\"\u003ePublished CompanyEnrich State 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\u003eDoes the search support name prefixes?\u003c/h3\u003e\n\u003cp\u003eYes. The input description documents a prefix such as cali matching California.\u003c/p\u003e\n\u003ch3\u003eHow do I restrict results to a country?\u003c/h3\u003e\n\u003cp\u003ePass countryCodes as an array of ISO alpha-2 codes, such as US.\u003c/p\u003e\n\u003ch3\u003eIs query required?\u003c/h3\u003e\n\u003cp\u003eThe JSON body is required, while query, countryCodes and page are optional properties in its schema.\u003c/p\u003e\n\u003ch3\u003eHow do I retrieve another page?\u003c/h3\u003e\n\u003cp\u003eSet page to a positive 1-based page number and use totalPages to guide navigation.\u003c/p\u003e\n\u003ch3\u003eAre state codes globally unique?\u003c/h3\u003e\n\u003cp\u003eDo not use a regional code alone as a global identifier. Retain the selected country context and returned location ID.\u003c/p\u003e\n\u003ch3\u003eDoes this search for companies in those states?\u003c/h3\u003e\n\u003cp\u003eNo. It returns state and province records. Apply selected locations in a separate company-search operation.\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-cities-by-name\"\u003eCompanyEnrich City Search API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/companyenrich/search-countries-by-name\"\u003eCompanyEnrich Country Search API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/companyenrich/search-states-and-provinces","providerId":"treg","publicPath":"/v1/agent-apis/treg/call/companyenrich.geo.states.search","requestContentType":"application/json","revision":4,"samples":[{"http_status":200,"name":"Third-party reference · Testnet verified: business + billing","request":{"body":{"countryCodes":["US"],"query":"cali"},"headers":{},"path":{},"query":{}},"response_body":{"items":[{"code":"CA","id":4845,"latitude":36.77826,"longitude":-119.41793,"name":"California"}],"page":1,"totalItems":1,"totalPages":1}}],"seoDescription":"Search CompanyEnrich State via REST or MCP powered by Treg. Pay per call, no subscription. Get location identifier and state or province code in JSON.","updatedAt":"2026-12-03T02:36:59.501Z","usageInstructionsHtml":""}}