{
  "_id": "6ab253c53d719c1f8408bda0",
  "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-09-22 10:05:39 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/ef1d15a2837bf6e0e265424d254aaaa894a9f5e9e7225daf0be1422b47170d71",
  "_filesize": 633203,
  "_sha256": "ef1d15a2837bf6e0e265424d254aaaa894a9f5e9e7225daf0be1422b47170d71",
  "_expires": "2026-12-31T10:09:07.000Z",
  "_created": "2026-09-22T10:05:39.000Z",
  "_published": "2026-09-22T10:09:09.563Z",
  "_jobs": [
    {
      "job": 106701398444,
      "time": 149,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10689176465"
    },
    {
      "job": 106701398332,
      "time": 155,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10688711798"
    },
    {
      "job": 106701398437,
      "time": 104,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10688931614"
    },
    {
      "job": 106701398571,
      "time": 126,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10688187327"
    },
    {
      "job": 106700298533,
      "time": 213,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10689250879"
    },
    {
      "job": 106701398370,
      "time": 157,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10688322290"
    },
    {
      "job": 106701398431,
      "time": 87,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10688412109"
    },
    {
      "job": 106701398356,
      "time": 80,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10688891447"
    },
    {
      "job": 106701398360,
      "time": 106,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10688192299"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955",
  "_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": 1170,
    "description": "Welcome to the World Bank Open Source Software Repository. Content does not necessarily represent official World Bank positions, policies and recommendations."
  },
  "_downloads": {
    "count": 223,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rsocialwatcher"
  },
  "_devurl": "https://github.com/worldbank/rsocialwatcher",
  "_pkgdown": "https://worldbank.github.io/rsocialwatcher/",
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rsocialwatcher.html",
    "LICENSE"
  ],
  "_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",
    "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-09-22T10:08:02.000Z",
      "distro": "resolute",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/7a52300825539b35af585ffca04ca2d88856bc0029bac4e24939b8dc31d10c36",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-09-22T10:08:11.000Z",
      "distro": "resolute",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/4fc93fce7135338bfdbea8e48d24ff244c0ba7d00b59408cdd66c67f7a7ac9a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-22T10:07:35.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/8cb835d24f8dedc31b16b3ddd9caeb4fda5ba47e5b5c5152af50735e38b4e66d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-22T10:07:57.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/8c3696eda4d3eb4b8b2696aa400e080109364f1de21dc416739f84983a6bfea5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-09-22T10:08:35.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/dd6fcf7b811d954f466c7603e416cfcaebd59d8c2ecb13e9922e285389ca8e95",
      "status": "success",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-22T10:06:58.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/956e9640471873619399cfac2ad32c1ae400531aa83b01273775ad4e38792bbf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-22T10:06:49.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/4be6c245b2e707350887172c959ec3aeaa57867bc79e3e5ce430c3b3d1539897",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-22T10:07:13.000Z",
      "commit": "d9818ed6b1153aa078eafaf3ef533bf63b7a5e8d",
      "fileid": "https://r2.ropensci.org/c52fe0c67ca3df2a7180b2887394b6de4627436f6e8b0de144a62aa920271995",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/worldbank/actions/runs/35713722955"
    }
  ]
}