Automattic / Automattic/jetpack

JSON API not providing image alt-tag (Accessibility Issue)

Open
#8,803 4 comments 0 reactions 0 assignees View on GitHub
[Feature] WPCOM API [Focus] Accessibility [Pri] Normal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue
Calling JSON REST API https://public-api.wordpress.com/rest/v1.1/sites/$site/posts/
It will produce a list of recent posts as well as links to its attached images. On the sections that produce information related to attachments, it does not produce Alt Tag, Title or Captions. When relying on API feed to embed contents from Wordpress into another website, it will generate an Accessibility issue as alt tag for images could not be rendered.

#### What I expected

I expect API to produce detailed metadata on the attachment, especially alt tag.

#### What happened instead

API only produce size and MIME information on the image attachment. It did not produce alt tag or title information.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the response from the WordPress.com JSON REST API posts endpoint and inspect how attached images are represented. The change is complete when attachment data includes alt text, title, and captions so consuming sites can render accessible images.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
accessibility, api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.