MediaMath Platform API
- Download Information for a Site List
Campaigns API (xx.xx.xx)
Number of elements in the collection to retrieve
Index of the first element in the collection to retrieve
The field to sort by. You can use any field name in ascending or descending order. For ascending order, use the field name directly, e.g., id. For descending order, prefix the field name with a hyphen (-), e.g., -id.
Query search for filtering. This parameter can be used to filter results based on various fields. Supported operators:
==- numeric equality or case-sensitive string identity,==(1,2,3)- IN query (only works for integers),!=- numeric inequality or case-sensitive string non-identity,=:- case-insensitive match, allows substring using * wildcards,<- less than,<=- less than or equal to,>- greater than,>=- greater than or equal to. Examples:q=name=:{search}*to find all results with names starting with {search}.q=status==trueto find all active entities.q=id>=1000to find all entities with id greater than or equal to 1000.q=id==(1,2,3)to find specific entities by ID.q=created_on>1999-02-02orq=created_on>1999-02-02T00:00:00Zto find entities created later than date.q=id>5&status==trueto find all active entities with id greater than 5.
- Live Serverhttps://api.mediamath.com/api/v3.0/site_lists
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/site_lists?page_limit=100&page_offset=0&sort_by=id%2C+-id%2C+name%2C+-name&q=string&full=*' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/site_lists/{site_list_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/site_lists/{site_list_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": { "id": 126, "version": 2, "status": true, "organization_id": 16, "name": "string", "restriction": "INCLUDE", "filename": "test_site_list.csv", "content_updated_on": "2019-08-24T14:15:22Z", "sites_count": 100, "sites_count_domain": 1, "sites_count_app": 2, "sites_count_primary_seller_id": 3, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/site_lists/upload
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.mediamath.com/api/v3.0/site_lists/upload \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=string \
-F organization_id=string \
-F 'name=Test List' \
-F restriction=INCLUDE \
-F status=true{ "data": { "id": 126, "version": 2, "status": true, "organization_id": 16, "name": "string", "restriction": "INCLUDE", "filename": "test_site_list.csv", "content_updated_on": "2019-08-24T14:15:22Z", "sites_count": 100, "sites_count_domain": 1, "sites_count_app": 2, "sites_count_primary_seller_id": 3, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/upload
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/upload' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=string \
-F organization_id=string \
-F 'name=Test List' \
-F restriction=INCLUDE \
-F status=true \
-F version=0{ "data": { "id": 126, "version": 2, "status": true, "organization_id": 16, "name": "string", "restriction": "INCLUDE", "filename": "test_site_list.csv", "content_updated_on": "2019-08-24T14:15:22Z", "sites_count": 100, "sites_count_domain": 1, "sites_count_app": 2, "sites_count_primary_seller_id": 3, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }, "meta": { "status": "success" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/download.csv
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/download.csv?target_type=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'No contentNumber of elements in the collection to retrieve
Index of the first element in the collection to retrieve
The field to sort by. You can use any field name in ascending or descending order. For ascending order, use the field name directly, e.g., id. For descending order, prefix the field name with a hyphen (-), e.g., -id.
Query search for filtering. This parameter can be used to filter results based on various fields. Supported operators:
==- numeric equality or case-sensitive string identity,==(1,2,3)- IN query (only works for integers),!=- numeric inequality or case-sensitive string non-identity,=:- case-insensitive match, allows substring using * wildcards,<- less than,<=- less than or equal to,>- greater than,>=- greater than or equal to. Examples:q=name=:{search}*to find all results with names starting with {search}.q=status==trueto find all active entities.q=id>=1000to find all entities with id greater than or equal to 1000.q=id==(1,2,3)to find specific entities by ID.q=created_on>1999-02-02orq=created_on>1999-02-02T00:00:00Zto find entities created later than date.q=id>5&status==trueto find all active entities with id greater than 5.
- Live Serverhttps://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/assignments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/site_lists/{site_list_id}/assignments?page_limit=100&page_offset=0&sort_by=id%2C+-id%2C+name%2C+-name&q=string&full=*' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }