ParlayAPI Field Guides

Budgeting API requests

For teams estimating the requests behind a polling schedule. The worked credit rates are invented.

How many calls will this schedule use?

The example plans 117 requests. Its first job runs for seven minutes and polls every five, so it polls at the start and again at minute five. Two polls × two sports × three requests per sport × eight windows gives 96 scheduled requests. A 5% retry allowance rounds up to five extra requests. A separate detail job adds 16, giving 101 + 16 = 117. Read the two input schedules.

A request is one call. A credit is a unit charged for that call. At the invented rate of 0.1 credit per call, the first job contributes 10.1 credits. The second job has no rate recorded, so the full credit estimate is unknown. If both widgets read one saved response, count the upstream request once. Inspect the calculator output, including the unpriced job.

When you have a schedule to try, get a key for your own requests.

Try a schedule from your own workflow

Open the editable notebook in Colab or download the offline workbook. Choose from 25 fictional schedules. Compare the original estimate with a revision, then change a polling interval yourself.

When you need to… Start with this case
Check whether two widgets can share a snapshot shared-readers shows two planned calls with one upstream job and four with two.
Decide whether to approve an unpriced evaluation buyer-handoff compares four requests with six. Both credit totals stay open.
Detect when a cheaper schedule loses a required field combined cuts four calls to two and loses the period needed for the report.

The download includes both input CSVs for every case, a Python calculator, and editable worksheets for builders, engineering reviewers, budget owners and educators. Open its README to choose a case and role. Start an evaluation using your own scope.

A seven-minute job on a five-minute timer polls twice

Sketch the first poll at zero and the second at 300 seconds. Now run the Python example and compare the offsets with your sketch before adding sports, pages or retries.

Run the polling example

Do two dashboard widgets really need two fetches?

Draw the upstream call first. If two widgets read the same response, enter one job with two readers in the budget CSV. Then model two independent jobs and compare the request totals.

Model the shared fetch

Can you count requests before you know the full credit cost?

The worked budget has 117 planned requests. Its priced job contributes 10.1 example credits, and the detail job has no unit rate yet. See how the export keeps the subtotal and the open question together.

Inspect the example budget

Count a job that straddles midnight

A ten-minute job begins at 23:55 and polls every five minutes. List the poll times before running the example. Check what happens to the poll at the 00:05 endpoint.

Trace the midnight window

Where did the five extra requests come from?

The pregame job starts with 96 base requests and a five-percent retry allowance. Work out the rounding, then compare your total with the example’s job row before changing the allowance.

Recalculate the retry budget

Ready to test a request against your own allowance? Create a ParlayAPI account.

All six field guides