perchance.org/api/getGeneratorList?max=123 - limit to a maximum of 123 generators

Are they latest-first?

It doesn’t seem like this “max” has to do with how many generators are returned. But the number returned does scale with it. So… last-updated age, perhaps? Not sure what unit of time it would be though. Quite confused.

Could be that it’s the max, before it removes private generators? Which would kind of make it not be the “maximum” anything really. Not a very useful parameter as it would be if it would actually give X number of generators–for paging, etc.

(Speaking of which is there a way of specifying “start from X generator number and later” for paging to work well?)

I don’t know what the default “max” or whatever is for this api. Seems to fluctuate how many are returned, and it’s not always a round number.

  • @wthit56OP
    link
    English
    12 months ago

    Some APIs have status: “success”, others use success: true. Which is… a thing. 😂

    Might be a good idea to have both on all of them? Or pick on and make sure they all use it. Then people (meaning me) wouldn’t have to check for both or get confused about which is which.