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
| 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. |
|
| SortOrder | integer |
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",
"ServiceType": "sample string",
"AgencyTags": "sample string",
"Description": "sample string",
"RelatedSearchTerms": "sample string",
"LogoUrl": "sample string",
"LogoUrlWebp": "sample string",
"ImageUrl": "sample string",
"AltText": "sample string",
"ImageUrlWebp": "sample string",
"SortOrder": 1,
"ServiceUrl": "sample string",
"Featured": "sample string",
"ContactPhone": "sample string",
"ContactPhoneDisplay": "sample string",
"ContactPhoneDigits": "sample string",
"ContactUrl": "sample string",
"AgencyName": "sample string",
"Updated": "2026-01-01T00:00:00Z",
"FriendlyName": "sample string",
"AgencyId": 1,
"Acronym": "sample string",
"Keywords": "sample string",
"Landing": "sample string",
"ServiceNameTag": "sample string"
}
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</Acronym> <AgencyId>1</AgencyId> <AgencyName>sample string</AgencyName> <AgencyTags>sample string</AgencyTags> <AltText>sample string</AltText> <ContactPhone>sample string</ContactPhone> <ContactPhoneDigits>sample string</ContactPhoneDigits> <ContactPhoneDisplay>sample string</ContactPhoneDisplay> <ContactUrl>sample string</ContactUrl> <Description>sample string</Description> <Featured>sample string</Featured> <FriendlyName>sample string</FriendlyName> <ImageUrl>sample string</ImageUrl> <ImageUrlWebp>sample string</ImageUrlWebp> <Keywords>sample string</Keywords> <Landing>sample string</Landing> <LogoUrl>sample string</LogoUrl> <LogoUrlWebp>sample string</LogoUrlWebp> <RelatedSearchTerms>sample string</RelatedSearchTerms> <ServiceId>1</ServiceId> <ServiceName>sample string</ServiceName> <ServiceNameTag>sample string</ServiceNameTag> <ServiceType>sample string</ServiceType> <ServiceUrl>sample string</ServiceUrl> <SortOrder>1</SortOrder> <Updated>2026-01-01T00:00:00Z</Updated> </ApiServiceViewModel>