Skip to contentSkip to filters

Keep a copy of open funding calls

Read every open funding call in a field into your own store and refresh it on a schedule.

The examples read the key from $WW_API_KEY; the Quickstart shows how to create one.

Steps

  1. 1

    List the fields with ids. The listings by type filter by the field's id, not its slug.

    curl --fail-with-body "https://world-wide.org/api/v1/domains?includeCounts=false" -H "Authorization: Bearer $WW_API_KEY"
    Show the response
    {
      "data": [
        {
          "id": "019b891c-b981-74dc-8f5c-87b1e1ec2c1e",
          "slug": "neuro",
          "name": "Neuroscience",
          "nickname": "Neuro",
          "description": "Research spanning cellular, systems, and computational neuroscience."
        }
      ],
      "total": 1
    }
  2. 2

    List funding with that id as domainId and openOnly=true, 100 a page. Increase page while pagination.hasNext is true.

    curl --fail-with-body "https://world-wide.org/api/v1/grants?domainId=019b891c-b981-74dc-8f5c-87b1e1ec2c1e&openOnly=true&limit=100&page=1" -H "Authorization: Bearer $WW_API_KEY"
    Show the response
    {
      "data": [
        {
          "id": "019b891c-b981-74dc-8f5c-87b1e1ec2c71",
          "contentType": "grant",
          "title": "Postdoctoral fellowships in systems neuroscience",
          "description": "Two-year fellowships for work on hippocampal replay.",
          "funder": "Example Foundation",
          "amountMin": 60000,
          "amountMax": 120000,
          "currency": "EUR",
          "deadline": "2027-01-31",
          "openDate": "2026-11-01",
          "website": "https://example.org/fellowships",
          "applicationLink": "https://example.org/fellowships/apply",
          "tags": [
            "fellowship"
          ],
          "country": "Germany",
          "createdAt": "2026-11-02 09:00:00+00"
        }
      ],
      "pagination": {
        "page": 1,
        "pageSize": 100,
        "total": 1,
        "totalPages": 1,
        "hasNext": false,
        "hasPrev": false
      }
    }
  3. 3

    Key each row by contentType and id together. A job row is a job listed under funding. Listings can move between pages during a scan or leave the selected field. Deduplicate by that key and recheck a missing call before changing its status.

  4. 4

    To recheck particular rows between runs, get up to 32 items by id as <contentType>:<id>. A missing id means the API could not return a public item for it. Use the listing or its source to confirm closure.

    curl --fail-with-body --get "https://world-wide.org/api/v1/items" \
      --data-urlencode "ids=grant:019b891c-b981-74dc-8f5c-87b1e1ec2c71,job:019b891c-b981-74dc-8f5c-87b1e1ec2c61" \
      -H "Authorization: Bearer $WW_API_KEY"
    Show the response
    {
      "items": [
        {
          "id": "grant:019b891c-b981-74dc-8f5c-87b1e1ec2c71",
          "type": "grant",
          "title": "Postdoctoral fellowships in systems neuroscience",
          "url": "https://world-wide.org/grant/postdoctoral-fellowships-k3m9x2p7",
          "date": "2026-11-02",
          "endDate": null,
          "startsAt": null,
          "deadline": "2027-01-31",
          "organization": "Example Foundation",
          "people": [],
          "location": "Germany",
          "fields": [
            "neuro"
          ],
          "upcoming": true,
          "recorded": false,
          "imageUrl": null,
          "snippet": "Two-year fellowships for work on hippocampal replay."
        }
      ]
    }

Complete script

The whole sync in Python, with paging, keying and retries:

import os
import time

import requests

BASE = "https://world-wide.org/api/v1"
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['WW_API_KEY']}"


def get(path, **params):
    """GET one page, waiting out rate limits and brief outages."""
    for attempt in range(5):
        try:
            response = session.get(f"{BASE}{path}", params=params, timeout=30)
        except (requests.ConnectionError, requests.Timeout):
            if attempt == 4:
                raise
            time.sleep(2**attempt)
            continue
        if response.status_code in (429, 503) or response.status_code >= 500:
            wait = int(response.headers.get("Retry-After", 2**attempt))
            if attempt == 4 or wait > 300:  # stop when the server asks for a longer wait
                break
            time.sleep(wait)
            continue
        break
    response.raise_for_status()
    return response.json()


fields = get("/domains", includeCounts="false")["data"]
neuro = next(field for field in fields if field["slug"] == "neuro")

calls, page = {}, 1
while True:
    body = get("/grants", domainId=neuro["id"], openOnly="true", limit=100, page=page)
    for call in body["data"]:
        calls[f"{call['contentType']}:{call['id']}"] = call
    if not body["pagination"]["hasNext"]:
        break
    page += 1

print(len(calls), "open funding calls in", neuro["name"])

If it fails

  • 429: wait Retry-After seconds. An account's keys share 100 requests a minute, so pages of 100 read 10,000 rows a minute.
  • 500, 502, 503, 504 or a dropped connection: repeat the same page; every read is safe to repeat.
  • 400 on page: (page - 1) × limit may not exceed 100,000.