Skip to content

The ultimate collection of APIs for building autonomous AI agents — 2,036 production-ready APIs across Agents, AI Models, and MCP Servers. Stop wasting weeks building infrastructure. Plug these in and ship your agent today.

Add daily Apify sync workflow

cporter20234b608a2b3f7
diff --git a/.github/workflows/daily-sync.yml b/.github/workflows/daily-sync.yml
new file mode 100644
index 0000000..9cd57e1
--- /dev/null
+++ b/.github/workflows/daily-sync.yml
@@ -0,0 +1,50 @@
+name: Daily Apify Sync
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '17 10 * * *'
+ timezone: 'America/New_York'
+
+permissions:
+ contents: write
+
+concurrency:
+ group: daily-apify-sync
+ cancel-in-progress: false
+
+jobs:
+ sync:
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+ with:
+ ref: ${{ github.ref }}
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v6
+ with:
+ node-version: 24
+
+ - name: Fetch latest Apify catalog
+ run: node settings/fetch_apify_actors.js
+
+ - name: Regenerate focused repo files
+ run: node settings/generate_readme_clean.js
+
+ - name: Commit and push changes
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git add -A
+
+ if git diff --cached --quiet; then
+ echo "No tracked changes detected."
+ exit 0
+ fi
+
+ git commit -m "chore: sync daily Apify catalog"
+ git push
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1bf48da
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+apify_actors.json
diff --git a/README.md b/README.md
index 34b6293..9c49671 100644
--- a/README.md
+++ b/README.md
@@ -151,5 +151,6 @@ Anything outside those three categories has been removed from the tracked reposi
## Maintenance Notes
+- A GitHub Actions workflow now syncs the Apify catalog daily and commits only when upstream data actually changes.
- The generation scripts in [`settings`](./settings/) are configured to rebuild only the three tracked categories above.
- The visual README layout is now part of the repo's default presentation, not just a temporary pass.
diff --git a/settings/generate_readme_clean.js b/settings/generate_readme_clean.js
index b4c81f5..9a5d30c 100644
--- a/settings/generate_readme_clean.js
+++ b/settings/generate_readme_clean.js
@@ -103,6 +103,50 @@ function groupActorsByAllowedCategory(allActors) {
return grouped;
}
+function getLatestModifiedDate(allActors) {
+ const includedActors = new Map();
+
+ for (const actor of allActors) {
+ if (shouldFilterActor(actor)) {
+ continue;
+ }
+
+ const categories = actor.categories || [];
+ const isIncluded = categories.some((category) => ALLOWED_CATEGORY_MAP.has(category));
+ if (!isIncluded) {
+ continue;
+ }
+
+ const key = `${actor.username || ''}/${actor.name || ''}`;
+ const current = includedActors.get(key);
+
+ if (!current) {
+ includedActors.set(key, actor);
+ continue;
+ }
+
+ const currentModified = current.modifiedAt ? Date.parse(current.modifiedAt) : 0;
+ const candidateModified = actor.modifiedAt ? Date.parse(actor.modifiedAt) : 0;
+ if (candidateModified > currentModified) {
+ includedActors.set(key, actor);
+ }
+ }
+
+ let latestTimestamp = 0;
+ for (const actor of includedActors.values()) {
+ const timestamp = actor.modifiedAt ? Date.parse(actor.modifiedAt) : 0;
+ if (Number.isFinite(timestamp) && timestamp > latestTimestamp) {
+ latestTimestamp = timestamp;
+ }
+ }
+
+ if (latestTimestamp === 0) {
+ return new Date().toISOString().split('T')[0];
+ }
+
+ return new Date(latestTimestamp).toISOString().split('T')[0];
+}
+
function writeCategoryReadme(category, categoryActors) {
const folderName = formatFolderName(category.displayName, categoryActors.length);
const categoryDir = path.join(ROOT_DIR, folderName);
@@ -154,7 +198,7 @@ function removeDisallowedCategoryDirectories(allowedFolderNames) {
function writeRootReadme(categoryCounts) {
const totalCount = categoryCounts.reduce((sum, category) => sum + category.count, 0);
- const today = new Date().toISOString().split('T')[0];
+ const latestModifiedDate = getLatestModifiedDate(actors);
let content = `<div align="center">\n\n`;
content += `<img src="./assets/readme-hero-v2.svg" alt="agentic-ai-apis hero banner" width="100%" />\n\n`;
@@ -183,7 +227,7 @@ function writeRootReadme(categoryCounts) {
content += `|--------|-------|\n`;
content += `| Total APIs | ${totalCount.toLocaleString()} |\n`;
content += `| Categories | ${categoryCounts.length} |\n`;
- content += `| Last Updated | ${today} |\n`;
+ content += `| Last Updated | ${latestModifiedDate} |\n`;
content += `| Focus | Agentic AI infrastructure |\n\n`;
content += `<table>\n`;
content += ` <tr>\n`;
@@ -264,6 +308,7 @@ function writeRootReadme(categoryCounts) {
content += `[![Star History Chart](https://api.star-history.com/svg?repos=cporter202/agentic-ai-apis&type=Date)](https://www.star-history.com/#cporter202/agentic-ai-apis&Date)\n\n`;
content += `## Maintenance Notes\n\n`;
+ content += `- A GitHub Actions workflow now syncs the Apify catalog daily and commits only when upstream data actually changes.\n`;
content += `- The generation scripts in [settings](./settings/) are configured to rebuild only the three tracked categories above.\n`;
content += `- The visual README layout is now part of the repo's default presentation, not just a temporary pass.\n`;
content += `- API links keep the existing affiliate tracking from the upstream source data.\n`;