Skip to content

Add community-contributed APIs with local data support#15

Open
Robocular wants to merge 1 commit intoFree-APIs:mainfrom
Robocular:add-frostbyte-apis
Open

Add community-contributed APIs with local data support#15
Robocular wants to merge 1 commit intoFree-APIs:mainfrom
Robocular:add-frostbyte-apis

Conversation

@Robocular
Copy link

Summary

  • Adds a src/data/community-apis.json file that allows contributors to add APIs via pull requests, without depending on the external api.publicapis.org service
  • Merges community entries with the API response in Browse, Category, and Categories pages using deduplication by API name
  • Adds 4 initial free-tier APIs:
API Category Description
IP Geolocation API Geocoding Returns country, city, ISP, coordinates for any IP
Frostbyte Crypto Price API Cryptocurrency Real-time prices for 150+ cryptocurrencies
Frostbyte Screenshot API Development Capture website screenshots programmatically
Frostbyte Web Scraping API Development Extract data from any webpage with CSS selectors

All four APIs:

  • Have free tiers (200 free credits)
  • Support HTTPS
  • Support CORS
  • Use API key authentication

Why this approach?

Since api.publicapis.org has had availability issues (#4), this adds a local data layer that:

  1. Supplements the external API with community-contributed entries
  2. Provides a clear path for future contributors to add APIs via PR (just edit the JSON file)
  3. Uses the same data format (API, Description, Auth, HTTPS, Cors, Link, Category) so entries render identically
  4. Deduplicates by API name, so there are no conflicts if an entry exists in both sources

Changes

  • New file: src/data/community-apis.json - local API entries
  • Modified: src/pages/Browse/index.js - merge community APIs into browse list
  • Modified: src/pages/Category/index.js - merge community APIs into category view
  • Modified: src/pages/Categories/index.js - include community API categories in category list

Adds a community-apis.json data file and merges its entries with the
external API response, allowing contributors to add APIs via pull
requests without depending on the external api.publicapis.org service.

Initial entries: IP Geolocation API, Crypto Price API, Screenshot API,
and Web Scraping API (all free-tier, HTTPS, CORS-enabled).

Co-Authored-By: Clawdia <clawdia@vps>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant