davemachado / public-api

Public API for the public-apis Github project

Home Page:https://api.publicapis.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Count key to category endpoint

matheusfelipeog opened this issue · comments

Hi @davemachado ;)

I'm a maintainer of the public-apis project and I was thinking of showing the number of categories at the top of README.md in the same way we show the number of APIs:

image

But only the category endpoint doesn't have the count key in its return, I think this might be a nice addition.

Example:

{
    "count": 51,
    "categories": [
        "Animals",
        "Anime",
        ...
        "Video",
        "Weather"
    ]
}

Hey @matheusfelipeog , thanks for bringing this up!

This definitely sounds like a nice addition. I've added this to my backlog for the week and should get to it over the next few days :)

Hey @matheusfelipeog , thanks for bringing this up!

This definitely sounds like a nice addition. I've added this to my backlog for the week and should get to it over the next few days :)

Perfect 😄

@matheusfelipeog b90cc8e is now deployed, so you should be good to go!

 ~ $ curl https://api.publicapis.org/categories | jq | head
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   785  100   785    0     0  11056      0 --:--:-- --:--:-- --:--:-- 11056
{
  "count": 51,
  "categories": [
    "Animals",
    "Anime",
    "Anti-Malware",
    "Art & Design",
    "Authentication & Authorization",
    "Blockchain",
    "Books",
    ```

@matheusfelipeog b90cc8e is now deployed, so you should be good to go!

Very good, great work @davemachado ❤️

A big THANK YOU for implementing this. Now everyone can see the number of categories easily:

image

ezoic increase your site revenue