Discover/oeis.org API
live

oeis.org APIoeis.org

Search and retrieve integer sequences from the On-Line Encyclopedia of Integer Sequences. Look up by A-number, keyword, or known terms. 4 endpoints.

Endpoints
4
Updated
10d ago
Try it
Maximum number of results to return.
Search query (keywords, A-number like A000045, or sequence description). Overly broad term
Starting position for pagination.
api.parse.bot/scraper/970d2964-672b-4fa3-ac30-0a50d22952e0/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/970d2964-672b-4fa3-ac30-0a50d22952e0/search_sequences?limit=10&query=fibonacci&offset=0' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Search for sequences by keyword, A-number, or other terms. Returns summary information about matching sequences. Note: OEIS returns empty results for overly broad queries (e.g. 'prime') that match too many sequences; use more specific terms (e.g. 'prime gap', 'twin prime') or A-numbers for best results.

Input
ParamTypeDescription
limitintegerMaximum number of results to return.
queryrequiredstringSearch query (keywords, A-number like A000045, or sequence description). Overly broad terms may return empty results due to OEIS query limits.
offsetintegerStarting position for pagination.
Response
{
  "type": "object",
  "fields": {
    "limit": "integer, limit used",
    "query": "string, the search query submitted",
    "total": "integer, number of results returned",
    "offset": "integer, offset used",
    "results": "array of sequence summaries with a_number, id, name, data, comment_count, reference_count, link_count, has_formula, has_example"
  },
  "sample": {
    "data": {
      "limit": 10,
      "query": "fibonacci",
      "total": 10,
      "offset": 0,
      "results": [
        {
          "id": "M0692 N0256",
          "data": "0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181",
          "name": "Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.",
          "a_number": "A000045",
          "link_count": 250,
          "has_example": true,
          "has_formula": true,
          "comment_count": 179,
          "reference_count": 59
        }
      ]
    },
    "status": "success"
  }
}

About the oeis.org API

The OEIS API provides 4 endpoints for searching and retrieving integer sequences from the On-Line Encyclopedia of Integer Sequences. Use search_sequences to find entries by keyword or A-number, get_sequence to pull full metadata for a specific entry including formulas, comments, and author, get_sequence_data to retrieve raw indexed term pairs from a sequence's b-file, and search_by_sequence to identify an unknown sequence from its known values.

Search and Lookup

The search_sequences endpoint accepts a query string — a keyword phrase, a description fragment, or a direct A-number like A000045 — and returns an array of sequence summaries. Each summary includes a_number, name, data (the initial comma-separated terms), and metadata counts: comment_count, reference_count, link_count, has_formula, and has_example. Pagination is controlled via limit and offset. Note that overly broad queries such as prime return empty results; use specific phrases like prime gap or twin prime instead.

Full Sequence Detail

The get_sequence endpoint takes an a_number — either the full form A000045 or a bare integer like 45, which is automatically zero-padded — and returns the complete OEIS entry. Response fields include name, data, formula (array of formula strings), comment (array of annotation strings), example, link (HTML link strings), author, keyword, offset, and the legacy id codes. This is the right endpoint when you need the mathematical context around a sequence, not just its terms.

Raw Term Data

The get_sequence_data endpoint returns structured term data in b-file format: an array of objects each containing an integer index n and its corresponding value a(n). The optional num_terms parameter caps the number of returned terms; omitting it returns all available terms for the sequence. The response also includes a_number in canonical form and total_terms as a count.

Identify a Sequence from Its Terms

The search_by_sequence endpoint accepts a comma-separated string of known values — for example 1,1,2,3,5,8,13 — and returns matching sequence summaries in the same shape as search_sequences results, including a_number, name, data, and availability flags. This is useful when you have computed values and need to identify the underlying mathematical sequence.

Common use cases
  • Identify an unknown integer sequence by supplying its first several terms to search_by_sequence
  • Build a math reference tool that fetches full entry detail — formulas, comments, and examples — via get_sequence
  • Extract all indexed term pairs for a sequence using get_sequence_data to populate a local numerical dataset
  • Search for sequences related to a mathematical concept using keyword queries in search_sequences
  • Look up a known A-number programmatically to retrieve author attribution and keyword classification
  • Cross-reference computed sequence values against OEIS entries to validate a new integer formula
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does OEIS have an official developer API?+
OEIS provides a limited public search interface at https://oeis.org/search that returns JSON when the fmt=json parameter is included, but it is not documented as a formal developer API and has no official versioning, authentication, or support channel.
Why does my `search_sequences` query return empty results?+
OEIS suppresses results for queries that match an excessive number of sequences. Terms like prime or number trigger this behavior. Use more specific phrases such as prime gap, Sophie Germain prime, or Fibonacci divisibility to get results. The total field in the response will be 0 when this occurs.
What does `get_sequence_data` return that `get_sequence` does not?+
get_sequence returns the data field as a short comma-separated string of initial terms. get_sequence_data returns the full b-file content as a structured array of {n, a(n)} integer pairs, potentially covering thousands of terms. Use num_terms to limit the response to a specific count.
Does the API expose cross-references between sequences?+
Not currently as structured fields. The get_sequence endpoint does return comment and link arrays that may contain cross-reference mentions in text or HTML form, but there is no dedicated xref array or parsed list of related A-numbers in the response schema. You can fork this API on Parse and revise it to extract and surface the cross-reference data as a structured field.
Is it possible to filter `search_sequences` results by keyword tags like `base`, `nonn`, or `fini`?+
The search_sequences endpoint accepts a free-text query and does not expose a dedicated keyword filter parameter. The keyword field is returned on individual entries via get_sequence. You can fork this API on Parse and revise it to add keyword-based filtering as an explicit input parameter.
Page content last updated . Spec covers 4 endpoints from oeis.org.
Related APIs in EducationSee all →
arxiv.org API
Search and discover academic research papers on arXiv using keywords, authors, titles, categories, and dates, then access detailed metadata for any paper. Browse the complete arXiv category taxonomy to explore research across different scientific disciplines.
kenpom.com API
Access comprehensive college basketball analytics and ratings including team efficiency stats, four factors, point distribution, and detailed team statistics from KenPom's renowned basketball evaluation system. Search teams and coaches, retrieve conference-specific ratings, and explore advanced metrics across Division I college basketball.
springer.com API
Search and retrieve metadata for millions of articles, books, and journals from Springer Nature's research library using DOI or ISBN lookups, with powerful filtering and pagination options. Get detailed information about academic publications including journal details, article metadata, and book information to power your research tools and discovery applications.
maxpreps.com API
Access high school sports data from MaxPreps. Search for schools, retrieve team rosters and schedules, look up athlete profiles, and browse national or state rankings across all sports.
amberstudent.com API
Search student accommodation listings across popular cities and access comprehensive property information including room types, pricing trends, and tenant reviews. Get detailed insights into student housing options to compare amenities, prices, and community feedback all in one place.
ieeexplore.ieee.org API
Search for scientific papers and retrieve their metadata, abstracts, references, and citations from IEEE Xplore's collection of journals and conferences. Look up author profiles, browse journals, and access paper details and full text sections all programmatically.
josaa.nic.in API
Access JoSAA (Joint Seat Allocation Authority) admission data for IITs, NITs, IIITs, and GFTIs. Retrieve opening and closing ranks by institute, program, category, quota, and round for the current counselling session as well as historical data from 2016 onwards. Also query seat matrices and full institute details.
ncaa.com API
Access live college sports scores, game schedules, detailed boxscores, play-by-play breakdowns, and team statistics across NCAA sports. Search for specific contests and retrieve comprehensive game information for any NCAA sport, division, or team.