# GET /service/v2

Use this interface to retrieve a list of services (or a specific service) from our database in JSON format.

As a reference, you can also manually browse or search services at <https://edit.tosdr.org/services>.

## Endpoint

```
https://api.tosdr.org/service/v2/
```

## Parameters

| Parameter | Type    | Description                                                          |
| --------- | ------- | -------------------------------------------------------------------- |
| id        | Integer | Optional ID of the service. Omit the parameter to list all services. |
| page      | Integer | Pagination number (starts at `1`).                                   |

## Repository

Code for this endpoint lives at <https://github.com/tosdr/API/tree/master/functions/Service/GET/v2>.

## Implemented error codes

| Error code       |
| ---------------- |
| INVALID\_SERVICE |

## Example responses

### Specific service

```
{
    "error": 256,
    "message": "OK",
    "parameters": {
        "id": 353,
        "is_comprehensively_reviewed": false,
        "name": "Yammer",
        "updated_at": "2021-03-31T01:04:42.630Z",
        "created_at": "2018-05-08T12:19:43.120Z",
        "slug": "yammer",
        "rating": null,
        "urls": [
            "yammer.com"
        ],
        "image": "https://s3.tosdr.org/logos/353.png",
        "documents": [],
        "points": [
            {
                "id": 2145,
                "title": "Yammer.com (Microsoft Enterprise Social Network solution)",
                "source": "https://groups.google.com/forum#!topic/tosdr/Gw8zB2bMUoU",
                "status": "declined",
                "analysis": "Yammer.com (Microsoft Enterprise Social Network solution)",
                "created_at": "2018-05-15T09:12:15.999Z",
                "updated_at": "2021-02-06T03:50:33.404Z",
                "case": {
                    "id": 235,
                    "classification": "neutral",
                    "weight": 0,
                    "title": "none",
                    "description": "Do not select this case, because points with this case will not show up on tosdr.org",
                    "topic_id": 53
                },
                "quoteText": null,
                "document_id": null,
                "quoteStart": null,
                "quoteEnd": null
            }
        ]
    }
}
```

### All services

```
{
    "error": 256,
    "message": "All services below",
    "parameters": {
        "_page": {
            "total": 7390,
            "current": 1,
            "start": 1,
            "end": 74
        },
        "services": [
            {
                "id": 440,
                "is_comprehensively_reviewed": false,
                "name": "pebble",
                "urls": [
                    "pebble.com"
                ],
                "updated_at": "2021-03-25T03:19:30.208Z",
                "created_at": "2018-05-08T12:19:44.833Z",
                "slug": "pebble",
                "rating": null
            },
            {
                "id": 330,
                "is_comprehensively_reviewed": false,
                "name": "SeenThis",
                "urls": [
                    "seenthis.net"
                ],
                "updated_at": "2021-03-25T03:19:33.465Z",
                "created_at": "2018-03-05T08:40:47.818Z",
                "slug": "seenthis",
                "rating": null
            }
            ...
        ]
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tosdr.org/developer/tos-dr-developers/restful-api/service-api/get-service-v2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
