{
  "_id": "6a4a1ad10b5cb829d37082c9",
  "Package": "rsocialwatcher",
  "Title": "'Facebook Marketing API' Social Watcher",
  "Version": "0.1.1",
  "Authors@R": "person(\"Robert\", \"Marty\", , \"rmarty@worldbank.org\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3164-3813\"))",
  "Description": "Facilitates querying data from the ‘Facebook Marketing\nAPI', particularly for social science research\n<https://developers.facebook.com/docs/marketing-apis/>. Data\nfrom the 'Facebook Marketing API' has been used for a variety\nof social science applications, such as for poverty estimation\n(Marty and Duhaut (2024) <doi:10.1038/s41598-023-49564-6>),\ndisease surveillance (Araujo et al. (2017)\n<doi:10.48550/arXiv.1705.04045>), and measuring migration\n(Alexander, Polimis, and Zagheni (2020)\n<doi:10.1007/s11113-020-09599-3>). The package facilitates\nquerying the number of Facebook daily/monthly active users for\nmultiple location types (e.g., from around a specific\ncoordinate to an administrative region) and for a number of\nattribute types (e.g., interests, behaviors, education level,\netc). The package supports making complex queries within one\nAPI call and making multiple API calls across different\nlocations and/or parameters.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.1",
  "URL": "https://worldbank.github.io/rsocialwatcher/",
  "BugReports": "https://github.com/worldbank/rsocialwatcher/issues",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://worldbank.r-universe.dev",
  "Date/Publication": "2024-05-06 15:44:23 UTC",
  "RemoteUrl": "https://github.com/worldbank/rsocialwatcher",
  "RemoteRef": "HEAD",
  "RemoteSha": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-05 08:47:05 UTC",
    "User": "root"
  },
  "Author": "Robert Marty [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3164-3813>)",
  "Maintainer": "Robert Marty <rmarty@worldbank.org>",
  "_user": "worldbank",
  "_type": "src",
  "_file": "rsocialwatcher_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/fd453f2a0248cfafaedb7b9ba351376ed07995c2a1b43d5f0fbf622cd7d3eaa2",
  "_filesize": 635709,
  "_sha256": "fd453f2a0248cfafaedb7b9ba351376ed07995c2a1b43d5f0fbf622cd7d3eaa2",
  "_expires": "2026-10-13T08:50:23.000Z",
  "_created": "2026-07-05T08:47:05.000Z",
  "_published": "2026-07-05T08:50:25.291Z",
  "_jobs": [
    {
      "job": 85208127117,
      "time": 164,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090132563"
    },
    {
      "job": 85208127139,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090132258"
    },
    {
      "job": 85208127108,
      "time": 90,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090123912"
    },
    {
      "job": 85208127118,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090123651"
    },
    {
      "job": 85207907873,
      "time": 200,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090112962"
    },
    {
      "job": 85208127097,
      "time": 161,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8090132174"
    },
    {
      "job": 85208127114,
      "time": 102,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8090125680"
    },
    {
      "job": 85208127138,
      "time": 92,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8090124151"
    },
    {
      "job": 85208127109,
      "time": 87,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8090123770"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384",
  "_status": "success",
  "_upstream": "https://github.com/worldbank/rsocialwatcher",
  "_commit": {
    "id": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
    "author": "Rob Marty <robmarty3@gmail.com>",
    "committer": "Rob Marty <robmarty3@gmail.com>",
    "message": "readme\n",
    "time": 1715010263
  },
  "_maintainer": {
    "name": "Robert Marty",
    "email": "rmarty@worldbank.org",
    "orcid": "0000-0002-3164-3813"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "httr",
      "role": "Imports"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "splitstackshape",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "worldbank",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 10,
  "_contributors": [
    {
      "user": "ramarty",
      "count": 102,
      "uuid": 11593422
    }
  ],
  "_userbio": {
    "uuid": 6454132,
    "type": "organization",
    "name": "World Bank",
    "followers": 1106,
    "description": "Welcome to the World Bank Open Source Software Repository. Content does not necessarily represent official World Bank positions, policies and recommendations."
  },
  "_downloads": {
    "count": 225,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rsocialwatcher"
  },
  "_devurl": "https://github.com/worldbank/rsocialwatcher",
  "_pkgdown": "https://worldbank.github.io/rsocialwatcher/",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rsocialwatcher.html",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/worldbank/rsocialwatcher",
  "_realowner": "worldbank",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-05-02"
    },
    {
      "version": "0.1.1",
      "date": "2024-05-06"
    }
  ],
  "_exports": [
    "get_fb_parameter_ids",
    "get_fb_suggested_radius",
    "get_location_coords",
    "map_param",
    "map_param_vec",
    "query_fb_marketing_api"
  ],
  "_help": [
    {
      "page": "get_fb_parameter_ids",
      "title": "Get Facebook Parameter IDs",
      "topics": [
        "get_fb_parameter_ids"
      ]
    },
    {
      "page": "get_fb_suggested_radius",
      "title": "Get Suggested Radius",
      "topics": [
        "get_fb_suggested_radius"
      ]
    },
    {
      "page": "get_location_coords",
      "title": "Get Coordinates/Geometries for Valid Location Keys",
      "topics": [
        "get_location_coords"
      ]
    },
    {
      "page": "map_param",
      "title": "Map Parameters within 'query_fb_marketing_api()' Groups input into a 'map_param' object. When a 'map_param' object is entered as a parameter in 'query_fb_marketing_api()', 'query_fb_marketing_api()' makes a separate API query for each item within 'map_param'. A 'map_param' object is structured as a list, where the 'map_param' class triggers the 'query_fb_marketing_api' function to make a separate API query for each item in the list.",
      "topics": [
        "map_param"
      ]
    },
    {
      "page": "map_param_vec",
      "title": "Map Parameters over Vector Converts a vector into a 'map_param' object. When a 'map_param' object is entered as a parameter in 'query_fb_marketing_api()', 'query_fb_marketing_api()' makes a separate API query for each item within 'map_param' (ie, for each item in the original vector entered into 'map_param'). A 'map_param' object is structured as a list, where the 'map_param' class triggers the 'query_fb_marketing_api' function to make a separate API query for each item in the list.",
      "topics": [
        "map_param_vec"
      ]
    },
    {
      "page": "query_fb_marketing_api",
      "title": "Query 'Facebook Marketing' API",
      "topics": [
        "query_fb_marketing_api"
      ]
    }
  ],
  "_pkglogo": "https://github.com/worldbank/rsocialwatcher/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/worldbank/rsocialwatcher/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "curl",
    "data.table",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "httr",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "mime",
    "openssl",
    "pillar",
    "pkgconfig",
    "proxy",
    "purrr",
    "R6",
    "Rcpp",
    "rlang",
    "s2",
    "sf",
    "splitstackshape",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyselect",
    "timechange",
    "units",
    "utf8",
    "vctrs",
    "withr",
    "wk"
  ],
  "_score": 3.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "rsocialwatcher",
  "_universes": [
    "worldbank"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-05T08:49:37.000Z",
      "distro": "resolute",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/dd51ebd190d79a7113d7dedb8f73d3c4b3d23a8cdea6e30aad3ecc3e4b5340a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-05T08:49:36.000Z",
      "distro": "resolute",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/8becf7c604b89988ee3c7ede5bc744849b56b1dea8235bb22c4fd092c74c186b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-05T08:48:35.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/6633e55d44c81cf2ac47ecc15c4cd4d642e22c0beba68455f7b93d30b2cc7a4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-05T08:48:34.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/ef17074a55228c316d21bd53045eafd3d6416e1b5b68b649f58437c4793d1114",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-07-05T08:50:04.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/259d85049efe1b8fe6f165ea338d91c10ecd4add70fd42c3b640236c8ab424ce",
      "status": "success",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-05T08:48:36.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/50d9ad0f287fd3a20ba3bbb414bd0b80934b6febc7afa3370ad5600b4bd4c380",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-05T08:48:23.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/189490ad87f7d8977526a166b2a8a3b876761dfd80eba867067efcd9d6fe621f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-05T08:48:21.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/5265880fa7251196b22abd6ea33ebf25eae9767023f91d66381f5cc7b60d36fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/28735163384"
    }
  ]
}