# Content Access
# I. Function introduction
Content access is the ability to access WeChat search for Weixin Mini Program with high-quality content. The Mini Program can push information such as page paths, parameters and structured data of high-quality content through this feature, so that WeChat search can be included in Mini Program content in a more timely manner, and the pushed content will be used for WeChat search results display.
# II. Requirements for access
At the same time meet the following conditions Weixin Mini Program can be eligible to apply for content access.
__1.Scope of open categories:__For non-personal subjects, some subcategories under the six primary categories of government services, business services, medical services, financial industry, entertainment, and social networking are opened;
| Level 1 category | Category II |
|---|---|
| Government services | Unlimited |
| Business services | Legal services platform |
| Law Firm Services | |
| accountancy firms | |
| Tax firm | |
| Healthcare services | Public health care institutions |
| Level 3 private medical institutions | |
| Other private medical institutions | |
| Medical services | |
| Internet Hospital | |
| financial sector | bank |
| trust | |
| Public funds | |
| private equity fund | |
| Securities / Futures | |
| Securities / Futures Investment Consultancy | |
| New Third Board Information Services Platform | |
| Entertainment | publication |
| Academic journals | |
| radio station | |
| Music | |
| audiobook | |
| cartoons and comics | |
| Religious Information | |
| Information Square | |
| Social contact | notes |
| question and answer |
Note: If Weixin Mini Program contains community / forum, video square, other videos, stock information services and other services, this time does not support access.
__2.Number of active users:__monthly average daily active users not less than 5000, has been released on the shelf for more than 30 days;
__3.Account status:__account is not restricted to search, account has completed the record;
__4.Account attributes:__to provide graphic information content for the main business.
# III. Criteria for Content Quality
In the content audit, attention is paid to the following dimensions:
__1.Information value: __ The content of the article is consistent with the basic truth, the content is accurate, and can bring more information to the user. The content such as low quality, obvious AIGC will be treated as low amount of information;
__2.Page browsing experience:__page structure level clear, readable, core resources available without dead chain;
__3.Advertising:__No pop-up ads, no other bad ads that seriously affect the user experience;
__4.Paid content:__push content needs to support free browsing, paid content can be pre-filtered, or open a free trial for search channels;
__5.Timeliness:__keep the content updated regularly, and for the expired content, it is necessary to update or push the delete signal in time;
__6.Compliance:__complies with laws and regulations, does not involve pornography, gambling, violence, fear of terrorism, political sensitivity, rumors, discriminatory remarks and other illegal or illegal information.
# IV. Opening process
Developers who meet the above conditions may apply to open.
The process is as follows:
1. Submit the application as required on the "Weixin Mini Program Backend - Promotion & Search - WeChat Search - Operations Center - Content Access" page, and submit test data as outlined in "V. Data Push Process";
2. Push forward the test data (300 pieces), and the platform will conduct an audit and evaluation according to the criteria in "Third, Content Quality Standard." Test data content needs to be consistent with the official push content in terms of content type and quality;
3. After the test data is passed, it will enter the audit status, and after the audit is passed the official data can be pushed, and the official data is allowed to be searched online.
# V. Data Pushing Process
# 1. Dxplaination of Interface Call Request
HTTP request method: POST
https://api.weixin.qq.com/wxa/search/wxaapi_submitpages?access_token=TOKEN
# 2. Dxplaination of request parameters
Request parameters
| parameter | type | Introductions |
|---|---|---|
| access_token | string | Weixin Mini Program of access_token, See: [Getting Interface Call Credentials | WeChat Open Documentation](https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/mp-access-token/getStableAccessToken.html) |
| pages | PageObject array | Request to submit an array of Weixin Mini Program page information, which can be submitted for multiple pages at a time.Put in the POST body |
PageObject Structure Dxplaination
| parameter | type | Introductions |
|---|---|---|
| path | string | Weixin Mini Program page path starting with pages /. |
| query | string | Weixin Mini Program Page Request Parameters |
| data_list | Pagoda array | Weixin Mini Program page data, a page can submit multiple structured information at the same time |
Note: path + query identifies a unique page, and the WeChat side uses this information to construct a unique id.
Pagoda Structure Dxplaination
| parameter | type | Introductions |
|---|---|---|
| @type | string | Data structure type used to identify the target OS, required: @ type = "wxsearch_cpdata" - official data, corresponding to a search official environment, searchable by users;@ type = "wxsearch_testcpdata" - audit data, corresponding to soyi search data audit environment, for data audit and format verification, not shown in search results. |
| Other | For structured data required for the target business, see Content Data Field. |
# 3. Return parameter explaination
| parameter | type | Introductions |
|---|---|---|
| errcode | int32 | Error code |
| errmsg | string | Error message |
Common Error Codes
| errcode | errmsg | Introductions |
|---|---|---|
| 40066 | invalid url | Weixin Mini Program url configured sitemap disallow |
| 40211 | invalid scope_data | Data structure validation failed with further error fields, such as Unexpected instance type: / content_id, indicating the content_id type error. |
| 40212 | invalid query | Illegal query |
| 40219 | pages is empty | Pages parameter is empty |
| 45002 | content size out of limit | Http request packet is too large, it is recommended to split or use compression |
| 47001 | data format error | HTTP request packet is not valid JSON |
| 47004 | submit pages count more than each quota | More than 1000 pages per submission (Note: The number of pages per submit should be less than or equal to 1000, incremental data recommends single push) |
| 47006 | submit pages count reach daily limit, please try tomorrow | The number of pages submitted that day has reached the quota limit, please try again tomorrow (Note: the daily limit of pages is 50 w) |
| 85091 | search status was turned off | Weixin Mini Program The search switch is turned off.Please visit the Settings page to open |
| 85083 | search status is banned | Weixin Mini Program The search function is disabled |
| 108001 | system error | The system failed. Try again. The page in the request may be partially successful |
| 108002 | page size out of limit | A single page size exceeds the threshold (max 1 M) |
| 108003 | permission denied | Before reviewing data, an application must be submitted; Before pushing the official data, you need to wait for approval of the audit. |
Additional error codes can be found in error codes | WeChat open documentation .
# 4. Content Data Field
| field | name | Data type | Required to fill in | Field Dxplaination and Requirements |
|---|---|---|---|---|
| update | Update fields | uint32 | yes | 1 - New; 3 - delete;Content updates are handled as new, and if the page path (path + query) is the same, WeChat will do an overwrite update. |
| content_id | Data party custom id | string | yes | Data party custom id |
| page_type | Page Type | uint32 | yes | Fixed Fill 2 |
| h5_url | H5 Links | string | no | Recommended to fill in, if the page has a corresponding H5 link, then fill in |
| title | title | string | yes | The length is recommended in 20 words |
| abstract | abstract | String array | no | Adding a summary favors the recall |
| referer | HTTP Referer | string | no | If the picture has anti-theft chain logic, you need to set the referer head for the picture download |
| cover_img_url | Cover image URL | string | no | Image URL access If there is validity, it is recommended to set to more than 15 days |
| mainbody | text | string | yes | Text, no html tags |
| author | Author | Object | no | Author information, recommended medical category Fill in physician information |
| - author_name | Author Name | string | yes | |
| - author_title | Authorship | string | no | |
| - author_portrait | Author avatar URL | string | no | The avatar size is no less than 36px * 36px. Image URL access If there is validity, it is recommended to set to more than 15 days |
| video | video | Object array | no | |
| - video_title | Video title | string | no | If not filled in, it will be considered consistent with the page title |
| - video_length | Video Duration | uint32 | yes | In seconds, prioritize short videos within 5 minutes |
| - video_img | Video cover art URL | string | yes | URL, size not less than 686px * 288px.Image URL access If there is validity, it is recommended to set to more than 15 days |
| time_publish | Published: | uint32 | yes | Unix time stamp in seconds |
| time_modify | Updated time | uint32 | yes | Unix time stamp in seconds |
| extra_info | Supplementary fields | Object | no | When the general field cannot meet the requirements, additional fields are needed, and the specific field content needs to be negotiated with WeChat |