Skip to content

List trademark

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

API for retrieving the Trademark 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/trademark"

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 = ["trademark", "company", "country", "usage", "note",
                       "table_ids"]  # in the web UI, only the five columns are visible

            # 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/trademark' \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $SCIGLASS_NEXT_API_KEY"

[
  {
    "trademark": "S87-1",  # (1)!
    "company": "-",
    "country": "USSR",
    "usage": "Electronic tubes",
    "note": "-",
    "table_ids": "2642351"  # (2)!
  },
  {
    "trademark": "MKR",
    "company": "-",
    "country": "USSR",
    "usage": "Heat-resistant",
    "note": "-",
    "table_ids": "282"
  },
  # more trademarks
]
  1. Clicking on the Trademark 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  (this is not space).

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.