Skip to content

List patent

GET https://sciglass.uni-jena.de/api/patent

API for retrieving the Patent Index list.

Query parameters

Currently there are no query parameters and this API returns the entire list.

Query parameters will be added soon.


Example request

import asyncio  # (1)!

import httpx
import pandas as pd  # (2)!


# API endpoint
endpoint_url = "https://sciglass.uni-jena.de/api/patent"

headers = {
    "Accept": "application/json",
    "Content-type": "application/json",
    "Authorization": "Bearer $SCIGLASS_NEXT_API_KEY"
}


async def example():
    async with httpx.AsyncClient(timeout=None) as client:
        r = await client.get(endpoint_url, headers=headers)
        if r.status_code == 200:
            data = r.json()
            print(data)

            # Define the desired column order
            columns = ["id", "class", "authors", "year", "country", "usage", "assignee", "comp", "prop", "notes",
                       "table_ids"]  # in the web UI, table_ids column is invisible

            # Convert JSON to DataFrame with specified column order
            df = pd.DataFrame(data, columns=columns)

            # Display the DataFrame
            print(df)

            # Export the result to CSV
            df.to_csv('out.csv', index=False)

        else:
            print(f"Request failed with status code: {r.status_code}")
            print("Response text:", r.text)


asyncio.run(example())
  1. AsyncIO is Python's built-in library for writing concurrent code with the async/await syntax.
  2. This is optional and is imported in this example to show how to export the result to a CSV file using pandas.
1
2
3
4
curl 'https://sciglass.uni-jena.de/api/patent' \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $SCIGLASS_NEXT_API_KEY"

[
    {'id': 'DD262017',  # (1)!
     'class': 'Cl 4 C 03 C 3/32',
     'authors': 'Seeber W.,Ehrt D.,Heumann E.,Ledig M.', 
     'year': '1988',
     'country': 'German Democratic Republic',
     'usage': 'laser glasses',
     'assignee': 'Univ. Schiller Jena (DD)',
     'comp': 'SrO, La<sub>2</sub>O<sub>3</sub>, P<sub>2</sub>O<sub>5</sub>, MgF<sub>2</sub>, CaF<sub>2</sub>, SrF<sub>2</sub>, AlF<sub>3</sub>, MnF<sub>2</sub>, MnBr<sub>2</sub>, MnCl<sub>2</sub>, MnO, Ce<sub>2</sub>O<sub>3</sub>, SO<sub>3</sub>, CrF<sub>3</sub>, Nd<sub>2</sub>O<sub>3</sub>, NdF<sub>3</sub>',
     'prop': 'Optical properties',
     'notes': 'optical glasses for lazer technique.',
     'table_ids': '\x7f5059\x7f5060\x7f'  # (2)!
     },
    {'id': 'DD262018',
     'class': 'Cl 4 C 03 C 3/32',
     'authors': 'Ehrt D.,Seeber W.,Heumann E.,Ledig M.', 
     'year': '1988',
     'country': 'German Democratic Republic',
     'usage': 'laser glasses',
     'assignee': 'Univ. Schiller Jena (DD)',
     'comp': 'MgF<sub>2</sub>, CaF<sub>2</sub>, SrF<sub>2</sub>, AlF<sub>3</sub>, SrO, BaO, La<sub>2</sub>O<sub>3</sub>, P<sub>2</sub>O<sub>5</sub>, Cr<sub>2</sub>O<sub>3</sub>, YbF<sub>3</sub>, ErF<sub>3</sub>',
     'prop': 'Optical properties',
     'notes': 'glasses for lazer technique.',
     'table_ids': '\x7f5061\x7f'
     }
  # more patents
]
  1. Clicking on the Patent No. name in the Web UI opens a list of all tables stored in the key table_ids.
  2. table_ids is invisible in the Web UI, and the table ID is separated by a delimiter \x7f.

Note

Many table IDs are joined and stored as string in the original SciGlass database, but they are separated by either ,(comma) or (space) or ASCII characters like (This is not space) or \x7f.

The developer is currently keeping it as it was. This decision may change in future updates to improve performance and maintainability.