Free-APIs.github.io
Free-APIs.github.io copied to clipboard
Add community-contributed APIs with local data support
Summary
- Adds a
src/data/community-apis.jsonfile that allows contributors to add APIs via pull requests, without depending on the externalapi.publicapis.orgservice - 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:
- Supplements the external API with community-contributed entries
- Provides a clear path for future contributors to add APIs via PR (just edit the JSON file)
- Uses the same data format (
API,Description,Auth,HTTPS,Cors,Link,Category) so entries render identically - 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