Skip to main content
GET
Search targeting options

Request contract

  • Method and path: GET /apis/v1/ads/targeting/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/ads/targeting/search
  • connectionId: query; required
  • q: query; required
  • dimension: query; optional
  • geoType: query; optional
  • countryCode: query; optional
  • adAccountId: query; optional
  • locale: query; optional
  • limit: query; optional
  • Runtime facts: fe60122939c67dc98a3a6ac6b97bd5c326b526105150c8959304dd2160d4dd09
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

connectionId
string
required

The ads connection (adc_...) the request runs on: one of yours, from GET /apis/v1/ads/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^adc_[0-9A-Za-z]+$
q
string
required

Search query. For geo, the locality name only (no region/country suffix). For interestSuggestion, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a q starting with [ is read as JSON).

dimension
enum<string>
default:interest

What to search. Defaults to interest for backward compatibility with the deprecated /apis/v1/ads/interests alias. geo: resolves locations (scope further with geoType).

Available options:
geo,
interest,
interestSuggestion,
interestKeyword,
behavior,
hashtag,
income,
language,
workPosition,
workEmployer,
workIndustry,
industry,
jobFunction,
seniority,
companySize,
skill,
community,
conversationKeyword
geoType
enum<string>
default:city

Only used when dimension=geo. The kind of location to resolve. all searches every type in one relevance-ranked call. Defaults to city.

Available options:
all,
country,
country_group,
region,
city,
subcity,
neighborhood,
place,
zip,
metro_area,
geo_market
countryCode
string

ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.

Required string length: 2
adAccountId
string

TikTok only: the advertiser to search as, when the connection holds several. Each TikTok advertiser has its own targetable regions and catalogs.

locale
string

Meta only (ignored on other platforms). The language Meta matches q against and names results and path in, as language_TERRITORY (e.g. pl_PL, en_US).

Pattern: ^[a-z]{2,3}_[A-Z]{2}$
limit
integer
default:25

Maximum results to return.

Required range: 1 <= x <= 100

Response

Matching targeting options (normalized)

results
object[]