# Get job advertisement posting records

Get job advertisement posting records.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/hire/v1/job_publish_records/search
HTTP Method | POST
Rate Limit | [1000 per minute、50 per second](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.**<br>Enable any scope from the list | Obtain position information(hire:job:readonly)<br>Update job information in hiring(hire:job)
Required field scopes | **Notice**：The response body of the API contains the following sensitive fields, and they will be returned only after corresponding scopes are added. If you do not need the fields, it is not recommended that you request the scopes.<br>Obtain user ID(contact:user.employee_id:readonly)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Query parameters

Parameter | Type | Required | Description
---|---|---|---
page_token | string | No | Page identifier. It is not filled in the first request, indicating traversal from the beginning; when there will be more groups, the new page_token will be returned at the same time, and the next traversal can use the page_token to get more groups<br>**Example value**: eyJvZmZzZXQiOjEwLCJ0aW1lc3RhbXAiOjE2Mjc1NTUyMjM2NzIsImlkIjpudWxsfQ==
page_size | int | No | Page size<br>**Example value**: 10<br>**Default value**: `10`<br>**Data validation rules**:<br>- Maximum value: `100`
user_id_type | string | No | User ID categories<br>**Example value**: open_id<br>**Optional values are**:<br>- open_id：Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid)<br>- union_id：Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)<br>- user_id：Identifies a user to a tenant. The same user has different User IDs in different tenants. In one single tenant, a user has the same User ID in all apps （including store apps）. User ID is usually used to communicate user data between different apps. [How to get User ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)<br>**Default value**: `open_id`<br>**When the value is `user_id`, the following field scopes are required**:<br>Obtain user ID(contact:user.employee_id:readonly)
department_id_type | string | No | The type of department ID used in this call<br>**Example value**: department_id<br>**Optional values are**:<br>- open_department_id：By open_department_id<br>- department_id：By department_id<br>**Default value**: `open_department_id`
job_level_id_type | string | No | The type of "Job Level ID" used in this request<br>**Example value**: 6942778198054125570<br>**Optional values are**:<br>- people_admin_job_level_id：The Job Level ID applicable to "HCM Platform". The HCM Platform is gradually being offline. It is recommended not to continue using this ID type.<br>- job_level_id：The Job Level ID applicable to "Feishu Management Backend" can be obtained through the [Query the list of job level](https://open.feishu.cn/document/server-docs/contact-v3/job_level/list) interface.<br>**Default value**: `people_admin_job_level_id`
job_family_id_type | string | No | The type of "Job Family ID" used in this request<br>**Example value**: 6942778198054125571<br>**Optional values are**:<br>- people_admin_job_category_id：The Job Family ID applicable to "HCM Platform". The HCM Platform is gradually being offline. It is recommended not to continue using this ID type.<br>- job_family_id：The Job Family ID applicable to "Feishu Management Backend" can be obtained through the [Query the list of job family](https://open.feishu.cn/document/server-docs/contact-v3/job_family/list) interface.<br>**Default value**: `people_admin_job_category_id`

### Request body

Parameter | Type | Required | Description
---|---|---|---
job_channel_id | string | Yes | Channel ID<br>**Example value**: "7047318856652261676"

### Request body example
```json
{
    "job_channel_id": "7047318856652261676"
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
items | website_job_post\[\] | List
id | string | Job Advertising ID
title | string | Title
job_id | string | Job ID
job_code | string | Job Code
job_expire_time | string | Post expiration time, "null" means "long-term valid"
job_active_status | int | Position Status<br>**Optional values are**:<br>- 1：Enabled State<br>- 2：Disabled State
job_process_type | int | Job Process Type<br>**Optional values are**:<br>- 1：Social Recruitment<br>- 2：Campus Recruitment
job_recruitment_type | id_name_object | Job Type
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
job_department | id_name_object | Position Department
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
job_type | id_name_object | Job Type
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
min_job_level | id_name_object | lowest rank
id | string | Rank ID
name | i18n | Rank name
zh_cn | string | Rank Chinese name
en_us | string | Rank English name
max_job_level | id_name_object | Highest rank
id | string | Rank ID
name | i18n | Rank name
zh_cn | string | Rank Chinese name
en_us | string | Rank English name
address | common_address | Job Address
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
district | code_name_object | Regional Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
city | code_name_object | City Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
state | code_name_object | Provincial Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
country | code_name_object | Country Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
min_salary | string | Monthly salary range-minimum salary
max_salary | string | Monthly salary range-maximum salary
required_degree | int | Academic requirements<br>**Optional values are**:<br>- 1：Primary School And Above<br>- 2：Junior High School And Above<br>- 3：Full-time And above<br>- 4：High school And above<br>- 5：College And Above<br>- 6：Bachelor Degree And Above<br>- 7：Master and above<br>- 8：Doctor and above<br>- 20：Unlimited
experience | int | Experience<br>**Optional values are**:<br>- 1：Unlimited<br>- 2：Graduate<br>- 3：Less than 1 year<br>- 4：1-3 years<br>- 5：3-5 years<br>- 6：5-7 years<br>- 7：7-10 years<br>- 8：More than 10 years
headcount | int | Quantity
high_light_list | id_name_object\[\] | Position Highlights
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
description | string | Job Description
requirement | string | Job Requirements
creator | id_name_object | Founder
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
create_time | string | Creation time
modify_time | string | Modification time
customized_data_list | website_job_post_customized_data\[\] | Custom Fields
object_id | string | Custom field ID
name | i18n | Field Name
zh_cn | string | Chinese
en_us | string | English
object_type | int | Field Type<br>**Optional values are**:<br>- 1：One-line Text<br>- 2：Multi-line Text<br>- 3：Radio<br>- 4：Multiple Choice<br>- 5：Date<br>- 6：Month Selection<br>- 7：Year Selection<br>- 8：Time Period<br>- 9：Numbers<br>- 10：Default field
value | website_job_post_customized_value | Custom field values
content | string | When the field type is single-line text, multi-line text, module, default field, take the value from this field
option | website_job_post_customized_option | When the field type is radio, take the value from this field
key | string | Option ID
name | i18n | Option Name
zh_cn | string | Chinese
en_us | string | English
option_list | website_job_post_customized_option\[\] | When the field type is multi-select, take the value from this field
key | string | Option ID
name | i18n | Option Name
zh_cn | string | Chinese
en_us | string | English
time_range | website_job_post_customized_time_range | When the field type is time period, take the value from this field
start_time | string | Start Time
end_time | string | End Time
time | string | When the field type is date selection, month selection, year selection, take the value from this field, which is a millisecond timestamp
number | string | When the field type is a number, take the value from this field
address_list | common_address\[\] | Job Advertising Address List
id | string | ID
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
district | code_name_object | Regional Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
city | code_name_object | City Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
state | code_name_object | Provincial Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
country | code_name_object | Country Information
code | string | Coding
name | i18n | Name
zh_cn | string | Chinese
en_us | string | English
job_sequence_info | id_name_object | rank sequence
id | string | ID
name | i18n | name
zh_cn | string | Chinese
en_us | string | English
currency | int | Currency, please refer to the recruitment "Introduction to Enumeration Constants"
target_major_list | id_name_object\[\] | Target major
id | string | Target Professional ID
name | i18n | Target professional name
zh_cn | string | Target major Chinese name
en_us | string | Target major English name
has_more | boolean | Whether the response body has more parameters
page_token | string | Page identifier, when has_more is true, a new page_token will also be returned. Otherwise, page_token will not be returned

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "items": [
            {
                "id": "1213213123123",
                "title": "Test",
                "job_id": "xxx",
                "job_code": "007",
                "job_expire_time": "1111",
                "job_active_status": 1,
                "job_process_type": 1,
                "job_recruitment_type": {
                    "id": "1213213123123",
                    "name": {
                        "zh_cn": "测试",
                        "en_us": "test"
                    }
                },
                "job_department": {
                    "id": "1213213123123",
                    "name": {
                        "zh_cn": "测试",
                        "en_us": "test"
                    }
                },
                "job_type": {
                    "id": "1213213123123",
                    "name": {
                        "zh_cn": "测试",
                        "en_us": "test"
                    }
                },
                "min_job_level": {
                    "id": "6890840777044265230",
                    "name": {
                        "zh_cn": "级别-2",
                        "en_us": "level-2"
                    }
                },
                "max_job_level": {
                    "id": "6890840777044265230",
                    "name": {
                        "zh_cn": "级别-2",
                        "en_us": "level-2"
                    }
                },
                "address": {
                    "id": "6583482347283472832",
                    "name": {
                        "zh_cn": "测试",
                        "en_us": "test"
                    },
                    "district": {
                        "code": "1111",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        }
                    },
                    "city": {
                        "code": "1111",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        }
                    },
                    "state": {
                        "code": "1111",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        }
                    },
                    "country": {
                        "code": "1111",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        }
                    }
                },
                "min_salary": "5000",
                "max_salary": "10000",
                "required_degree": 1,
                "experience": 1,
                "headcount": 12,
                "high_light_list": [
                    {
                        "id": "1213213123123",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        }
                    }
                ],
                "description": "Responsible for software development",
                "requirement": "College",
                "creator": {
                    "id": "1213213123123",
                    "name": {
                        "zh_cn": "测试",
                        "en_us": "test"
                    }
                },
                "create_time": "1111",
                "modify_time": "222",
                "customized_data_list": [
                    {
                        "object_id": "xxxx",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        },
                        "object_type": 1,
                        "value": {
                            "content": "text",
                            "option": {
                                "key": "AA",
                                "name": {
                                    "zh_cn": "测试",
                                    "en_us": "test"
                                }
                            },
                            "option_list": [
                                {
                                    "key": "AA",
                                    "name": {
                                        "zh_cn": "测试",
                                        "en_us": "test"
                                    }
                                }
                            ],
                            "time_range": {
                                "start_time": "AA",
                                "end_time": "AA"
                            },
                            "time": "1625456721000",
                            "number": "111"
                        }
                    }
                ],
                "address_list": [
                    {
                        "id": "6583482347283472832",
                        "name": {
                            "zh_cn": "测试",
                            "en_us": "test"
                        },
                        "district": {
                            "code": "1111",
                            "name": {
                                "zh_cn": "测试",
                                "en_us": "test"
                            }
                        },
                        "city": {
                            "code": "1111",
                            "name": {
                                "zh_cn": "测试",
                                "en_us": "test"
                            }
                        },
                        "state": {
                            "code": "1111",
                            "name": {
                                "zh_cn": "测试",
                                "en_us": "test"
                            }
                        },
                        "country": {
                            "code": "1111",
                            "name": {
                                "zh_cn": "测试",
                                "en_us": "test"
                            }
                        }
                    }
                ],
                "job_sequence_info": {
                    "id": "1213213123123",
                    "name": {
                        "zh_cn": "测试",
                        "en_us": "test"
                    }
                },
                "currency": 1,
                "target_major_list": [
                    {
                        "id": "6930815272790114324",
                        "name": {
                            "zh_cn": "考古",
                            "en_us": "archeology"
                        }
                    }
                ]
            }
        ],
        "has_more": true,
        "page_token": "eyJvZmZzZXQiOjEwLCJ0aW1lc3RhbXAiOjE2Mjc1NTUyMjM2NzIsImlkIjpudWxsfQ=="
    }
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
500 | 1002001 | System error | Check if the imported parameters are valid
400 | 1002002 | Parameter illegal | Check that the imported parameter format is correct

