The Limit property is just a number, but it is different for different API endpoints. I’d like to have a list of the different values so i can easily stay within the max for each endpoint. Are the values documented somewhere? From the official js-client docs site, not even a given endpoint documents its maximum.

    • blawsybogsyOP
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      hm, yes but they’re rate limits, not the maximum values that can be passed to the limit param. they must be different because my rate limits are post: 6, comment: 6, and that’s definitely not the max value for limit for fetching those items.

  • Cr4yfish@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 months ago

    I don’t think they’re documented anywhere. I resorted to just trying out the performance limits.

    • For posts I recommend going with 10 per page and loading the rest on demand.
    • For Comments try to only load a couple per request and then do a bunch of chained requests
  • blawsybogsyOP
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    actually it would be very helpful to know the maximum value for any of the ‘number’ parameters in the API.

    • blawsybogsyOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      11 months ago

      max comments appears to be 50? “fetch” (search?) limit is 50.