This site is supported by donations to The OEIS Foundation.

JSON Format, Compressed Files

From OeisWiki

Jump to: navigation, search

JSON Format

  • We are often asked if the OEIS entries are available in machine-readable format, for use in mobile phones, etc.
  • The answer is Yes, you can retrieve OEIS entries in JSON (JavaScript Object Notation) format.
  • Just like you have always been able to add &fmt=text as a URL query parameter to get text output, now you can add &fmt=json to get JSON.
  • For example, to search for 1,2,3,6,11,23,47,106,235, use the URL

https://oeis.org/search?q=1,2,3,6,11,23,47,106,235&fmt=json

  • To retrieve A275646 in JSON format, use

https://oeis.org/search?q=A275646&fmt=json

Compressed Versions

  • There is a gzipped file containing just the sequences and their A-numbers (about 9 megs)
  • There is also a gzipped file containing just the names of the sequences and their A-numbers (about 3 megs)
Personal tools