GET
/
v1
/
outputs
/
{group_id}
curl --request GET \
  --url https://api.reworkd.dev/v1/outputs/{group_id}
{
  "metadata": {
    "next_url": "https://api.reworkd.dev/v1/items?cursor=2612294",
    "next_cursor": 2612294
  },
  "items": [
    {
      "id": 123,
      "output_id": "206fdc72-10c0-468c-996f-ff3f8cc51592",
      "is_approved": true,
      "create_date": "2023-02-14T00:00:00",
      "source_url": "http://example.com",
      "change_type": "CREATE",
      "key_hash": "d41d8cd98f00b204e9800998ecf8427e",
      "value_hash": "d41d8cd98f00b204e9800998ecf8427e",
      "data": {
        "age": 30,
        "email": "john@example.com",
        "images": [
          "http://example.com/profile.jpg",
          "http://example.com/photo.jpg"
        ],
        "name": "John Doe"
      },
      "tags": {
        "country": "US",
        "external_customer_id": "12345",
        "region": "US-CA"
      },
      "files": [
        {
          "create_date": "2023-02-14T00:00:00",
          "field": "image[0]",
          "file_checksum": "d41d8cd98f00b204e9800998ecf8427e",
          "file_metadata": {},
          "file_type": "jpg",
          "file_url": "http://example.com/example.jpg",
          "id": "206fdc72-10c0-468c-996f-ff3f8cc51592",
          "s3_key": "example.jpg",
          "s3_url": "https://files.reworkd.dev/d41d8cd98f00b204e9800998ecf8427e.jpg",
          "source_url": "http://example.com",
          "url_etag_hash": "d41d8cd98f00b204e9800998ecf8427e"
        }
      ]
    }
  ]
}

Path Parameters

group_id
string
required

ID of the scraping group you want to fetch outputs for. Can be found in the URL of the scraping group page.

Query Parameters

job_id
string | null

ID of the root scraping job you want to fetch outputs for. If not provided, all jobs will be used. Using this parameter allows you to fetch results for a specific domain.

Example:

"03583f9c-6c90-4f3c-9afd-186258d6f4d6"

created_after
string | null

Date (inclusive) in format YYYY-MM-DD

Example:

"2023-02-14"

limit
integer
default:10

Number of results to return per page

Required range: 1 <= x <= 1000
cursor
integer
default:0

Cursor to paginate through results

Required range: x >= 0
country
string | null

Name of the country to filter by (eg: United States)

Example:

"United States"

region
string | null

ISO 3166-2 code of the region to filter by (eg: US-CA)

Example:

"US-CA"

Response

200
application/json
Successful Response
metadata
object
required
items
object[]
required

Represents a single output from a scraping job. This is the data that was extracted from a website by a scraper. The data field contains the extracted data normalized to the schema of the scraping group.

The files field contains the files that were extracted by the scraper. The files can be downloaded from the s3_url field.

The change type indicate if it was the first time the output was created or if it was an update or delete of an existing record. See ChangesetAction for more details.