Description Usage Arguments Examples
The goal of wtm_get
is to provide access to the public data API of Who Targets Me.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
endpoint |
the API endpoint you want to retrieve. currently supports: |
country |
which country to retrieve data from (ISO2). Examples: |
party |
which party to retrieve data from. Examples: |
limit |
will return only the number of results you specify |
skip |
will skip the specified number of results |
selects |
allows to pick which fields to include in the result, chr or vector of chrs |
sort_by |
will sort based on the variable you provide (chr) |
sort_dir |
sort direction ( |
values_in_var |
find all records where the property does ( |
values_nin_var |
find all records where the property does not ( |
lt |
find all records where the value is less ( |
lte |
find all records where the value is less and equal ( |
gt |
find all records where the value is more ( |
gte |
find all records where the value is more and equal ( |
ne |
find all records that do not equal the given property value. Input is a list: |
or |
find all records that match any of the given criteria. Specify the params as chr (vector) that should be combined with an |
... |
additional arguments you can pass to test for equality. Example = |
raw |
whether to return the raw |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # retrieve all advertiser targeting methods in the use
# that have a greater or equal value of `bct = 1`.
wtm_get(endpoint = "candidates-targeting-methods",
country = "US",
gte = list(bct = 1))
# retrieve all advertiser targeting methods in the use
# that have a greater or equal value of `bct = 1` OR
# `custom_audiences_lookalike = 20`.
wtm_get(endpoint = "candidates-targeting-methods",
country = "US",
gte = list(bct = 1),
value_in_var = list(custom_audiences_lookalike = 20),
or = c("gte", "value_in_var"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.