Free-APIs.github.io icon indicating copy to clipboard operation
Free-APIs.github.io copied to clipboard

Add community-contributed APIs with local data support

Open Robocular opened this issue 9 months ago • 0 comments

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

Robocular avatar Mar 05 '26 03:03 Robocular