CleanedWeb

Integration · Developer tool

CleanedWeb GitHub Action

cleanedweb/run-api-action runs a catalog API in a GitHub Actions workflow and writes the records to a file in your workspace: JSON, JSON Lines or CSV. Keep a dataset in git, refresh a CSV on a schedule, or feed the next step of a workflow.

Quick start

  1. Pick an API

    Choose one in the catalog. Its contract.json lists the inputs it accepts.

  2. Store a key

    Create an API key with the run scope in the console and save it as the repository secret CLEANEDWEB_API_KEY.

  3. Add the step

    - uses: cleanedweb/run-api-action@v1
      with:
        api-key: ${{ secrets.CLEANEDWEB_API_KEY }}
        api-id: generated_047a8ebb25911ccf62f4a212   # GitHub Topics Repositories
        input: '{"sort":"desc_stars"}'
        max-items: 25
        format: csv

    Start with a small max-items, look at the file, then raise it. Without it a run continues until the source has no more records.

A nightly dataset in your repository

Run the action on a schedule trigger and commit the file only when it changed. The git history becomes a record of how the website's data moved. Pin version so a new major version cannot change the file's shape. The action's outputs (record-count, run-id, units-charged, stop-reason) go into the commit message or the next step.

More integrations

All integrations

Every integration calls the same APIs

Pick an API in the catalog, or ask for a site it does not cover yet. 5,000 records are free once; after that you pay per record delivered.