Search OEIS Sequences
oeis_search_sequencesSearch the OEIS using its query syntax: plain words, "quoted phrases", comma-separated terms, prefixes (keyword:, author:, name:, comment:, formula:, program:, xref:, id:), | for OR, and a leading - to exclude. Returns up to 10 summaries per page. For identifying a sequence from its terms, oeis_identify_sequence is the direct route.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Result order: relevance (default), number (ascending A-number), created (newest entry first), or modified (most recently edited first). | relevance |
| query | Yes | OEIS query, sent as written. Examples: keyword:core fibonacci; author:Sloane; "Catalan numbers" (a quoted phrase); 1,2,5,14,42. oeis_list_reference topic search_syntax lists the prefixes and operators. | |
| start | No | Result offset: 0, 10, … 100 (OEIS shows at most 110 results per query). Pass nextStart from the previous page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Page size: 10, fixed by OEIS. | |
| sort | No | The result order applied. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Rows on this page. | |
| start | No | The result offset of this page as OEIS served it; below the requested start when that start was past the last result (OEIS then serves the last page). | |
| notice | No | Guidance: why nothing matched, how to narrow the query, or how to reach the next page. | |
| results | No | Matching sequences on this page, in the applied order. | |
| nextStart | No | Pass as start for the next page; absent on the last reachable page. | |
| truncated | No | True when more rows exist than this page shows. | |
| totalCount | No | Total rows: the match count OEIS reported, or for outgoing cross-references the number of distinct A-numbers the entry names. | |
| effectiveQuery | No | The query as OEIS parsed it (lowercased upstream), e.g. seq:1,2,5,14,42. |