Science & Technology Intelligence

Science & Technology Intelligence · Acciones GPT

OpenAlex API

API for accessing the OpenAlex academic works database.

  • GET /worksSearch academic works
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "OpenAlex API",
    "description": "API for accessing the OpenAlex academic works database.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.openalex.org",
      "description": "Production server"
    }
  ],
  "paths": {
    "/works": {
      "get": {
        "summary": "Search academic works",
        "operationId": "searchWorks",
        "tags": [
          "Works"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer",
              "default": 1
            },
            "description": "Page number for pagination."
          },
          {
            "in": "query",
            "name": "per_page",
            "schema": {
              "type": "integer",
              "default": 3
            },
            "description": "Number of results to return per page."
          },
          {
            "in": "query",
            "name": "filter",
            "schema": {
              "type": "string"
            },
            "description": "Filter query to search in specific fields, e.g., institutions.country_code."
          },
          {
            "in": "query",
            "name": "sort",
            "schema": {
              "type": "string"
            },
            "description": "Sort order, e.g., publication_date:desc."
          }
        ],
        "responses": {
          "200": {
            "description": "A list of academic works",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkList"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Work": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "publicationYear": {
            "type": "integer"
          },
          "doi": {
            "type": "string",
            "format": "uri"
          },
          "abstract": {
            "type": "string"
          },
          "fulltext": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          }
        }
      },
      "WorkList": {
        "type": "object",
        "properties": {
          "works": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Work"
            }
          }
        }
      }
    }
  }
}