openapi: 3.1.0 info: title: TechCrunch WordPress REST Authors Categories API description: TechCrunch is built on WordPress and exposes the standard WordPress REST API, providing JSON endpoints for accessing posts, categories, tags, authors, pages, and other content types. The API is available at the /wp-json/wp/v2/ base path and supports filtering, pagination, searching, and sorting across all TechCrunch content. TechCrunch uses a headless WordPress architecture with a React frontend, making the REST API the primary data layer for content delivery. version: v2 contact: name: TechCrunch url: https://techcrunch.com/contact-us/ license: name: Terms of Service url: https://techcrunch.com/terms-of-service/ servers: - url: https://techcrunch.com/wp-json/wp/v2 description: TechCrunch WordPress REST API tags: - name: Categories description: Post category taxonomy paths: /categories: get: operationId: listCategories summary: List Categories description: Retrieve a list of all categories used on TechCrunch. tags: - Categories parameters: - name: page in: query schema: type: integer default: 1 - name: per_page in: query schema: type: integer default: 10 maximum: 100 - name: search in: query schema: type: string description: Limit results to matching a string. - name: orderby in: query schema: type: string enum: - id - include - name - slug - include_slugs - term_group - description - count default: name - name: order in: query schema: type: string enum: - asc - desc default: asc - name: hide_empty in: query schema: type: boolean description: Whether to hide terms not assigned to any posts. - name: parent in: query schema: type: integer description: Limit result set to terms assigned to a given parent ID. responses: '200': description: List of categories content: application/json: schema: type: array items: $ref: '#/components/schemas/Category' /categories/{id}: get: operationId: getCategory summary: Get Category description: Retrieve a specific category by its unique ID. tags: - Categories parameters: - $ref: '#/components/parameters/id' responses: '200': description: Category object content: application/json: schema: $ref: '#/components/schemas/Category' '404': $ref: '#/components/responses/NotFound' components: parameters: id: name: id in: path required: true schema: type: integer description: Unique identifier for the resource. schemas: Category: type: object properties: id: type: integer count: type: integer description: Number of published posts for the term. description: type: string link: type: string format: uri name: type: string slug: type: string taxonomy: type: string example: category parent: type: integer WPError: type: object properties: code: type: string message: type: string data: type: object properties: status: type: integer responses: NotFound: description: Resource not found content: application/json: schema: $ref: '#/components/schemas/WPError'