Fibonacci Generator API

GET

Calculate Fibonacci numbers and golden ratios for any range.

Fibonacci Generator computes Fibonacci numbers and sequences based on a target count or ceiling value. Each response provides the generated sequence starting from any position, total sum, step ratios, and a golden ratio approximation.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/fibonaccigenerator?count=10
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "sequence": [
      0,
      1,
      1,
      2,
      3,
      5,
      8,
      13,
      21,
      34
    ],
    "count": 10,
    "start_from": 0,
    "first_value": 0,
    "last_value": 34,
    "sum": 88,
    "ratios": [
      1.666667,
      1.6,
      1.625,
      1.615385,
      1.619048
    ],
    "golden_ratio_approximation": 1.619048
  }
}

About the Fibonacci Generator API

The Fibonacci Generator API computes Fibonacci sequence values along with derived statistics — a sum, the trailing 5 consecutive-value ratios, and the most recent ratio as an approximation of the golden ratio. It accepts two mutually-exclusive modes: `count` for a fixed-length response, or `maxvalue` for every Fibonacci number up to a numeric ceiling. An optional `startfrom` parameter advances the generator before emission begins. All arithmetic uses standard JavaScript Number type on the server, so values above Number.MAX_SAFE_INTEGER (around the 79th Fibonacci number) cannot be represented exactly — the precision ceiling is end-to-end. The ratios array is always truncated to the last 5 entries regardless of sequence length, and each ratio is rounded to 6 decimal places.

What people use it for

Math Education
Teach Fibonacci sequences and golden ratio concepts in educational applications and tools
Algorithm Testing
Generate test data for algorithms and performance testing using Fibonacci sequences
Visual Design
Apply Fibonacci ratios and golden ratio proportions in design and layout calculations
Data Analysis
Use Fibonacci numbers in technical analysis, trading algorithms, and pattern recognition

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Fibonacci Generator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Fibonacci Generator API.

Read the docs →
Can I generate numbers up to a specific value instead of a fixed count?
Yes. The API provides endpoints for both approaches. You can request an exact count of numbers or define a maximum value threshold, which generates sequence numbers up to that limit.
Can I start the sequence from an arbitrary position?
Yes. You can supply a starting position parameter to skip earlier numbers in the sequence. The returned list and all accompanying calculations will begin directly from your chosen index.
Does the API calculate the sum of the generated sequence?
Yes. Every response includes the total sum of all numbers in the generated sequence. It also returns summary details including the total count, first value, and last value.
Are golden ratio approximations and consecutive ratios included?
Yes. Responses automatically provide an array of ratios between consecutive values alongside an overall golden ratio approximation. You do not need to calculate ratios manually from the raw sequence.
Is it cheap enough to generate sequences for every user request?
Yes. Each generation call costs 2 credits, which works out to about $0.0003 per call (or $0.30 per 1,000 calls) on the Starter plan. Starter covers 100,000 calls each month, while the Free plan includes 100 calls per month for testing.

Ready to build with Fibonacci Generator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs