handle the api url based on a given type

get_url(
  type,
  n = NULL,
  cursor = NULL,
  query_1 = NULL,
  query_2 = "",
  max = 0,
  min = 0
)