Developer Function: Script: $p.apiGetSite
## Overview
This is a script function that allows you to obtain site information using an Ajax POST request.
## Syntax
##### JavaScript
```
$p.apiGetSite({
id: <Target site ID>,
done: <Optional Processing>,
fail: <Optional Processing>,
always: <Optional Processing>
});
```
## Description Of Each Parameter
|Parameter name|Description|Required|
|:--|:--|:--:|
|id|Site ID to obtain|○|
|done|API communication successful|○|
|fail|API communication failure|-|
|always|On completion|-|
## Usage Example
##### JavaScript
```
$p.apiGetSite({
id: 123,
done: function (data) {
console.log(data);
console.log('Site information creation successful.');
},
fail: function () {
console.log('Failed to create site information.');
},
always: function () {
console.log('Site information creation is complete.');
}
});
```
## Related Information
<div id="ManualList">
<article class="s-blog_list_unit"><h2>
<h2>The specified information was not found.</h2>
<p><a href="/ja/manual">Return to top</a></p>
</article>
</div><input id="SearchTextHidden" type="hidden" value="" />