GET api/Services/GetServiceById/{id}/{lang}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| lang | string |
Default value is en |
Body Parameters
None.
Response Information
Resource Description
ApiServiceViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceId | integer |
None. |
|
| ServiceName | string |
None. |
|
| ServiceType | string |
None. |
|
| AgencyTags | string |
None. |
|
| Description | string |
None. |
|
| RelatedSearchTerms | string |
None. |
|
| LogoUrl | string |
None. |
|
| LogoUrlWebp | string |
None. |
|
| ImageUrl | string |
None. |
|
| AltText | string |
None. |
|
| ImageUrlWebp | string |
None. |
|
| ServiceUrl | string |
None. |
|
| Featured | string |
None. |
|
| ContactPhone | string |
None. |
|
| ContactPhoneDisplay | string |
None. |
|
| ContactPhoneDigits | string |
None. |
|
| ContactUrl | string |
None. |
|
| AgencyName | string |
None. |
|
| Updated | date |
None. |
|
| FriendlyName | string |
None. |
|
| AgencyId | integer |
None. |
|
| Acronym | string |
None. |
|
| Keywords | string |
None. |
|
| Landing | string |
None. |
|
| ServiceNameTag | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ServiceId": 1,
"ServiceName": "sample string 2",
"ServiceType": "sample string 3",
"AgencyTags": "sample string 4",
"Description": "sample string 5",
"RelatedSearchTerms": "sample string 6",
"LogoUrl": "sample string 7",
"LogoUrlWebp": "sample string 8",
"ImageUrl": "sample string 9",
"AltText": "sample string 10",
"ImageUrlWebp": "sample string 11",
"ServiceUrl": "sample string 12",
"Featured": "sample string 13",
"ContactPhone": "sample string 14",
"ContactPhoneDisplay": "sample string 15",
"ContactPhoneDigits": "sample string 16",
"ContactUrl": "sample string 17",
"AgencyName": "sample string 18",
"Updated": "2026-03-17T02:15:33.7636633+00:00",
"FriendlyName": "sample string 19",
"AgencyId": 20,
"Acronym": "sample string 21",
"Keywords": "sample string 22",
"Landing": "sample string 23",
"ServiceNameTag": "sample string 24"
}
application/xml, text/xml
Sample:
<ApiServiceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CA.GOV.AgencyProfileApi.Models"> <Acronym>sample string 21</Acronym> <AgencyId>20</AgencyId> <AgencyName>sample string 18</AgencyName> <AgencyTags>sample string 4</AgencyTags> <AltText>sample string 10</AltText> <ContactPhone>sample string 14</ContactPhone> <ContactPhoneDigits>sample string 16</ContactPhoneDigits> <ContactPhoneDisplay>sample string 15</ContactPhoneDisplay> <ContactUrl>sample string 17</ContactUrl> <Description>sample string 5</Description> <Featured>sample string 13</Featured> <FriendlyName>sample string 19</FriendlyName> <ImageUrl>sample string 9</ImageUrl> <ImageUrlWebp>sample string 11</ImageUrlWebp> <Keywords>sample string 22</Keywords> <Landing>sample string 23</Landing> <LogoUrl>sample string 7</LogoUrl> <LogoUrlWebp>sample string 8</LogoUrlWebp> <RelatedSearchTerms>sample string 6</RelatedSearchTerms> <ServiceId>1</ServiceId> <ServiceName>sample string 2</ServiceName> <ServiceNameTag>sample string 24</ServiceNameTag> <ServiceType>sample string 3</ServiceType> <ServiceUrl>sample string 12</ServiceUrl> <Updated>2026-03-17T02:15:33.7636633+00:00</Updated> </ApiServiceViewModel>