MediaMath Targeting API

Targeting

Business capability
Digital Marketing Management BC-400.60

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /target List targets via the legacy endpoint · (Legacy) List Targets #
Ask an LLM
“Is there an older singular /target endpoint for listing targets in MediaMath?”
“Can I still page through targets using the legacy target list call?”
Tell an agent
List targets using the legacy /target endpoint.
Search targets matching {q} on the legacy /target list.
POST /target Create a target via the legacy endpoint · (Legacy) Create a Target #
Ask an LLM
“Can I create a new target through the old singular /target path?”
“What fields does the legacy create-target call need besides a name?”
Tell an agent
Create a target named {name} using the legacy /target endpoint.
Create a legacy-path target {name} under parent {parent_id}.
GET /target/{target_id} Get a target via the legacy endpoint · (Legacy) Get a Target #
Ask an LLM
“How can I fetch one target by ID from the legacy /target path?”
“Does the legacy single-target lookup still return a target's details?”
Tell an agent
Get target {target_id} from the legacy /target endpoint.
Show legacy-path details for target {target_id}.
POST /target/{target_id} Update a target via the legacy POST endpoint · (Legacy) Update a Target #
Ask an LLM
“Is there a POST-based legacy call to update a target on the singular /target path?”
“Do I need to pass the version when updating a target through the legacy POST?”
Tell an agent
Update target {target_id} with a POST on the legacy /target path, renaming it to {name}.
Using the legacy POST update, change target {target_id} bidder frequency to {bidder_frequency}.
DELETE /target/{target_id} Delete a target via the legacy endpoint · (Legacy) Delete a Target #
Ask an LLM
“Can I remove a target through the old singular /target delete call?”
“Is deleting a target on the legacy path permanent?”
Tell an agent destructive · confirm first
Delete target {target_id} using the legacy /target endpoint.
Remove target {target_id} through the legacy delete call.
PUT /target/{target_id} Replace a target via the legacy PUT endpoint · (Legacy) Update a Target #
Ask an LLM
“Can I update a target with an HTTP PUT on the legacy /target path?”
“Which target fields can the legacy PUT update change, like name or dimension code?”
Tell an agent
Update target {target_id} with a PUT on the legacy /target path, renaming it to {name}.
Use the legacy PUT call to set target {target_id} visibility to {visible}.
GET /targets List targets · List targets #
Ask an LLM
“Which targets are available in my MediaMath account?”
“Can I sort and page through the current targets list?”
Tell an agent
List all targets.
List targets matching {q}, sorted by {sort_by}.
POST /targets Create a target · Create a Target #
Ask an LLM
“How do I add a new target value to the current targets collection?”
“What is required to create a target with a dimension code and IP range?”
Tell an agent
Create a target named {name}.
Create target {name} with dimension code {dimension_code} and IP range {target_inet}.
GET /targets/{target_id} Get a target · Get a Target #
Ask an LLM
“What are the details of a single target on the current targets endpoint?”
“Can I look up one target's parent and dimension by its ID?”
Tell an agent
Get target {target_id}.
Show me the name and dimension of target {target_id}.
POST /targets/{target_id} Update a target · Update a Target #
Ask an LLM
“Can I rename an existing target or change its visibility?”
“What does updating a target on the current /targets endpoint require?”
Tell an agent
Rename target {target_id} to {name}.
Set the parent of target {target_id} to {parent_id}.
DELETE /targets/{target_id} Delete a target · Delete a Target #
Ask an LLM
“How do I delete a target I no longer need?”
“What happens when I delete a target from the current targets collection?”
Tell an agent destructive · confirm first
Delete target {target_id}.
Permanently remove target {target_id} from my targets.
GET /target-path List target paths · List Target paths #
Ask an LLM
“Where can I see the full hierarchy paths of targets?”
“Can I search target paths by name?”
Tell an agent
List target paths.
Find target paths matching {q}.
POST /targeting Add and view targeting for a strategy · Add and View Targeting #
Ask an LLM
“How do I attach targeting to a strategy and see what it now targets?”
“Can I set a strategy's targeting and get the result back in one call?”
Tell an agent
Add targeting {targeting} to strategy {strategy_id}.
Show the targeting for strategy {strategy_id}.
POST /contextual_segments/cpm_estimate Estimate CPM for contextual segments · Contextual Segments CPM estimates #
Ask an LLM
“What CPM should I expect for a set of contextual segments?”
“Can I estimate contextual segment cost with some segments excluded?”
Tell an agent
Estimate the CPM in {currency_code} for contextual segments {include}.
Estimate contextual CPM in {currency_code} including {include} and excluding {exclude}.
GET /targeting_segments/frequently_used Get an advertiser's most used contextual segments · Get Frequently Used Contextual Segments #
Ask an LLM
“Which contextual segments does this advertiser use most often?”
“Can I get just the top few frequently used contextual segments?”
Tell an agent
Show the most frequently used contextual segments for advertiser {advertiser_id}.
Get the top {top} contextual segments used by advertiser {advertiser_id}.
GET /audience_segments/frequently_used Get most used audience segments · Frequently Used Audience Segments #
Ask an LLM
“Which audience segments are used most for an advertiser or campaign?”
“Can I see the top audience segments a specific campaign relies on?”
Tell an agent
Show the most frequently used audience segments for campaign {campaign_id}.
Get the top {top} audience segments for advertiser {advertiser_id}.
POST /audience_segments/cpm_estimate Estimate CPM for audience segments · Audience Segments CPM Estimate #
Ask an LLM
“What would a set of audience segments cost per thousand impressions?”
“Can I get an audience segment CPM estimate in a specific currency?”
Tell an agent
Estimate the CPM in {currency_code} for audience segments {include}.
Estimate audience CPM in {currency_code} including {include} but excluding {exclude}.
GET /technology_target_values List technology target values · List Technology Target Values #
Ask an LLM
“Which technology targeting values exist for a dimension like browser or OS?”
“Can I search technology target values by name or full path?”
Tell an agent
List technology target values for dimension {dimension_code}.
Find technology target values named {name} in dimension {dimension_code}.
GET /path_targeting_segments List contextual segments · List Contextual Segments #
Ask an LLM
“What contextual segments can I target?”
“Can I see contextual segment prices in my currency?”
Tell an agent
List contextual segments.
List contextual segments matching {q} with prices in {currency_code}.
GET /path_audience_segments Search audience segments by path · List Path Audience Segments #
Ask an LLM
“How do I search the audience segment tree for a segment by name?”
“Can I limit audience segment results to brain-enabled ones for an advertiser?”
Tell an agent
Search path audience segments for {q}.
Find audience segments matching {q} under parent {parent_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mediamath:mediamath-targeting-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mediamath-targeting-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaigns Targeting API
  description: 'MediaMath Campaign Management API


    Postman Collection'
  version: 3.0.1807
  contact:
    url: https://support.infillion.com/
servers:
- url: https://api.mediamath.com/api/v3.0
  description: Live Server
security:
- Auth0:
  - offline_access
  - manage:services
tags:


# --- truncated at 32 KB (52 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mediamath/refs/heads/main/openapi/mediamath-targeting-api-openapi.yml